From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Philipp Stanner <pstanner@redhat.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: Tue, 5 Nov 2024 16:52:45 +0200 [thread overview]
Message-ID: <ZyoxPQPupkorXPoa@smile.fi.intel.com> (raw)
In-Reply-To: <20241105112521.58638-2-pstanner@redhat.com>
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?
> - return ret;
> - }
...
> + pwr->regs = pcim_iomap_region(pdev, 0, "intel_mid_pwr");
> + if (IS_ERR(pwr->regs))
> + return PTR_ERR(pwr->regs);
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2024-11-05 14:52 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 [this message]
2024-11-06 8:37 ` Philipp Stanner
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=ZyoxPQPupkorXPoa@smile.fi.intel.com \
--to=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=pstanner@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®