Commit eea4fbaa authored by Wolfram Sang's avatar Wolfram Sang Committed by Khalid Elmously

usb: gadget: udc: change comparison to bitshift when dealing with a mask

BugLink: https://bugs.launchpad.net/bugs/1775771

[ Upstream commit ac87e560 ]

Due to a typo, the mask was destroyed by a comparison instead of a bit
shift.
Reported-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent 5da5bb15
...@@ -28,7 +28,7 @@ struct goku_udc_regs { ...@@ -28,7 +28,7 @@ struct goku_udc_regs {
# define INT_EP1DATASET 0x00040 # define INT_EP1DATASET 0x00040
# define INT_EP2DATASET 0x00080 # define INT_EP2DATASET 0x00080
# define INT_EP3DATASET 0x00100 # define INT_EP3DATASET 0x00100
#define INT_EPnNAK(n) (0x00100 < (n)) /* 0 < n < 4 */ #define INT_EPnNAK(n) (0x00100 << (n)) /* 0 < n < 4 */
# define INT_EP1NAK 0x00200 # define INT_EP1NAK 0x00200
# define INT_EP2NAK 0x00400 # define INT_EP2NAK 0x00400
# define INT_EP3NAK 0x00800 # define INT_EP3NAK 0x00800
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment