From: "andriy.shevchenko@intel.com" <andriy.shevchenko@intel.com>
To: "Habil Eren Türker" <habilerenturker@hotmail.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
Borislav Petkov <bp@alien8.de>,
Dave Hansen <dave.hansen@linux.intel.com>,
"x86@kernel.org" <x86@kernel.org>,
"H . Peter Anvin" <hpa@zytor.com>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4 2/4] PCI: Convert pci.c to pci_power_t helpers
Date: Mon, 23 Nov 2026 12:12:16 +0200 [thread overview]
Message-ID: <awQRgPkcBnfEYKoe@ashevche-desk.local> (raw)
In-Reply-To: <20261121130936.53191-4-habilerenturker@hotmail.com>
On Sat, Nov 21, 2026 at 01:12:33PM +0000, Habil Eren Türker wrote:
> Convert PCI core code to use the pci_power_t helper functions
> when accessing the Power Management Control/Status register.
>
> Keep comparisons between values already typed as pci_power_t
> as direct typed comparisons.
>
> Resolved Sparse warnings:
>
> - drivers/pci/pci.c : warning: incorrect type in assignment
> (different base types) (4 warnings)
>
> - drivers/pci/pci.c : warning: invalid assignment: |= (3 warnings)
...
> - state = pmcsr & PCI_PM_CTRL_STATE_MASK;
> + need_restore = !(pmcsr & PCI_PM_CTRL_NO_SOFT_RESET) &&
> + (pci_power_t_eq(pci_power_t_get(pmcsr), PCI_D3hot) ||
> + dev->current_state >= PCI_D3hot);
Broken indentation. They should start from the same column as '!' above.
...
The rest looks fine.
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2026-11-23 10:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 13:12 [PATCH v4 0/4] PCI: Add pci_power_t helper functions Habil Eren Türker
2026-11-21 13:12 ` [PATCH v4 1/4] " Habil Eren Türker
2026-11-23 10:09 ` andriy.shevchenko
2026-11-21 13:12 ` [PATCH v4 2/4] PCI: Convert pci.c to pci_power_t helpers Habil Eren Türker
2026-11-23 10:12 ` andriy.shevchenko [this message]
2026-11-21 13:12 ` [PATCH v4 3/4] PCI: Convert quirks.c " Habil Eren Türker
2026-11-21 13:12 ` [PATCH v4 4/4] x86/quirks: Use pci_power_t_eq() in apple_airport_reset() Habil Eren Türker
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=awQRgPkcBnfEYKoe@ashevche-desk.local \
--to=andriy.shevchenko@intel.com \
--cc=bhelgaas@google.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=habilerenturker@hotmail.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@kernel.org \
--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®