* [PATCH v1 1/2] ACPI: LPSS: Remove nested ifdeffery for CONFIG_PM
2024-04-02 15:28 [PATCH v1 0/2] ACPI: LPSS: Prepare for SPI code cleanup Andy Shevchenko
@ 2024-04-02 15:28 ` Andy Shevchenko
2024-04-02 15:28 ` [PATCH v1 2/2] ACPI: LPSS: Advertise number of chip selects via property Andy Shevchenko
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2024-04-02 15:28 UTC (permalink / raw)
To: Rafael J. Wysocki, linux-acpi, linux-kernel
Cc: Rafael J. Wysocki, Len Brown, Andy Shevchenko
There is no need to have the ifdef CONFIG_PM to be nested.
The second and so on will obviously become a no-op.
Remove redundant nested ifdeffery.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/acpi/acpi_lpss.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c
index 04e273167e92..5b56f198d005 100644
--- a/drivers/acpi/acpi_lpss.c
+++ b/drivers/acpi/acpi_lpss.c
@@ -886,10 +886,8 @@ static int acpi_lpss_activate(struct device *dev)
if (pdata->dev_desc->flags & (LPSS_SAVE_CTX | LPSS_SAVE_CTX_ONCE))
lpss_deassert_reset(pdata);
-#ifdef CONFIG_PM
if (pdata->dev_desc->flags & LPSS_SAVE_CTX_ONCE)
acpi_lpss_save_ctx(dev, pdata);
-#endif
return 0;
}
--
2.43.0.rc1.1.gbec44491f096
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH v1 2/2] ACPI: LPSS: Advertise number of chip selects via property
2024-04-02 15:28 [PATCH v1 0/2] ACPI: LPSS: Prepare for SPI code cleanup Andy Shevchenko
2024-04-02 15:28 ` [PATCH v1 1/2] ACPI: LPSS: Remove nested ifdeffery for CONFIG_PM Andy Shevchenko
@ 2024-04-02 15:28 ` Andy Shevchenko
2024-04-04 10:58 ` Rafael J. Wysocki
2024-04-02 18:58 ` [PATCH v1 0/2] ACPI: LPSS: Prepare for SPI code cleanup Andy Shevchenko
2024-04-02 21:18 ` Kuppuswamy Sathyanarayanan
3 siblings, 1 reply; 7+ messages in thread
From: Andy Shevchenko @ 2024-04-02 15:28 UTC (permalink / raw)
To: Rafael J. Wysocki, linux-acpi, linux-kernel
Cc: Rafael J. Wysocki, Len Brown, Andy Shevchenko
Advertise number of chip selects via property for Intel Braswell.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/acpi/acpi_lpss.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c
index 5b56f198d005..a3d2d94be5c0 100644
--- a/drivers/acpi/acpi_lpss.c
+++ b/drivers/acpi/acpi_lpss.c
@@ -325,6 +325,7 @@ static const struct lpss_device_desc bsw_i2c_dev_desc = {
static const struct property_entry bsw_spi_properties[] = {
PROPERTY_ENTRY_U32("intel,spi-pxa2xx-type", LPSS_BSW_SSP),
+ PROPERTY_ENTRY_U32("num-cs", 2),
{ }
};
--
2.43.0.rc1.1.gbec44491f096
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH v1 2/2] ACPI: LPSS: Advertise number of chip selects via property
2024-04-02 15:28 ` [PATCH v1 2/2] ACPI: LPSS: Advertise number of chip selects via property Andy Shevchenko
@ 2024-04-04 10:58 ` Rafael J. Wysocki
2024-04-04 11:57 ` Andy Shevchenko
0 siblings, 1 reply; 7+ messages in thread
From: Rafael J. Wysocki @ 2024-04-04 10:58 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Rafael J. Wysocki, linux-acpi, linux-kernel, Rafael J. Wysocki,
Len Brown
On Tue, Apr 2, 2024 at 5:30 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> Advertise number of chip selects via property for Intel Braswell.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
A Fixes: tag, please?
Also, IIUC this should be applied before
https://lore.kernel.org/linux-acpi/20240403170302.1073841-1-andriy.shevchenko@linux.intel.com/
?
> ---
> drivers/acpi/acpi_lpss.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c
> index 5b56f198d005..a3d2d94be5c0 100644
> --- a/drivers/acpi/acpi_lpss.c
> +++ b/drivers/acpi/acpi_lpss.c
> @@ -325,6 +325,7 @@ static const struct lpss_device_desc bsw_i2c_dev_desc = {
>
> static const struct property_entry bsw_spi_properties[] = {
> PROPERTY_ENTRY_U32("intel,spi-pxa2xx-type", LPSS_BSW_SSP),
> + PROPERTY_ENTRY_U32("num-cs", 2),
> { }
> };
>
> --
> 2.43.0.rc1.1.gbec44491f096
>
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v1 2/2] ACPI: LPSS: Advertise number of chip selects via property
2024-04-04 10:58 ` Rafael J. Wysocki
@ 2024-04-04 11:57 ` Andy Shevchenko
0 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2024-04-04 11:57 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: Rafael J. Wysocki, linux-acpi, linux-kernel, Len Brown
On Thu, Apr 04, 2024 at 12:58:29PM +0200, Rafael J. Wysocki wrote:
> On Tue, Apr 2, 2024 at 5:30 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> >
> > Advertise number of chip selects via property for Intel Braswell.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> A Fixes: tag, please?
Sure.
> Also, IIUC this should be applied before
> https://lore.kernel.org/linux-acpi/20240403170302.1073841-1-andriy.shevchenko@linux.intel.com/
> ?
I believe yes for the sake of simplicity in maintaining / backporting
(if needed).
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v1 0/2] ACPI: LPSS: Prepare for SPI code cleanup
2024-04-02 15:28 [PATCH v1 0/2] ACPI: LPSS: Prepare for SPI code cleanup Andy Shevchenko
2024-04-02 15:28 ` [PATCH v1 1/2] ACPI: LPSS: Remove nested ifdeffery for CONFIG_PM Andy Shevchenko
2024-04-02 15:28 ` [PATCH v1 2/2] ACPI: LPSS: Advertise number of chip selects via property Andy Shevchenko
@ 2024-04-02 18:58 ` Andy Shevchenko
2024-04-02 21:18 ` Kuppuswamy Sathyanarayanan
3 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2024-04-02 18:58 UTC (permalink / raw)
To: Rafael J. Wysocki, linux-acpi, linux-kernel; +Cc: Rafael J. Wysocki, Len Brown
On Tue, Apr 02, 2024 at 06:28:51PM +0300, Andy Shevchenko wrote:
> An ad-hoc cleanup followed by preparation for SPI code cleaning.
> The latter will be done in the next kernel cycle to avoid conflicts.
Thinking more about these two, it might be even possible to put them
as amendments for v6.9-rc3, but I'm fine to have them for v6.10-rc1.
Just speaking out my thoughts, whatever is better for you is good
for me.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v1 0/2] ACPI: LPSS: Prepare for SPI code cleanup
2024-04-02 15:28 [PATCH v1 0/2] ACPI: LPSS: Prepare for SPI code cleanup Andy Shevchenko
` (2 preceding siblings ...)
2024-04-02 18:58 ` [PATCH v1 0/2] ACPI: LPSS: Prepare for SPI code cleanup Andy Shevchenko
@ 2024-04-02 21:18 ` Kuppuswamy Sathyanarayanan
3 siblings, 0 replies; 7+ messages in thread
From: Kuppuswamy Sathyanarayanan @ 2024-04-02 21:18 UTC (permalink / raw)
To: Andy Shevchenko, Rafael J. Wysocki, linux-acpi, linux-kernel
Cc: Rafael J. Wysocki, Len Brown
On 4/2/24 8:28 AM, Andy Shevchenko wrote:
> An ad-hoc cleanup followed by preparation for SPI code cleaning.
> The latter will be done in the next kernel cycle to avoid conflicts.
Looks good to me.
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
> Andy Shevchenko (2):
> ACPI: LPSS: Remove nested ifdeffery for CONFIG_PM
> ACPI: LPSS: Advertise number of chip selects via property
>
> drivers/acpi/acpi_lpss.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
--
Sathyanarayanan Kuppuswamy
Linux Kernel Developer
^ permalink raw reply [flat|nested] 7+ messages in thread