Skip to content

Commit c0a8d95

Browse files
Chunfeng Yungregkh
authored andcommitted
usb: mtu3: fix macro for maximum number of packets
The bits field for maximum number of packets is 8 bits. Signed-off-by: Chunfeng Yun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent fde9156 commit c0a8d95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/mtu3/mtu3_hw_regs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
#define TX_W1C_BITS (~(TX_SENTSTALL))
135135

136136
/* U3D_TX1CSR1 */
137-
#define TX_MAX_PKT_G2(x) (((x) & 0x7f) << 24)
137+
#define TX_MAX_PKT_G2(x) (((x) & 0xff) << 24)
138138
#define TX_MULT_G2(x) (((x) & 0x7) << 21)
139139
#define TX_MULT_OG(x) (((x) & 0x3) << 22)
140140
#define TX_MAX_PKT_OG(x) (((x) & 0x3f) << 16)
@@ -173,7 +173,7 @@
173173
#define RX_W1C_BITS (~(RX_SENTSTALL | RX_RXPKTRDY))
174174

175175
/* U3D_RX1CSR1 */
176-
#define RX_MAX_PKT_G2(x) (((x) & 0x7f) << 24)
176+
#define RX_MAX_PKT_G2(x) (((x) & 0xff) << 24)
177177
#define RX_MULT_G2(x) (((x) & 0x7) << 21)
178178
#define RX_MULT_OG(x) (((x) & 0x3) << 22)
179179
#define RX_MAX_PKT_OG(x) (((x) & 0x3f) << 16)

0 commit comments

Comments
 (0)