From: Philipp Stanner <pstanner@redhat.com>
To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, "H. Peter Anvin" <hpa@zytor.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86/platform/intel-mid: Replace deprecated PCI functions
Date: Wed, 06 Nov 2024 09:37:51 +0100 [thread overview]
Message-ID: <b778fb587d7ce15b89847627ba3caca2d8d060d8.camel@redhat.com> (raw)
In-Reply-To: <ZyoxPQPupkorXPoa@smile.fi.intel.com>
On Tue, 2024-11-05 at 16:52 +0200, Andy Shevchenko wrote:
> On Tue, Nov 05, 2024 at 12:25:22PM +0100, Philipp Stanner wrote:
> > pcim_iomap_table() and pcim_request_regions() have been deprecated
> > in
> > commit e354bb84a4c1 ("PCI: Deprecate pcim_iomap_table(),
> > pcim_iomap_regions_request_all()") and commit d140f80f60358 ("PCI:
> > Deprecate pcim_iomap_regions() in favor of pcim_iomap_region()"),
> > respectively.
> >
> > Replace these functions with pcim_iomap_region().
> >
> > Additionally, pass the actual driver name to pcim_iomap_region()
> > instead of the previous pci_name(), since the 'name' parameter
> > should
> > always reflect which driver owns a region.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> ...
>
> > - ret = pcim_iomap_regions(pdev, 1 << 0, pci_name(pdev));
> > - if (ret) {
> > - dev_err(&pdev->dev, "I/O memory remapping
> > failed\n");
>
> Btw, do we have a similar message to be printed inside the new call?
Hm, no, it seems I forgot. Normally I keep those messages.
In this particular case we probably want to say "I/O memory request /
remapping failed\n", though.
And/or we give back the error code, which would reveal the exact issue
through -ENOMEM / -EBUSY
P.
>
> > - return ret;
> > - }
>
> ...
>
> > + pwr->regs = pcim_iomap_region(pdev, 0, "intel_mid_pwr");
> > + if (IS_ERR(pwr->regs))
> > + return PTR_ERR(pwr->regs);
>
next prev parent reply other threads:[~2024-11-06 8:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-05 11:25 Philipp Stanner
2024-11-05 14:52 ` Andy Shevchenko
2024-11-06 8:37 ` Philipp Stanner [this message]
2024-11-06 11:05 ` Andy Shevchenko
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=b778fb587d7ce15b89847627ba3caca2d8d060d8.camel@redhat.com \
--to=pstanner@redhat.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/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®