Skip to content

Commit c91a9cf

Browse files
Stanislaw GruszkaKalle Valo
authored andcommitted
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: e403fa3 ("rt2x00: add restart hw") Reported-and-tested-by: Jonathan Liu <[email protected]> Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 54ecb8f commit c91a9cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/ralink/rt2x00/rt2x00debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ static ssize_t rt2x00debug_write_restart_hw(struct file *file,
555555
{
556556
struct rt2x00debug_intf *intf = file->private_data;
557557
struct rt2x00_dev *rt2x00dev = intf->rt2x00dev;
558-
static unsigned long last_reset;
558+
static unsigned long last_reset = INITIAL_JIFFIES;
559559

560560
if (!rt2x00_has_cap_restart_hw(rt2x00dev))
561561
return -EOPNOTSUPP;

0 commit comments

Comments
 (0)