diff mbox series

[platform-next,v1,4/7] platform/x86: mlx-platform: Fix LED configuration

Message ID 1542124216-102420-5-git-send-email-vadimp@mellanox.com (mailing list archive)
State Changes Requested, archived
Headers show
Series platform/x86: Mellanox: add new features and bug fix | expand

Commit Message

Vadim Pasternak Nov. 13, 2018, 3:50 p.m. UTC
Exchange LED configuration between msn201x and next generation systems
types.

Fixes: 1189456b1cce ("platform/x86: mlx-platform: Add LED platform driver activation")
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
---
 drivers/platform/x86/mlx-platform.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Andy Shevchenko Nov. 13, 2018, 3:25 p.m. UTC | #1
On Tue, Nov 13, 2018 at 3:55 PM Vadim Pasternak <vadimp@mellanox.com> wrote:
>
> Exchange LED configuration between msn201x and next generation systems
> types.

Why?

>
> Fixes: 1189456b1cce ("platform/x86: mlx-platform: Add LED platform driver activation")
> Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
> ---
>  drivers/platform/x86/mlx-platform.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c
> index 7e92264..750b153 100644
> --- a/drivers/platform/x86/mlx-platform.c
> +++ b/drivers/platform/x86/mlx-platform.c
> @@ -1430,7 +1430,7 @@ static int __init mlxplat_dmi_msn201x_matched(const struct dmi_system_id *dmi)
>         mlxplat_hotplug = &mlxplat_mlxcpld_msn201x_data;
>         mlxplat_hotplug->deferred_nr =
>                 mlxplat_default_channels[i - 1][MLXPLAT_CPLD_GRP_CHNL_NUM - 1];
> -       mlxplat_led = &mlxplat_default_ng_led_data;
> +       mlxplat_led = &mlxplat_msn21xx_led_data;
>         mlxplat_regs_io = &mlxplat_msn21xx_regs_io_data;
>
>         return 1;
> @@ -1448,7 +1448,7 @@ static int __init mlxplat_dmi_qmb7xx_matched(const struct dmi_system_id *dmi)
>         mlxplat_hotplug = &mlxplat_mlxcpld_default_ng_data;
>         mlxplat_hotplug->deferred_nr =
>                 mlxplat_msn21xx_channels[MLXPLAT_CPLD_GRP_CHNL_NUM - 1];
> -       mlxplat_led = &mlxplat_msn21xx_led_data;
> +       mlxplat_led = &mlxplat_default_ng_led_data;
>         mlxplat_fan = &mlxplat_default_fan_data;
>
>         return 1;
> --
> 2.1.4
>
Vadim Pasternak Nov. 13, 2018, 3:38 p.m. UTC | #2
> -----Original Message-----
> From: Andy Shevchenko <andy.shevchenko@gmail.com>
> Sent: Tuesday, November 13, 2018 5:26 PM
> To: Vadim Pasternak <vadimp@mellanox.com>
> Cc: Darren Hart <dvhart@infradead.org>; Platform Driver <platform-driver-
> x86@vger.kernel.org>; Jiří Pírko <jiri@resnulli.us>; Michael Shych
> <michaelsh@mellanox.com>
> Subject: Re: [PATCH platform-next v1 4/7] platform/x86: mlx-platform: Fix LED
> configuration
> 
> On Tue, Nov 13, 2018 at 3:55 PM Vadim Pasternak <vadimp@mellanox.com>
> wrote:
> >
> > Exchange LED configuration between msn201x and next generation systems
> > types.
> 
> Why?

Just my bug.
I missed it.

