platform: msm_shared: Fix issue with clear feature implementation
Clear feature always ends up clearing stall for IN endpoint due
to higher precedency of '==' than '&'. Fix the precendence order
to ensure masking of endpoint direction bits takes the priority.
Change-Id: I8b1928bb25dac747c4ac8b9a71aedff5a163226d
diff --git a/platform/msm_shared/usb30_udc.c b/platform/msm_shared/usb30_udc.c
index cf27db9..1c4f71a 100644
--- a/platform/msm_shared/usb30_udc.c
+++ b/platform/msm_shared/usb30_udc.c
@@ -636,7 +636,7 @@
* |______|_____________|_____________|
*/
usb_epnum = (s.index & USB_EP_NUM_MASK);
- dir = (s.index & USB_EP_DIR_MASK == USB_EP_DIR_IN) ? 0x1 : 0x0;
+ dir = ((s.index & USB_EP_DIR_MASK) == USB_EP_DIR_IN) ? 0x1 : 0x0;
/*
* Convert the logical ep number to physical before