diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-06-21 10:18:52 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-06-21 10:18:52 +0000 |
commit | e732fe119a913f87b70fd77d7da9710b21d51144 (patch) | |
tree | 5629d8acb964b50af791ecdd0a3c6c0af84dcbb4 /target/linux/bcm53xx | |
parent | 75208abbac4ed7871e32d22247eb4e9396661691 (diff) | |
download | master-187ad058-e732fe119a913f87b70fd77d7da9710b21d51144.tar.gz master-187ad058-e732fe119a913f87b70fd77d7da9710b21d51144.tar.bz2 master-187ad058-e732fe119a913f87b70fd77d7da9710b21d51144.zip |
bcm53xx: fix enabling GPIO-controlled USB power
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46081 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/bcm53xx')
-rw-r--r-- | target/linux/bcm53xx/patches-3.18/813-USB-bcma-fix-setting-VCC-GPIO-value.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/patches-3.18/813-USB-bcma-fix-setting-VCC-GPIO-value.patch b/target/linux/bcm53xx/patches-3.18/813-USB-bcma-fix-setting-VCC-GPIO-value.patch new file mode 100644 index 0000000000..eb0b767cd3 --- /dev/null +++ b/target/linux/bcm53xx/patches-3.18/813-USB-bcma-fix-setting-VCC-GPIO-value.patch @@ -0,0 +1,31 @@ +From a9e32f77ff74492d79fe2e24f0418136acd8a680 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com> +Date: Sun, 21 Jun 2015 12:09:57 +0200 +Subject: [PATCH] USB: bcma: fix setting VCC GPIO value +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +It wasn't working (on most of devices?) without setting GPIO direction. + +Signed-off-by: Rafał Miłecki <zajec5@gmail.com> +--- + drivers/usb/host/bcma-hcd.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/usb/host/bcma-hcd.c b/drivers/usb/host/bcma-hcd.c +index f7a66b9..b31e3cc 100644 +--- a/drivers/usb/host/bcma-hcd.c ++++ b/drivers/usb/host/bcma-hcd.c +@@ -238,7 +238,7 @@ static void bcma_hci_platform_power_gpio(struct bcma_device *dev, bool val) + + if (val) { + gpio_request(gpio, "bcma-hcd-gpio"); +- gpio_set_value(gpio, 1); ++ gpio_direction_output(gpio, 1); + } else { + gpio_set_value(gpio, 0); + gpio_free(gpio); +-- +1.8.4.5 + |