diff options
author | Florian Fainelli <florian@openwrt.org> | 2014-01-14 05:23:39 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2014-01-14 05:23:39 +0000 |
commit | 0ecdc42f60397cd015ba8cb57f6835eb59950e45 (patch) | |
tree | f42f84094d9976da85e0dc49cce05612ed131bab /target/linux/brcm63xx/patches-3.10/424-bcm63xx_enet_no_request_mem_region.patch | |
parent | 7951993efd6a76426ec2c86f503c1744d4d23462 (diff) | |
download | upstream-0ecdc42f60397cd015ba8cb57f6835eb59950e45.tar.gz upstream-0ecdc42f60397cd015ba8cb57f6835eb59950e45.tar.bz2 upstream-0ecdc42f60397cd015ba8cb57f6835eb59950e45.zip |
brcm63xx: improve BCM6318 support
Provide clock toggling for the USB host and slave controller as well as
for the Ethernet Switch. The bcm63xx_enetsw driver is changed not to use
request_mem_region() as the Roboswitch register overlaps with the
Roboswitch IUDMA channels, hence making the driver return -EBUSY. A
future fix might be to use variable size RSET_ENETSW sizes depending on
the chip we are targetting.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 39282
Diffstat (limited to 'target/linux/brcm63xx/patches-3.10/424-bcm63xx_enet_no_request_mem_region.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-3.10/424-bcm63xx_enet_no_request_mem_region.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-3.10/424-bcm63xx_enet_no_request_mem_region.patch b/target/linux/brcm63xx/patches-3.10/424-bcm63xx_enet_no_request_mem_region.patch new file mode 100644 index 0000000000..e0271b2c72 --- /dev/null +++ b/target/linux/brcm63xx/patches-3.10/424-bcm63xx_enet_no_request_mem_region.patch @@ -0,0 +1,15 @@ +--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c ++++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c +@@ -2787,12 +2787,6 @@ static int bcm_enetsw_probe(struct platf + if (ret) + goto out; + +- if (!request_mem_region(res_mem->start, resource_size(res_mem), +- "bcm63xx_enetsw")) { +- ret = -EBUSY; +- goto out; +- } +- + priv->base = ioremap(res_mem->start, resource_size(res_mem)); + if (priv->base == NULL) { + ret = -ENOMEM; |