aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/stm32mp_fuse.c
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2020-12-30 13:16:36 +0100
committerTom Rini <trini@konsulko.com>2021-01-04 09:10:16 -0500
commit71fd11b9013eda5b618737f91e2b19daabb775a3 (patch)
treee8dff94017caf00cbdfd8ecec394a99afaf22b63 /drivers/misc/stm32mp_fuse.c
parent21e1cae7902e6a9b1d7cf47cf4764e6fe7d3452a (diff)
nvme: Use only 32-bit accesses in nvme_writeq/nvme_readq
There might be hardware configurations where 64-bit data accesses to NVMe registers are not supported properly. This patch removes the readq/writeq so always two 32-bit accesses are used to read/write 64-bit NVMe registers, similarly as it is done in Linux kernel. This patch fixes operation of NVMe devices on RPi4 Broadcom BCM2711 SoC based board, where the PCIe Root Complex, which is attached to the system through the SCB bridge. Even though the architecture is 64-bit the PCIe BAR is 32-bit and likely the 64-bit wide register accesses initiated by the CPU are not properly translated to a sequence of 32-bit PCIe accesses. nvme_readq(), for example, always returns same value in upper and lower 32-bits, e.g. 0x3c033fff3c033fff which lead to NVMe devices to fail probing. This fix is analogous to commit 8e2ab05000ab ("usb: xhci: Use only 32-bit accesses in xhci_writeq/xhci_readq"). Cc: Sylwester Nawrocki <s.nawrocki@samsung.com> Cc: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Cc: Matthias Brugger <mbrugger@suse.com> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Stefan Agner <stefan@agner.ch>
Diffstat (limited to 'drivers/misc/stm32mp_fuse.c')
0 files changed, 0 insertions, 0 deletions