mt76: usb: use a linear buffer for tx/rx datapath if sg is not supported
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 12 Feb 2019 13:42:41 +0000 (14:42 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 18 Feb 2019 18:55:54 +0000 (19:55 +0100)
commitf752294946ae79aa610dda08413e3d5721faed27
treeaffc2b116e9137fae1b50429d653302514b7a243
parentd704d16f201ab75d9e348ab932b76d2c924fd472
mt76: usb: use a linear buffer for tx/rx datapath if sg is not supported

Use linear fragment and not a single usb scatter-gather buffer in mt76u
{tx,rx} datapath if the usb controller has sg data length constraints

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/usb.c