aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-01-25 14:17:34 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-25 14:17:34 -0500
commit4ba9920e5e9c0e16b5ed24292d45322907bb9035 (patch)
tree7d023baea59ed0886ded1f0b6d1c6385690b88f7 /drivers/bcma
parent82c477669a4665eb4e52030792051e0559ee2a36 (diff)
parent8b662fe70c68282f78482dc272df0c4f355e49f5 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
Pull networking updates from David Miller: 1) BPF debugger and asm tool by Daniel Borkmann. 2) Speed up create/bind in AF_PACKET, also from Daniel Borkmann. 3) Correct reciprocal_divide and update users, from Hannes Frederic Sowa and Daniel Borkmann. 4) Currently we only have a "set" operation for the hw timestamp socket ioctl, add a "get" operation to match. From Ben Hutchings. 5) Add better trace events for debugging driver datapath problems, also from Ben Hutchings. 6) Implement auto corking in TCP, from Eric Dumazet. Basically, if we have a small send and a previous packet is already in the qdisc or device queue, defer until TX completion or we get more data. 7) Allow userspace to manage ipv6 temporary addresses, from Jiri Pirko. 8) Add a qdisc bypass option for AF_PACKET sockets, from Daniel Borkmann. 9) Share IP header compression code between Bluetooth and IEEE802154 layers, from Jukka Rissanen. 10) Fix ipv6 router reachability probing, from Jiri Benc. 11) Allow packets to be captured on macvtap devices, from Vlad Yasevich. 12) Support tunneling in GRO layer, from Jerry Chu. 13) Allow bonding to be configured fully using netlink, from Scott Feldman. 14) Allow AF_PACKET users to obtain the VLAN TPID, just like they can already get the TCI. From Atzm Watanabe. 15) New "Heavy Hitter" qdisc, from Terry Lam. 16) Significantly improve the IPSEC support in pktgen, from Fan Du. 17) Allow ipv4 tunnels to cache routes, just like sockets. From Tom Herbert. 18) Add Proportional Integral Enhanced packet scheduler, from Vijay Subramanian. 19) Allow openvswitch to mmap'd netlink, from Thomas Graf. 20) Key TCP metrics blobs also by source address, not just destination address. From Christoph Paasch. 21) Support 10G in generic phylib. From Andy Fleming. 22) Try to short-circuit GRO flow compares using device provided RX hash, if provided. From Tom Herbert. The wireless and netfilter folks have been busy little bees too. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (2064 commits) net/cxgb4: Fix referencing freed adapter ipv6: reallocate addrconf router for ipv6 address when lo device up fib_frontend: fix possible NULL pointer dereference rtnetlink: remove IFLA_BOND_SLAVE definition rtnetlink: remove check for fill_slave_info in rtnl_have_link_slave_info qlcnic: update version to 5.3.55 qlcnic: Enhance logic to calculate msix vectors. qlcnic: Refactor interrupt coalescing code for all adapters. qlcnic: Update poll controller code path qlcnic: Interrupt code cleanup qlcnic: Enhance Tx timeout debugging. qlcnic: Use bool for rx_mac_learn. bonding: fix u64 division rtnetlink: add missing IFLA_BOND_AD_INFO_UNSPEC sfc: Use the correct maximum TX DMA ring size for SFC9100 Add Shradha Shah as the sfc driver maintainer. net/vxlan: Share RX skb de-marking and checksum checks with ovs tulip: cleanup by using ARRAY_SIZE() ip_tunnel: clear IPCB in ip_tunnel_xmit() in case dst_link_failure() is called net/cxgb4: Don't retrieve stats during recovery ...
Diffstat (limited to 'drivers/bcma')
-rw-r--r--drivers/bcma/bcma_private.h2
-rw-r--r--drivers/bcma/driver_chipcommon_sflash.c6
-rw-r--r--drivers/bcma/host_pci.c3
-rw-r--r--drivers/bcma/main.c14
4 files changed, 6 insertions, 19 deletions
diff --git a/drivers/bcma/bcma_private.h b/drivers/bcma/bcma_private.h
index 0215f9ad755c..09b632ad0fe2 100644
--- a/drivers/bcma/bcma_private.h
+++ b/drivers/bcma/bcma_private.h
@@ -33,8 +33,6 @@ int __init bcma_bus_early_register(struct bcma_bus *bus,
33int bcma_bus_suspend(struct bcma_bus *bus); 33int bcma_bus_suspend(struct bcma_bus *bus);
34int bcma_bus_resume(struct bcma_bus *bus); 34int bcma_bus_resume(struct bcma_bus *bus);
35#endif 35#endif
36struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid,
37 u8 unit);
38 36
39/* scan.c */ 37/* scan.c */
40int bcma_bus_scan(struct bcma_bus *bus); 38int bcma_bus_scan(struct bcma_bus *bus);
diff --git a/drivers/bcma/driver_chipcommon_sflash.c b/drivers/bcma/driver_chipcommon_sflash.c
index 4d07cce9c5d9..7e11ef4cb7db 100644
--- a/drivers/bcma/driver_chipcommon_sflash.c
+++ b/drivers/bcma/driver_chipcommon_sflash.c
@@ -38,7 +38,7 @@ static const struct bcma_sflash_tbl_e bcma_sflash_st_tbl[] = {
38 { "M25P32", 0x15, 0x10000, 64, }, 38 { "M25P32", 0x15, 0x10000, 64, },
39 { "M25P64", 0x16, 0x10000, 128, }, 39 { "M25P64", 0x16, 0x10000, 128, },
40 { "M25FL128", 0x17, 0x10000, 256, }, 40 { "M25FL128", 0x17, 0x10000, 256, },
41 { 0 }, 41 { NULL },
42}; 42};
43 43
44static const struct bcma_sflash_tbl_e bcma_sflash_sst_tbl[] = { 44static const struct bcma_sflash_tbl_e bcma_sflash_sst_tbl[] = {
@@ -56,7 +56,7 @@ static const struct bcma_sflash_tbl_e bcma_sflash_sst_tbl[] = {
56 { "SST25VF016", 0x41, 0x1000, 512, }, 56 { "SST25VF016", 0x41, 0x1000, 512, },
57 { "SST25VF032", 0x4a, 0x1000, 1024, }, 57 { "SST25VF032", 0x4a, 0x1000, 1024, },
58 { "SST25VF064", 0x4b, 0x1000, 2048, }, 58 { "SST25VF064", 0x4b, 0x1000, 2048, },
59 { 0 }, 59 { NULL },
60}; 60};
61 61
62static const struct bcma_sflash_tbl_e bcma_sflash_at_tbl[] = { 62static const struct bcma_sflash_tbl_e bcma_sflash_at_tbl[] = {
@@ -67,7 +67,7 @@ static const struct bcma_sflash_tbl_e bcma_sflash_at_tbl[] = {
67 { "AT45DB161", 0x2c, 512, 4096, }, 67 { "AT45DB161", 0x2c, 512, 4096, },
68 { "AT45DB321", 0x34, 512, 8192, }, 68 { "AT45DB321", 0x34, 512, 8192, },
69 { "AT45DB642", 0x3c, 1024, 8192, }, 69 { "AT45DB642", 0x3c, 1024, 8192, },
70 { 0 }, 70 { NULL },
71}; 71};
72 72
73static void bcma_sflash_cmd(struct bcma_drv_cc *cc, u32 opcode) 73static void bcma_sflash_cmd(struct bcma_drv_cc *cc, u32 opcode)
diff --git a/drivers/bcma/host_pci.c b/drivers/bcma/host_pci.c
index 6fb98b53533f..e333305363aa 100644
--- a/drivers/bcma/host_pci.c
+++ b/drivers/bcma/host_pci.c
@@ -238,7 +238,6 @@ static void bcma_host_pci_remove(struct pci_dev *dev)
238 pci_release_regions(dev); 238 pci_release_regions(dev);
239 pci_disable_device(dev); 239 pci_disable_device(dev);
240 kfree(bus); 240 kfree(bus);
241 pci_set_drvdata(dev, NULL);
242} 241}
243 242
244#ifdef CONFIG_PM_SLEEP 243#ifdef CONFIG_PM_SLEEP
@@ -270,7 +269,7 @@ static SIMPLE_DEV_PM_OPS(bcma_pm_ops, bcma_host_pci_suspend,
270 269
271#endif /* CONFIG_PM_SLEEP */ 270#endif /* CONFIG_PM_SLEEP */
272 271
273static DEFINE_PCI_DEVICE_TABLE(bcma_pci_bridge_tbl) = { 272static const struct pci_device_id bcma_pci_bridge_tbl[] = {
274 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x0576) }, 273 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x0576) },
275 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4313) }, 274 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4313) },
276 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 43224) }, 275 { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 43224) },
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c
index e15430a82e90..34ea4c588d36 100644
--- a/drivers/bcma/main.c
+++ b/drivers/bcma/main.c
@@ -78,18 +78,6 @@ static u16 bcma_cc_core_id(struct bcma_bus *bus)
78 return BCMA_CORE_CHIPCOMMON; 78 return BCMA_CORE_CHIPCOMMON;
79} 79}
80 80
81struct bcma_device *bcma_find_core(struct bcma_bus *bus, u16 coreid)
82{
83 struct bcma_device *core;
84
85 list_for_each_entry(core, &bus->cores, list) {
86 if (core->id.id == coreid)
87 return core;
88 }
89 return NULL;
90}
91EXPORT_SYMBOL_GPL(bcma_find_core);
92
93struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid, 81struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid,
94 u8 unit) 82 u8 unit)
95{ 83{
@@ -101,6 +89,7 @@ struct bcma_device *bcma_find_core_unit(struct bcma_bus *bus, u16 coreid,
101 } 89 }
102 return NULL; 90 return NULL;
103} 91}
92EXPORT_SYMBOL_GPL(bcma_find_core_unit);
104 93
105bool bcma_wait_value(struct bcma_device *core, u16 reg, u32 mask, u32 value, 94bool bcma_wait_value(struct bcma_device *core, u16 reg, u32 mask, u32 value,
106 int timeout) 95 int timeout)
@@ -176,6 +165,7 @@ static int bcma_register_cores(struct bcma_bus *bus)
176 bcma_err(bus, 165 bcma_err(bus,
177 "Could not register dev for core 0x%03X\n", 166 "Could not register dev for core 0x%03X\n",
178 core->id.id); 167 core->id.id);
168 put_device(&core->dev);
179 continue; 169 continue;
180 } 170 }
181 core->dev_registered = true; 171 core->dev_registered = true;