diff options
author | Bin Meng | 2017-07-19 21:51:20 +0800 |
---|---|---|
committer | Marek Vasut | 2017-07-28 23:34:36 +0200 |
commit | 196ef8323c53b5d43fd9c244daaca1e2172ca47c (patch) | |
tree | d1b79cb6fd62db61188cd7a3aedd39454e9a4570 | |
parent | d228ca362b0f2aa3679866c7a40702085653233e (diff) |
usb: xhci: Correct TT_SLOT and TT_PORT macros
These two macros really need a parameter to make them useful.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | drivers/usb/host/xhci.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index cdce67c1a01..a497d9d830f 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -548,12 +548,12 @@ struct xhci_slot_ctx { * The Slot ID of the hub that isolates the high speed signaling from * this low or full-speed device. '0' if attached to root hub port. */ -#define TT_SLOT (0xff) +#define TT_SLOT(p) (((p) & 0xff) << 0) /* * The number of the downstream facing port of the high-speed hub * '0' if the device is not low or full speed. */ -#define TT_PORT (0xff << 8) +#define TT_PORT(p) (((p) & 0xff) << 8) #define TT_THINK_TIME(p) (((p) & 0x3) << 16) /* dev_state bitmasks */ |