diff options
author | Arend van Spriel <arend@broadcom.com> | 2013-11-29 05:48:14 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-12-02 14:25:16 -0500 |
commit | 8dee77bab2eda24b48bfb8aecf5ac1370e424416 (patch) | |
tree | 69a63136b4b61ba67dede2d0f4c579eaabb5d571 /drivers/net/wireless/brcm80211/brcmfmac/usb.c | |
parent | 1e86d69662d7d86360624f74bbe1b5fa1b8ffb13 (diff) |
brcmfmac: add separate function for passing bus tx overhead
The common driver needs the packet overhead for the bus in order
to reserve headroom for sk_buffs. For the SDIO driver this depends
on firmware features so it is not possible to provide it in the
brcmf_attach() call.
Reviewed-by: Franky Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/usb.c')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmfmac/usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/brcm80211/brcmfmac/usb.c index 422f44c63175..51c4de054b15 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/usb.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/usb.c | |||
@@ -1255,7 +1255,7 @@ static int brcmf_usb_probe_cb(struct brcmf_usbdev_info *devinfo) | |||
1255 | bus->chiprev = bus_pub->chiprev; | 1255 | bus->chiprev = bus_pub->chiprev; |
1256 | 1256 | ||
1257 | /* Attach to the common driver interface */ | 1257 | /* Attach to the common driver interface */ |
1258 | ret = brcmf_attach(0, dev); | 1258 | ret = brcmf_attach(dev); |
1259 | if (ret) { | 1259 | if (ret) { |
1260 | brcmf_err("brcmf_attach failed\n"); | 1260 | brcmf_err("brcmf_attach failed\n"); |
1261 | goto fail; | 1261 | goto fail; |
@@ -1454,7 +1454,7 @@ static int brcmf_usb_resume(struct usb_interface *intf) | |||
1454 | struct brcmf_usbdev_info *devinfo = brcmf_usb_get_businfo(&usb->dev); | 1454 | struct brcmf_usbdev_info *devinfo = brcmf_usb_get_businfo(&usb->dev); |
1455 | 1455 | ||
1456 | brcmf_dbg(USB, "Enter\n"); | 1456 | brcmf_dbg(USB, "Enter\n"); |
1457 | if (!brcmf_attach(0, devinfo->dev)) | 1457 | if (!brcmf_attach(devinfo->dev)) |
1458 | return brcmf_bus_start(&usb->dev); | 1458 | return brcmf_bus_start(&usb->dev); |
1459 | 1459 | ||
1460 | return 0; | 1460 | return 0; |