linux/drivers/mcb
Sanjuán García, Jorge a774c5d1f9 mcb: mcb-pci: detect IO mapped devices before requesting resources
If the memory region is requested with devm_request_mem_region()
for an IO mapped device it will return an error and mcb-pci will
incorrectly report it with EBUSY code.

Make sure we identify if the reosure is IO mapped and fail early
with a correct ENOTSUPP code.

Reviewed-by: Jose Javier Rodriguez Barbarin <JoseJavier.Rodriguez@duagon.com>
Signed-off-by: Jorge Sanjuan Garcia <jorge.sanjuangarcia@duagon.com>
Link: https://lore.kernel.org/r/20240523103430.423340-1-jorge.sanjuangarcia@duagon.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-04 17:48:57 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mcb-core.c mcb: constify the struct device_type usage 2024-03-07 20:38:15 +00:00
mcb-internal.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mcb-lpc.c mcb: lpc: Convert to platform remove callback returning void 2024-04-29 10:53:31 +02:00
mcb-parse.c mcb: fix error handling for different scenarios when parsing 2023-10-21 23:04:02 +02:00
mcb-pci.c mcb: mcb-pci: detect IO mapped devices before requesting resources 2024-06-04 17:48:57 +02:00