Skip to content

Commit

Permalink
fix: hwmon: axi_fan_control: Set tacho parameters
Browse files Browse the repository at this point in the history
The driver was writting on the wrong register to set the tacho
parameters. For the core to start monitoring the signal, the driver has
to set the TACH_TOLERANCE register. This has to be done after writting
on TACH_PERIOD.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
(cherry picked from commit 0e51d44)
  • Loading branch information
nunojsa authored and commodo committed Oct 18, 2019
1 parent 918ef51 commit e70fc25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/axi_fan_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ static irqreturn_t axi_fan_control_irq_handler(int irq, void *data)
axi_fan_control_iowrite(new_tach,
ADI_REG_TACH_PERIOD, ctl);
axi_fan_control_iowrite(tach_tol,
ADI_REG_TACH_MEASUR, ctl);
ADI_REG_TACH_TOLERANCE, ctl);
ctl->update_tacho_params = false;
}

Expand Down

0 comments on commit e70fc25

Please sign in to comment.