rt2x00: initialize last_reset
PATCH 1/1 rt2x00: initialize last_reset
Initialize last_reset variable to INITIAL_JIFFIES, otherwise it is not possible to test H/W reset for first 5 minutes of system run.
Fixes e403fa31ed71 ("rt2x00: add restart hw")
Reported-and-tested-by Jonathan Liu <[email protected]>
Signed-off-by Stanislaw Gruszka <[email protected]>
--- drivers/net/wireless/ralink/rt2x00/rt2x00debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ralink/rt2x00/rt2x00debug.c +1 -1
@@ -555,7 +555,7 @@ static ssize_t rt2x00debug_write_restart_hw(struct file *file, {struct rt2x00debug_intf *intf = file->private_data;struct rt2x00_dev *rt2x00dev = intf->rt2x00dev; -static unsigned long last_reset; +static unsigned long last_reset =INITIAL_JIFFIES ;if (!rt2x00_has_cap_restart_hw (rt2x00dev))return -EOPNOTSUPP ;
Signature · 1 line
2.20.1
Quoted 6 lines · Stanislaw Gruszka
Initialize
last_resetvariable toINITIAL_JIFFIES, otherwise it is not possible to test H/W reset for first 5 minutes of system run.Fixes e403fa31ed71 ("rt2x00: add restart hw")Reported-and-tested-by Jonathan Liu <[email protected]>Signed-off-by Stanislaw Gruszka <[email protected]>
I'll queue this to v5.4.
Signature · 3 lines
https://patchwork.kernel.org/patch/11161981/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 6 lines · Stanislaw Gruszka
Initialize
last_resetvariable toINITIAL_JIFFIES, otherwise it is not possible to test H/W reset for first 5 minutes of system run.Fixes e403fa31ed71 ("rt2x00: add restart hw")Reported-and-tested-by Jonathan Liu <[email protected]>Signed-off-by Stanislaw Gruszka <[email protected]>
Patch applied to wireless-drivers.git, thanks.
c91a9cfe9f6d rt2x00: initialize last_reset
Signature · 3 lines
https://patchwork.kernel.org/patch/11161981/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches