wil6210: fix debugfs memory access alignment
authorAhmad Masri <amasri@codeaurora.org>
Wed, 31 Oct 2018 08:52:18 +0000 (10:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:17:19 +0000 (09:17 +0100)
commitaa2112d571521b68cfdb82d399a517041e9c4b7c
treee67a5326fca6530f827615f28537d2da1bdf01cf
parentea136e61e4df85f53c7fce53d2273c579cf6db9f
wil6210: fix debugfs memory access alignment

[ Upstream commit 84ec040d0fb25197584d28a0dedc355503cd19b9 ]

All wil6210 device memory access should be 4 bytes aligned. In io
blob wil6210 did not force alignment for read function, this caused
alignment fault on some platforms.
Fixing that by accessing all 4 lower bytes and return to host the
requested data.

Signed-off-by: Ahmad Masri <amasri@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/wil6210/debugfs.c