* [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
@ 2021-10-27 12:31 ` Rafał Miłecki
0 siblings, 0 replies; 12+ messages in thread
From: Rafał Miłecki @ 2021-10-27 12:31 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck
Cc: Florian Fainelli, bcm-kernel-feedback-list, linux-watchdog,
linux-arm-kernel, Rafał Miłecki
From: Rafał Miłecki <rafal@milecki.pl>
This fixes:
drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
drivers/watchdog/bcm63xx_wdt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog/bcm63xx_wdt.c
index 7cdb25363ea0..56cc262571a5 100644
--- a/drivers/watchdog/bcm63xx_wdt.c
+++ b/drivers/watchdog/bcm63xx_wdt.c
@@ -207,6 +207,8 @@ static long bcm63xx_wdt_ioctl(struct file *file, unsigned int cmd,
bcm63xx_wdt_pet();
+ fallthrough;
+
case WDIOC_GETTIMEOUT:
return put_user(wdt_time, p);
--
2.31.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
@ 2021-10-27 12:31 ` Rafał Miłecki
0 siblings, 0 replies; 12+ messages in thread
From: Rafał Miłecki @ 2021-10-27 12:31 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck
Cc: Florian Fainelli, bcm-kernel-feedback-list, linux-watchdog,
linux-arm-kernel, Rafał Miłecki
From: Rafał Miłecki <rafal@milecki.pl>
This fixes:
drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
drivers/watchdog/bcm63xx_wdt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog/bcm63xx_wdt.c
index 7cdb25363ea0..56cc262571a5 100644
--- a/drivers/watchdog/bcm63xx_wdt.c
+++ b/drivers/watchdog/bcm63xx_wdt.c
@@ -207,6 +207,8 @@ static long bcm63xx_wdt_ioctl(struct file *file, unsigned int cmd,
bcm63xx_wdt_pet();
+ fallthrough;
+
case WDIOC_GETTIMEOUT:
return put_user(wdt_time, p);
--
2.31.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
2021-10-27 12:31 ` Rafał Miłecki
@ 2021-10-27 17:28 ` Florian Fainelli
-1 siblings, 0 replies; 12+ messages in thread
From: Florian Fainelli @ 2021-10-27 17:28 UTC (permalink / raw)
To: Rafał Miłecki, Wim Van Sebroeck, Guenter Roeck
Cc: Florian Fainelli, bcm-kernel-feedback-list, linux-watchdog,
linux-arm-kernel, Rafał Miłecki
On 10/27/21 5:31 AM, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> This fixes:
> drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
> drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
@ 2021-10-27 17:28 ` Florian Fainelli
0 siblings, 0 replies; 12+ messages in thread
From: Florian Fainelli @ 2021-10-27 17:28 UTC (permalink / raw)
To: Rafał Miłecki, Wim Van Sebroeck, Guenter Roeck
Cc: Florian Fainelli, bcm-kernel-feedback-list, linux-watchdog,
linux-arm-kernel, Rafał Miłecki
On 10/27/21 5:31 AM, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> This fixes:
> drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
> drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
2021-10-27 12:31 ` Rafał Miłecki
@ 2021-10-27 17:31 ` Guenter Roeck
-1 siblings, 0 replies; 12+ messages in thread
From: Guenter Roeck @ 2021-10-27 17:31 UTC (permalink / raw)
To: Rafał Miłecki
Cc: Wim Van Sebroeck, Florian Fainelli, bcm-kernel-feedback-list,
linux-watchdog, linux-arm-kernel, Rafał Miłecki
On Wed, Oct 27, 2021 at 02:31:35PM +0200, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> This fixes:
> drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
> drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
[reluctantly]
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
... because the driver should really be converted to use the watchdog subsystem,
by someone with the necessary hardware to test it.
Guenter
> ---
> drivers/watchdog/bcm63xx_wdt.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog/bcm63xx_wdt.c
> index 7cdb25363ea0..56cc262571a5 100644
> --- a/drivers/watchdog/bcm63xx_wdt.c
> +++ b/drivers/watchdog/bcm63xx_wdt.c
> @@ -207,6 +207,8 @@ static long bcm63xx_wdt_ioctl(struct file *file, unsigned int cmd,
>
> bcm63xx_wdt_pet();
>
> + fallthrough;
> +
> case WDIOC_GETTIMEOUT:
> return put_user(wdt_time, p);
>
> --
> 2.31.1
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
@ 2021-10-27 17:31 ` Guenter Roeck
0 siblings, 0 replies; 12+ messages in thread
From: Guenter Roeck @ 2021-10-27 17:31 UTC (permalink / raw)
To: Rafał Miłecki
Cc: Wim Van Sebroeck, Florian Fainelli, bcm-kernel-feedback-list,
linux-watchdog, linux-arm-kernel, Rafał Miłecki
On Wed, Oct 27, 2021 at 02:31:35PM +0200, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> This fixes:
> drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
> drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
[reluctantly]
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
... because the driver should really be converted to use the watchdog subsystem,
by someone with the necessary hardware to test it.
Guenter
> ---
> drivers/watchdog/bcm63xx_wdt.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog/bcm63xx_wdt.c
> index 7cdb25363ea0..56cc262571a5 100644
> --- a/drivers/watchdog/bcm63xx_wdt.c
> +++ b/drivers/watchdog/bcm63xx_wdt.c
> @@ -207,6 +207,8 @@ static long bcm63xx_wdt_ioctl(struct file *file, unsigned int cmd,
>
> bcm63xx_wdt_pet();
>
> + fallthrough;
> +
> case WDIOC_GETTIMEOUT:
> return put_user(wdt_time, p);
>
> --
> 2.31.1
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
2021-10-27 17:31 ` Guenter Roeck
@ 2021-10-27 17:39 ` Florian Fainelli
-1 siblings, 0 replies; 12+ messages in thread
From: Florian Fainelli @ 2021-10-27 17:39 UTC (permalink / raw)
To: Guenter Roeck, Rafał Miłecki
Cc: Wim Van Sebroeck, Florian Fainelli, bcm-kernel-feedback-list,
linux-watchdog, linux-arm-kernel, Rafał Miłecki
On 10/27/21 10:31 AM, Guenter Roeck wrote:
> On Wed, Oct 27, 2021 at 02:31:35PM +0200, Rafał Miłecki wrote:
>> From: Rafał Miłecki <rafal@milecki.pl>
>>
>> This fixes:
>> drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
>> drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
>>
>> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>
> [reluctantly]
>
> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
>
> ... because the driver should really be converted to use the watchdog subsystem,
> by someone with the necessary hardware to test it.
The driver should ideally be removed and we should use bcm7038_wdt.c
moving forward. Rafal, is this something you can try on 4908?
We would have to pay attention to arch/mips/bcm63xx/dev_wdt.c and
introduce a MODULE_DEVICE_TABLE() and platform_device_id so we can key
off any BCM63xx-specific behavior.
--
Florian
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
@ 2021-10-27 17:39 ` Florian Fainelli
0 siblings, 0 replies; 12+ messages in thread
From: Florian Fainelli @ 2021-10-27 17:39 UTC (permalink / raw)
To: Guenter Roeck, Rafał Miłecki
Cc: Wim Van Sebroeck, Florian Fainelli, bcm-kernel-feedback-list,
linux-watchdog, linux-arm-kernel, Rafał Miłecki
On 10/27/21 10:31 AM, Guenter Roeck wrote:
> On Wed, Oct 27, 2021 at 02:31:35PM +0200, Rafał Miłecki wrote:
>> From: Rafał Miłecki <rafal@milecki.pl>
>>
>> This fixes:
>> drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
>> drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
>>
>> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>
> [reluctantly]
>
> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
>
> ... because the driver should really be converted to use the watchdog subsystem,
> by someone with the necessary hardware to test it.
The driver should ideally be removed and we should use bcm7038_wdt.c
moving forward. Rafal, is this something you can try on 4908?
We would have to pay attention to arch/mips/bcm63xx/dev_wdt.c and
introduce a MODULE_DEVICE_TABLE() and platform_device_id so we can key
off any BCM63xx-specific behavior.
--
Florian
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
2021-10-27 17:39 ` Florian Fainelli
@ 2021-10-27 20:40 ` Rafał Miłecki
-1 siblings, 0 replies; 12+ messages in thread
From: Rafał Miłecki @ 2021-10-27 20:40 UTC (permalink / raw)
To: Florian Fainelli, Guenter Roeck
Cc: Wim Van Sebroeck, bcm-kernel-feedback-list, linux-watchdog,
linux-arm-kernel, Rafał Miłecki
On 27.10.2021 19:39, Florian Fainelli wrote:
> On 10/27/21 10:31 AM, Guenter Roeck wrote:
>> On Wed, Oct 27, 2021 at 02:31:35PM +0200, Rafał Miłecki wrote:
>>> From: Rafał Miłecki <rafal@milecki.pl>
>>>
>>> This fixes:
>>> drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
>>> drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
>>>
>>> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>>
>> [reluctantly]
>>
>> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
>>
>> ... because the driver should really be converted to use the watchdog subsystem,
>> by someone with the necessary hardware to test it.
>
> The driver should ideally be removed and we should use bcm7038_wdt.c
> moving forward. Rafal, is this something you can try on 4908?
I wasn't sure if I should proceed with bcm63xx_wdt.c or bcm7038_wdt.c so
I chose 63xx. Possibly a bad decision, I'm not sure.
I've already bcm63xx_wdt.c changes developed locally to support BCM4908.
I just need to add Documentation/dt-bindings/ part. I'll do that
tomorrow. Then you can let me know if that's acceptable or should I
refactor my changes.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
@ 2021-10-27 20:40 ` Rafał Miłecki
0 siblings, 0 replies; 12+ messages in thread
From: Rafał Miłecki @ 2021-10-27 20:40 UTC (permalink / raw)
To: Florian Fainelli, Guenter Roeck
Cc: Wim Van Sebroeck, bcm-kernel-feedback-list, linux-watchdog,
linux-arm-kernel, Rafał Miłecki
On 27.10.2021 19:39, Florian Fainelli wrote:
> On 10/27/21 10:31 AM, Guenter Roeck wrote:
>> On Wed, Oct 27, 2021 at 02:31:35PM +0200, Rafał Miłecki wrote:
>>> From: Rafał Miłecki <rafal@milecki.pl>
>>>
>>> This fixes:
>>> drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
>>> drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
>>>
>>> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
>>
>> [reluctantly]
>>
>> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
>>
>> ... because the driver should really be converted to use the watchdog subsystem,
>> by someone with the necessary hardware to test it.
>
> The driver should ideally be removed and we should use bcm7038_wdt.c
> moving forward. Rafal, is this something you can try on 4908?
I wasn't sure if I should proceed with bcm63xx_wdt.c or bcm7038_wdt.c so
I chose 63xx. Possibly a bad decision, I'm not sure.
I've already bcm63xx_wdt.c changes developed locally to support BCM4908.
I just need to add Documentation/dt-bindings/ part. I'll do that
tomorrow. Then you can let me know if that's acceptable or should I
refactor my changes.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
2021-10-27 20:40 ` Rafał Miłecki
@ 2021-10-27 22:13 ` Guenter Roeck
-1 siblings, 0 replies; 12+ messages in thread
From: Guenter Roeck @ 2021-10-27 22:13 UTC (permalink / raw)
To: Rafał Miłecki
Cc: Florian Fainelli, Wim Van Sebroeck, bcm-kernel-feedback-list,
linux-watchdog, linux-arm-kernel, Rafał Miłecki
On Wed, Oct 27, 2021 at 10:40:07PM +0200, Rafał Miłecki wrote:
> On 27.10.2021 19:39, Florian Fainelli wrote:
> > On 10/27/21 10:31 AM, Guenter Roeck wrote:
> > > On Wed, Oct 27, 2021 at 02:31:35PM +0200, Rafał Miłecki wrote:
> > > > From: Rafał Miłecki <rafal@milecki.pl>
> > > >
> > > > This fixes:
> > > > drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
> > > > drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
> > > >
> > > > Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
> > >
> > > [reluctantly]
> > >
> > > Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> > >
> > > ... because the driver should really be converted to use the watchdog subsystem,
> > > by someone with the necessary hardware to test it.
> >
> > The driver should ideally be removed and we should use bcm7038_wdt.c
> > moving forward. Rafal, is this something you can try on 4908?
>
> I wasn't sure if I should proceed with bcm63xx_wdt.c or bcm7038_wdt.c so
> I chose 63xx. Possibly a bad decision, I'm not sure.
>
> I've already bcm63xx_wdt.c changes developed locally to support BCM4908.
> I just need to add Documentation/dt-bindings/ part. I'll do that
> tomorrow. Then you can let me know if that's acceptable or should I
> refactor my changes.
I am not sure if that answers your question, but unless you rework the
bcm63xx driver to use the watchdog subsystem (which would make it almost
identical to the bcm7038 driver), I am not going to accept functional
changes to it.
Guenter
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning
@ 2021-10-27 22:13 ` Guenter Roeck
0 siblings, 0 replies; 12+ messages in thread
From: Guenter Roeck @ 2021-10-27 22:13 UTC (permalink / raw)
To: Rafał Miłecki
Cc: Florian Fainelli, Wim Van Sebroeck, bcm-kernel-feedback-list,
linux-watchdog, linux-arm-kernel, Rafał Miłecki
On Wed, Oct 27, 2021 at 10:40:07PM +0200, Rafał Miłecki wrote:
> On 27.10.2021 19:39, Florian Fainelli wrote:
> > On 10/27/21 10:31 AM, Guenter Roeck wrote:
> > > On Wed, Oct 27, 2021 at 02:31:35PM +0200, Rafał Miłecki wrote:
> > > > From: Rafał Miłecki <rafal@milecki.pl>
> > > >
> > > > This fixes:
> > > > drivers/watchdog/bcm63xx_wdt.c: In function 'bcm63xx_wdt_ioctl':
> > > > drivers/watchdog/bcm63xx_wdt.c:208:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
> > > >
> > > > Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
> > >
> > > [reluctantly]
> > >
> > > Reviewed-by: Guenter Roeck <linux@roeck-us.net>
> > >
> > > ... because the driver should really be converted to use the watchdog subsystem,
> > > by someone with the necessary hardware to test it.
> >
> > The driver should ideally be removed and we should use bcm7038_wdt.c
> > moving forward. Rafal, is this something you can try on 4908?
>
> I wasn't sure if I should proceed with bcm63xx_wdt.c or bcm7038_wdt.c so
> I chose 63xx. Possibly a bad decision, I'm not sure.
>
> I've already bcm63xx_wdt.c changes developed locally to support BCM4908.
> I just need to add Documentation/dt-bindings/ part. I'll do that
> tomorrow. Then you can let me know if that's acceptable or should I
> refactor my changes.
I am not sure if that answers your question, but unless you rework the
bcm63xx driver to use the watchdog subsystem (which would make it almost
identical to the bcm7038 driver), I am not going to accept functional
changes to it.
Guenter
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2021-10-27 22:14 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 12:31 [PATCH] watchdog: bcm63xx_wdt: fix fallthrough warning Rafał Miłecki
2021-10-27 12:31 ` Rafał Miłecki
2021-10-27 17:28 ` Florian Fainelli
2021-10-27 17:28 ` Florian Fainelli
2021-10-27 17:31 ` Guenter Roeck
2021-10-27 17:31 ` Guenter Roeck
2021-10-27 17:39 ` Florian Fainelli
2021-10-27 17:39 ` Florian Fainelli
2021-10-27 20:40 ` Rafał Miłecki
2021-10-27 20:40 ` Rafał Miłecki
2021-10-27 22:13 ` Guenter Roeck
2021-10-27 22:13 ` Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.