aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/spi/spi-mem.c
diff options
context:
space:
mode:
authorYicong Yang <yangyicong@hisilicon.com>2021-01-27 17:40:50 +0800
committerMark Brown <broonie@kernel.org>2021-01-27 12:37:30 +0000
commit6d2386e36440165da782dbc5c0de40f31665e108 (patch)
treedb6131aa8b01e0cd2d11a3881be50bdadccb0377 /drivers/spi/spi-mem.c
parentdt-bindings: spi: sunxi: Add H616 compatible string (diff)
downloadwireguard-linux-6d2386e36440165da782dbc5c0de40f31665e108.tar.xz
wireguard-linux-6d2386e36440165da782dbc5c0de40f31665e108.zip
spi: hisi-sfc-v3xx: add address mode check
The address mode is either 3 or 4 for the controller, which is configured by the firmware and cannot be modified in the OS driver. Get the firmware configuration and add address mode check in the .supports_op() to block invalid operations. Signed-off-by: Yicong Yang <yangyicong@hisilicon.com> Acked-by: John Garry <john.garry@huawei.com> Link: https://lore.kernel.org/r/1611740450-47975-3-git-send-email-yangyicong@hisilicon.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-mem.c')
0 files changed, 0 insertions, 0 deletions