diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-23 18:48:31 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-23 18:48:31 +0000 |
commit | b82d436d9b0cd6703e2b902e544c4b8c80c6e54f (patch) | |
tree | 90c98be5b651bb11f7ac5a4984691ca30fe0a509 /target/linux/generic/patches-3.14 | |
parent | 9bdc296650651297d7264942446650aeaba09854 (diff) | |
download | upstream-b82d436d9b0cd6703e2b902e544c4b8c80c6e54f.tar.gz upstream-b82d436d9b0cd6703e2b902e544c4b8c80c6e54f.tar.bz2 upstream-b82d436d9b0cd6703e2b902e544c4b8c80c6e54f.zip |
kernel: add a ssb backport required for a new mac80211 update
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40833 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.14')
-rw-r--r-- | target/linux/generic/patches-3.14/020-ssb_update.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.14/020-ssb_update.patch b/target/linux/generic/patches-3.14/020-ssb_update.patch new file mode 100644 index 0000000000..eb0bc5227e --- /dev/null +++ b/target/linux/generic/patches-3.14/020-ssb_update.patch @@ -0,0 +1,36 @@ +commit 4f4aa2ec24dc45881849833a439558d3a378028c +Author: Rafał Miłecki <zajec5@gmail.com> +Date: Sun May 18 00:22:38 2014 +0200 + + ssb: sprom: add dev_id field for value overriding standard ID + + Some devices may have different features despite sharing the same ID + (e.g. PCI ID). For example 14e4:4331 is usually a dual band, but this + can be "limited". Device with "pci/x/y/devid=0x4332" supports 2.4 GHz + only. Similarly 0x4333 will mean support for 5 GHz only. + Add entry in SPROM so info described above can be extracted and stored. + + Signed-off-by: Rafał Miłecki <zajec5@gmail.com> + Acked-by: Hauke Mehrtens <hauke@hauke-m.de> + Signed-off-by: John W. Linville <linville@tuxdriver.com> + +--- a/arch/mips/bcm47xx/sprom.c ++++ b/arch/mips/bcm47xx/sprom.c +@@ -168,6 +168,7 @@ static void nvram_read_alpha2(const char + static void bcm47xx_fill_sprom_r1234589(struct ssb_sprom *sprom, + const char *prefix, bool fallback) + { ++ nvram_read_u16(prefix, NULL, "devid", &sprom->dev_id, 0, fallback); + nvram_read_u8(prefix, NULL, "ledbh0", &sprom->gpio0, 0xff, fallback); + nvram_read_u8(prefix, NULL, "ledbh1", &sprom->gpio1, 0xff, fallback); + nvram_read_u8(prefix, NULL, "ledbh2", &sprom->gpio2, 0xff, fallback); +--- a/include/linux/ssb/ssb.h ++++ b/include/linux/ssb/ssb.h +@@ -33,6 +33,7 @@ struct ssb_sprom { + u8 et1phyaddr; /* MII address for enet1 */ + u8 et0mdcport; /* MDIO for enet0 */ + u8 et1mdcport; /* MDIO for enet1 */ ++ u16 dev_id; /* Device ID overriding e.g. PCI ID */ + u16 board_rev; /* Board revision number from SPROM. */ + u16 board_num; /* Board number from SPROM. */ + u16 board_type; /* Board type from SPROM. */ |