|
@@ -2276,6 +2276,7 @@ static int brcmf_sdbrcm_bus_txdata(struct device *dev, struct sk_buff *pkt)
|
|
|
struct brcmf_bus *bus_if = dev_get_drvdata(dev);
|
|
|
struct brcmf_sdio_dev *sdiodev = bus_if->bus_priv.sdio;
|
|
|
struct brcmf_sdio *bus = sdiodev->bus;
|
|
|
+ ulong flags;
|
|
|
|
|
|
brcmf_dbg(TRACE, "Enter\n");
|
|
|
|
|
@@ -2293,7 +2294,7 @@ static int brcmf_sdbrcm_bus_txdata(struct device *dev, struct sk_buff *pkt)
|
|
|
bus->sdcnt.fcqueued++;
|
|
|
|
|
|
/* Priority based enq */
|
|
|
- spin_lock_bh(&bus->txqlock);
|
|
|
+ spin_lock_irqsave(&bus->txqlock, flags);
|
|
|
if (!brcmf_c_prec_enq(bus->sdiodev->dev, &bus->txq, pkt, prec)) {
|
|
|
skb_pull(pkt, SDPCM_HDRLEN);
|
|
|
brcmf_txcomplete(bus->sdiodev->dev, pkt, false);
|
|
@@ -2307,7 +2308,7 @@ static int brcmf_sdbrcm_bus_txdata(struct device *dev, struct sk_buff *pkt)
|
|
|
bus->txoff = true;
|
|
|
brcmf_txflowblock(bus->sdiodev->dev, true);
|
|
|
}
|
|
|
- spin_unlock_bh(&bus->txqlock);
|
|
|
+ spin_unlock_irqrestore(&bus->txqlock, flags);
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
if (pktq_plen(&bus->txq, prec) > qcount[prec])
|