Skip to content

Commit 108e391

Browse files
marcanjannau
authored andcommitted
wifi: brcmfmac: Add a new bus op for D2H mailbox message handling
Newer firmware versions use the common ring for sending mailbox messages between the dongle and host, instead of the hardware mailboxes. This needs the protocol driver to call back into the bus driver, so add a callback for this to bus.h. Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent 229a727 commit 108e391

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • drivers/net/wireless/broadcom/brcm80211/brcmfmac

drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ struct brcmf_bus_ops {
107107
void (*debugfs_create)(struct device *dev);
108108
int (*reset)(struct device *dev);
109109
void (*remove)(struct device *dev);
110+
void (*d2h_mb_rx)(struct device *dev, u32 data);
110111
};
111112

112113

@@ -286,6 +287,15 @@ static inline void brcmf_bus_remove(struct brcmf_bus *bus)
286287
bus->ops->remove(bus->dev);
287288
}
288289

290+
static inline
291+
void brcmf_bus_d2h_mb_rx(struct brcmf_bus *bus, u32 data)
292+
{
293+
if (!bus->ops->d2h_mb_rx)
294+
return;
295+
296+
return bus->ops->d2h_mb_rx(bus->dev, data);
297+
}
298+
289299
/*
290300
* interface functions from common layer
291301
*/

0 commit comments

Comments
 (0)