mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: usb: fix static tracepoints
Add submit_urb and rx_urb static tracepoints in mt76-usb module.
Move trace_mac_txstat_fetch in mt76x02_mac_load_tx_status routine
in order to be available to usb drivers. Moreover remove
no longer used mt76x0/trace.{c,h}
Signed-off-by: Lorenzo Bianconi <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
d033272458
commit
1a2b2dc1c9
@@ -354,6 +354,7 @@ int mt76u_submit_buf(struct mt76_dev *dev, int dir, int index,
|
||||
|
||||
usb_fill_bulk_urb(buf->urb, udev, pipe, NULL, buf->len,
|
||||
complete_fn, context);
|
||||
trace_submit_urb(dev, buf->urb);
|
||||
|
||||
return usb_submit_urb(buf->urb, gfp);
|
||||
}
|
||||
@@ -440,6 +441,8 @@ static void mt76u_complete_rx(struct urb *urb)
|
||||
struct mt76_queue *q = &dev->q_rx[MT_RXQ_MAIN];
|
||||
unsigned long flags;
|
||||
|
||||
trace_rx_urb(dev, urb);
|
||||
|
||||
switch (urb->status) {
|
||||
case -ECONNRESET:
|
||||
case -ESHUTDOWN:
|
||||
@@ -726,6 +729,8 @@ static void mt76u_tx_kick(struct mt76_dev *dev, struct mt76_queue *q)
|
||||
|
||||
while (q->first != q->tail) {
|
||||
buf = &q->entry[q->first].ubuf;
|
||||
|
||||
trace_submit_urb(dev, buf->urb);
|
||||
err = usb_submit_urb(buf->urb, GFP_ATOMIC);
|
||||
if (err < 0) {
|
||||
if (err == -ENODEV)
|
||||
|
||||
Reference in New Issue
Block a user