Skip to content
Commit a3597d6c authored by Thierry Reding's avatar Thierry Reding
Browse files

pwm: imx27: Cache duty cycle register value



The hardware register containing the duty cycle value cannot be accessed
when the PWM is disabled. This causes the ->get_state() callback to read
back a duty cycle value of 0, which can confuse consumer drivers.

Tested-by: default avatarMichal Vokáč <michal.vokac@ysoft.com>
Tested-by: default avatarAdam Ford <aford173@gmail.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 1db37f95
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment