From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: "Sanjuán García, Jorge" <Jorge.SanjuanGarcia@duagon.com>
Cc: "morbidrsa@gmail.com" <morbidrsa@gmail.com>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"jth@kernel.org" <jth@kernel.org>,
"Rodríguez Barbarin,
José Javier" <josejavier.rodriguez@duagon.com>
Subject: Re: [PATCH RESEND] mcb: mcb-pci: detect IO mapped devices before requesting resources
Date: Fri, 7 Jun 2024 23:42:38 +0300 [thread overview]
Message-ID: <ZmNwvsngNZhEGNfv@surfacebook.localdomain> (raw)
In-Reply-To: <20240523103430.423340-1-jorge.sanjuangarcia@duagon.com>
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
prev parent reply other threads:[~2024-06-07 20:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-23 10:35 Sanjuán García, Jorge
2024-06-07 20:42 ` Andy Shevchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZmNwvsngNZhEGNfv@surfacebook.localdomain \
--to=andy.shevchenko@gmail.com \
--cc=Jorge.SanjuanGarcia@duagon.com \
--cc=gregkh@linuxfoundation.org \
--cc=josejavier.rodriguez@duagon.com \
--cc=jth@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=morbidrsa@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®