mbox series

[0/3] mt76: usb: alignment and endianes improvements

Message ID 1562079961-15527-1-git-send-email-sgruszka@redhat.com (mailing list archive)
Headers show
Series mt76: usb: alignment and endianes improvements | expand

Message

Stanislaw Gruszka July 2, 2019, 3:05 p.m. UTC
Fix endian bug and do some minor optimizations in mt76u_{copy,rr,wr} .

I do not mark cc stable endian fix as noboby reported this issue,
i.e. use the driver on big endian machine, but make it a separate patch,
so it can be backported if needed.

This is on top of:
[PATCH] mt76: round up length on mt76_wr_copy 

Stanislaw Gruszka (3):
  mt76: usb: fix endian in mt76u_copy
  mt76: usb: remove unneeded {put,get}_unaligned
  mt76: usb: use full intermediate buffer in mt76u_copy

 drivers/net/wireless/mediatek/mt76/mt76.h |  5 ++++-
 drivers/net/wireless/mediatek/mt76/usb.c  | 27 ++++++++++++++++-----------
 2 files changed, 20 insertions(+), 12 deletions(-)

Comments

Lorenzo Bianconi July 3, 2019, 10:12 p.m. UTC | #1
> Fix endian bug and do some minor optimizations in mt76u_{copy,rr,wr} .
> 
> I do not mark cc stable endian fix as noboby reported this issue,
> i.e. use the driver on big endian machine, but make it a separate patch,
> so it can be backported if needed.
> 

Tested-by: Lorenzo Bianconi <lorenzo@kernel.org>

> This is on top of:
> [PATCH] mt76: round up length on mt76_wr_copy 
> 
> Stanislaw Gruszka (3):
>   mt76: usb: fix endian in mt76u_copy
>   mt76: usb: remove unneeded {put,get}_unaligned
>   mt76: usb: use full intermediate buffer in mt76u_copy
> 
>  drivers/net/wireless/mediatek/mt76/mt76.h |  5 ++++-
>  drivers/net/wireless/mediatek/mt76/usb.c  | 27 ++++++++++++++++-----------
>  2 files changed, 20 insertions(+), 12 deletions(-)
> 
> -- 
> 1.9.3
>