> 
> >
> > Fixes: 1189456b1cce ("platform/x86: mlx-platform: Add LED platform
> > driver activation")
> > Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
> > ---
> >  drivers/platform/x86/mlx-platform.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/platform/x86/mlx-platform.c
> > b/drivers/platform/x86/mlx-platform.c
> > index 7e92264..750b153 100644
> > --- a/drivers/platform/x86/mlx-platform.c
> > +++ b/drivers/platform/x86/mlx-platform.c
> > @@ -1430,7 +1430,7 @@ static int __init
> mlxplat_dmi_msn201x_matched(const struct dmi_system_id *dmi)
> >         mlxplat_hotplug = &mlxplat_mlxcpld_msn201x_data;
> >         mlxplat_hotplug->deferred_nr =
> >                 mlxplat_default_channels[i - 1][MLXPLAT_CPLD_GRP_CHNL_NUM -
> 1];
> > -       mlxplat_led = &mlxplat_default_ng_led_data;
> > +       mlxplat_led = &mlxplat_msn21xx_led_data;
> >         mlxplat_regs_io = &mlxplat_msn21xx_regs_io_data;
> >
> >         return 1;
> > @@ -1448,7 +1448,7 @@ static int __init
> mlxplat_dmi_qmb7xx_matched(const struct dmi_system_id *dmi)
> >         mlxplat_hotplug = &mlxplat_mlxcpld_default_ng_data;
> >         mlxplat_hotplug->deferred_nr =
> >                 mlxplat_msn21xx_channels[MLXPLAT_CPLD_GRP_CHNL_NUM - 1];
> > -       mlxplat_led = &mlxplat_msn21xx_led_data;
> > +       mlxplat_led = &mlxplat_default_ng_led_data;
> >         mlxplat_fan = &mlxplat_default_fan_data;
> >
> >         return 1;
> > --
> > 2.1.4
> >
> 
> 
> --
> With Best Regards,
> Andy Shevchenko
Andy Shevchenko Nov. 13, 2018, 3:49 p.m. UTC | #3
On Tue, Nov 13, 2018 at 5:38 PM Vadim Pasternak <vadimp@mellanox.com> wrote:
>
>
>
> > -----Original Message-----
> > From: Andy Shevchenko <andy.shevchenko@gmail.com>
> > Sent: Tuesday, November 13, 2018 5:26 PM
> > To: Vadim Pasternak <vadimp@mellanox.com>
> > Cc: Darren Hart <dvhart@infradead.org>; Platform Driver <platform-driver-
> > x86@vger.kernel.org>; Jiří Pírko <jiri@resnulli.us>; Michael Shych
> > <michaelsh@mellanox.com>
> > Subject: Re: [PATCH platform-next v1 4/7] platform/x86: mlx-platform: Fix LED
> > configuration
> >
> > On Tue, Nov 13, 2018 at 3:55 PM Vadim Pasternak <vadimp@mellanox.com>
> > wrote:
> > >
> > > Exchange LED configuration between msn201x and next generation systems
> > > types.
> >
> > Why?
>
> Just my bug.
> I missed it.

Same question applies. So, please elaborate in the commit message that
the systems are not yet released, thus users are not affected by the
change.
Above means there is no regression, so, no Fixes tag is needed (I
think you can leave it, but I'm not going to send this to stable).

>
> >
> > >
> > > Fixes: 1189456b1cce ("platform/x86: mlx-platform: Add LED platform
> > > driver activation")
> > > Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
> > > ---
> > >  drivers/platform/x86/mlx-platform.c | 4 ++--
> > >  1 file changed, 2 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/drivers/platform/x86/mlx-platform.c
> > > b/drivers/platform/x86/mlx-platform.c
> > > index 7e92264..750b153 100644
> > > --- a/drivers/platform/x86/mlx-platform.c
> > > +++ b/drivers/platform/x86/mlx-platform.c
> > > @@ -1430,7 +1430,7 @@ static int __init
> > mlxplat_dmi_msn201x_matched(const struct dmi_system_id *dmi)
> > >         mlxplat_hotplug = &mlxplat_mlxcpld_msn201x_data;
> > >         mlxplat_hotplug->deferred_nr =
> > >                 mlxplat_default_channels[i - 1][MLXPLAT_CPLD_GRP_CHNL_NUM -
> > 1];
> > > -       mlxplat_led = &mlxplat_default_ng_led_data;
> > > +       mlxplat_led = &mlxplat_msn21xx_led_data;
> > >         mlxplat_regs_io = &mlxplat_msn21xx_regs_io_data;
> > >
> > >         return 1;
> > > @@ -1448,7 +1448,7 @@ static int __init
> > mlxplat_dmi_qmb7xx_matched(const struct dmi_system_id *dmi)
> > >         mlxplat_hotplug = &mlxplat_mlxcpld_default_ng_data;
> > >         mlxplat_hotplug->deferred_nr =
> > >                 mlxplat_msn21xx_channels[MLXPLAT_CPLD_GRP_CHNL_NUM - 1];
> > > -       mlxplat_led = &mlxplat_msn21xx_led_data;
> > > +       mlxplat_led = &mlxplat_default_ng_led_data;
> > >         mlxplat_fan = &mlxplat_default_fan_data;
> > >
> > >         return 1;
> > > --
> > > 2.1.4
> > >
> >
> >
> > --
> > With Best Regards,
> > Andy Shevchenko
diff mbox series

Patch

diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c
index 7e92264..750b153 100644
--- a/drivers/platform/x86/mlx-platform.c
+++ b/drivers/platform/x86/mlx-platform.c
@@ -1430,7 +1430,7 @@  static int __init mlxplat_dmi_msn201x_matched(const struct dmi_system_id *dmi)
 	mlxplat_hotplug = &mlxplat_mlxcpld_msn201x_data;
 	mlxplat_hotplug->deferred_nr =
 		mlxplat_default_channels[i - 1][MLXPLAT_CPLD_GRP_CHNL_NUM - 1];
-	mlxplat_led = &mlxplat_default_ng_led_data;
+	mlxplat_led = &mlxplat_msn21xx_led_data;
 	mlxplat_regs_io = &mlxplat_msn21xx_regs_io_data;
 
 	return 1;
@@ -1448,7 +1448,7 @@  static int __init mlxplat_dmi_qmb7xx_matched(const struct dmi_system_id *dmi)
 	mlxplat_hotplug = &mlxplat_mlxcpld_default_ng_data;
 	mlxplat_hotplug->deferred_nr =
 		mlxplat_msn21xx_channels[MLXPLAT_CPLD_GRP_CHNL_NUM - 1];
-	mlxplat_led = &mlxplat_msn21xx_led_data;
+	mlxplat_led = &mlxplat_default_ng_led_data;
 	mlxplat_fan = &mlxplat_default_fan_data;
 
 	return 1;