diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2020-01-15 13:58:54 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2020-01-27 19:48:38 +0300 |
commit | 39fb59ce927b2623dcba1680da262af51d9db1d6 (patch) | |
tree | 8a8cf7127b9522b794ad4a147d25f1c597874994 /mt76x0 | |
parent | e2a39697fb0a382c3503460d9fb41ca72ca05bae (diff) |
mt76: mt76u: add {read/write}_extended utility routines
Introduce extended utility routines to read/write data o usb bus. New
devices (e.g. mt7663u) will rely on both upper and lower part of the
register address. Add ext parameter to mt76u_init signature in order to
reuse the code adding mt7663u support.
Co-developed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'mt76x0')
-rw-r--r-- | mt76x0/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mt76x0/usb.c b/mt76x0/usb.c index 3e6de099..c515b41e 100644 --- a/mt76x0/usb.c +++ b/mt76x0/usb.c @@ -241,7 +241,7 @@ static int mt76x0u_probe(struct usb_interface *usb_intf, usb_set_intfdata(usb_intf, dev); mt76x02u_init_mcu(mdev); - ret = mt76u_init(mdev, usb_intf); + ret = mt76u_init(mdev, usb_intf, false); if (ret) goto err; |