[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1469107253-21308-1-git-send-email-jaewon02.kim@samsung.com>
Date: Thu, 21 Jul 2016 22:20:53 +0900
From: Jaewon Kim <jaewon02.kim@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
David Mosberger-Tang <davidm@...uge.net>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Jaewon Kim <jaewon02.kim@...sung.com>
Subject: [PATCH] usb: host: max3421-hcd: fix mask of IO control register
GPIO control register is divided into IOPINS1 and IOPINS2.
And low 4-bit of register is controls output.
So, this patch fixes wrong mask of GPIO output.
Signed-off-by: Jaewon Kim <jaewon02.kim@...sung.com>
---
drivers/usb/host/max3421-hcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/max3421-hcd.c b/drivers/usb/host/max3421-hcd.c
index c369c29..2f76900 100644
--- a/drivers/usb/host/max3421-hcd.c
+++ b/drivers/usb/host/max3421-hcd.c
@@ -1675,7 +1675,7 @@ max3421_gpout_set_value(struct usb_hcd *hcd, u8 pin_number, u8 value)
if (pin_number > 7)
return;
- mask = 1u << pin_number;
+ mask = 1u << (pin_number % 4);
idx = pin_number / 4;
if (value)
--
1.9.1
Powered by blists - more mailing lists