generic: mtd backport for Spansion S25FL164K
[openwrt/openwrt.git] / target / linux / generic / patches-4.0 / 020-ssb_update.patch
1 --- a/drivers/ssb/driver_pcicore.c
2 +++ b/drivers/ssb/driver_pcicore.c
3 @@ -357,6 +357,16 @@ static void ssb_pcicore_init_hostmode(st
4 pcicore_write32(pc, SSB_PCICORE_SBTOPCI2,
5 SSB_PCICORE_SBTOPCI_MEM | SSB_PCI_DMA);
6
7 + /*
8 + * Accessing PCI config without a proper delay after devices reset (not
9 + * GPIO reset) was causing reboots on WRT300N v1.0 (BCM4704).
10 + * Tested delay 850 us lowered reboot chance to 50-80%, 1000 us fixed it
11 + * completely. Flushing all writes was also tested but with no luck.
12 + * The same problem was reported for WRT350N v1 (BCM4705), so we just
13 + * sleep here unconditionally.
14 + */
15 + usleep_range(1000, 2000);
16 +
17 /* Enable PCI bridge BAR0 prefetch and burst */
18 val = PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY;
19 ssb_extpci_write_config(pc, 0, 0, 0, PCI_COMMAND, &val, 2);
20 --- a/drivers/ssb/main.c
21 +++ b/drivers/ssb/main.c
22 @@ -1135,6 +1135,8 @@ static u32 ssb_tmslow_reject_bitmask(str
23 case SSB_IDLOW_SSBREV_25: /* TODO - find the proper REJECT bit */
24 case SSB_IDLOW_SSBREV_27: /* same here */
25 return SSB_TMSLOW_REJECT; /* this is a guess */
26 + case SSB_IDLOW_SSBREV:
27 + break;
28 default:
29 WARN(1, KERN_INFO "ssb: Backplane Revision 0x%.8X\n", rev);
30 }