Re: [PATCH RESEND] mcb: mcb-pci: detect IO mapped devices before requesting resources

From: Andy Shevchenko
Date: Fri Jun 07 2024 - 16:42:58 EST


Thu, May 23, 2024 at 10:35:03AM +0000, Sanjuán García, Jorge kirjoitti:
> 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.

No, ENOTSUPP is incorrect code in this case. Have you run checkpatch?
Please, submit a patch to change this error code to one from the POSIX range.

--
With Best Regards,
Andy Shevchenko