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 |
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 >
> -----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
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 --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;
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(-)