OSDN Git Service

usb: typec: intel_pmc_mux: Definitions for response status bits
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 1 Jul 2020 11:56:17 +0000 (14:56 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jul 2020 12:06:25 +0000 (14:06 +0200)
commitb7404a29cd3db0bf9537addf36b0fa33b58a645a
tree9cfa5bbdd0a83f5e4ecd03c6f766f99ca7c6dff9
parentad8db94d6813dc659bd4de0531a8a1150559eafb
usb: typec: intel_pmc_mux: Definitions for response status bits

Adding definitions for the two status bits that we have in
the command response data structure.

Also, from now on only considering the second status bit,
which tells was the failure fatal or not, if the first bit
is set. If the first bit is not set, then the command was
successful, and we need to ignore the second bit.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200701115618.22482-4-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c