projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kernel: update 3.18 to 3.18.14
[openwrt/svn-archive/archive.git]
/
target
/
linux
/
ar7
/
patches-3.18
/
950-cpmac_titan.patch
diff --git
a/target/linux/ar7/patches-3.18/950-cpmac_titan.patch
b/target/linux/ar7/patches-3.18/950-cpmac_titan.patch
index 1d76e9fd78f73e5e669a3d09902769c96347cef0..f1d432cc4c8352c6b70f6c15747099b49f74d196 100644
(file)
--- a/
target/linux/ar7/patches-3.18/950-cpmac_titan.patch
+++ b/
target/linux/ar7/patches-3.18/950-cpmac_titan.patch
@@
-1,7
+1,7
@@
--- a/drivers/net/ethernet/ti/cpmac.c
+++ b/drivers/net/ethernet/ti/cpmac.c
--- a/drivers/net/ethernet/ti/cpmac.c
+++ b/drivers/net/ethernet/ti/cpmac.c
-@@ -11
54,6 +1154
,8 @@ static int cpmac_probe(struct platform_d
- goto
fail
;
+@@ -11
46,6 +1146
,8 @@ static int cpmac_probe(struct platform_d
+ goto
out
;
}
+ ar7_device_reset(pdata->reset_bit);
}
+ ar7_device_reset(pdata->reset_bit);
@@
-9,7
+9,7
@@
dev->irq = platform_get_irq_byname(pdev, "irq");
dev->netdev_ops = &cpmac_netdev_ops;
dev->irq = platform_get_irq_byname(pdev, "irq");
dev->netdev_ops = &cpmac_netdev_ops;
-@@ -12
32,7 +1234
,7 @@ int cpmac_init(void)
+@@ -12
27,7 +1229
,7 @@ int cpmac_init(void)
cpmac_mii->reset = cpmac_mdio_reset;
cpmac_mii->irq = mii_irqs;
cpmac_mii->reset = cpmac_mdio_reset;
cpmac_mii->irq = mii_irqs;
@@
-17,8
+17,8
@@
+ cpmac_mii->priv = ioremap(ar7_is_titan() ? TITAN_REGS_MDIO : AR7_REGS_MDIO, 256);
if (!cpmac_mii->priv) {
+ cpmac_mii->priv = ioremap(ar7_is_titan() ? TITAN_REGS_MDIO : AR7_REGS_MDIO, 256);
if (!cpmac_mii->priv) {
- pr
intk(KERN_ERR
"Can't ioremap mdio registers\n");
-@@ -12
43,10 +1245
,16 @@ int cpmac_init(void)
+ pr
_err(
"Can't ioremap mdio registers\n");
+@@ -12
38,10 +1240
,16 @@ int cpmac_init(void)
#warning FIXME: unhardcode gpio&reset bits
ar7_gpio_disable(26);
ar7_gpio_disable(27);
#warning FIXME: unhardcode gpio&reset bits
ar7_gpio_disable(26);
ar7_gpio_disable(27);
@@
-37,7
+37,7
@@
cpmac_mii->reset(cpmac_mii);
for (i = 0; i < 300; i++) {
cpmac_mii->reset(cpmac_mii);
for (i = 0; i < 300; i++) {
-@@ -12
63,7 +1271
,11 @@ int cpmac_init(void)
+@@ -12
58,7 +1266
,11 @@ int cpmac_init(void)
mask = 0;
}
mask = 0;
}