aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_compile_commands.py
diff options
context:
space:
mode:
authorMartin Fuzzey <[email protected]>2020-09-30 10:36:46 +0200
committerGreg Kroah-Hartman <[email protected]>2020-10-02 15:53:25 +0200
commitc9723750a699c3bd465493ac2be8992b72ccb105 (patch)
tree3eb9e2e316b144a055b0633e252baae89a0f3013 /scripts/gen_compile_commands.py
parente84d3896fb8d1ad1d6f39866e5f416b84304bd13 (diff)
w1: mxc_w1: Fix timeout resolution problem leading to bus error
On my platform (i.MX53) bus access sometimes fails with w1_search: max_slave_count 64 reached, will continue next search. The reason is the use of jiffies to implement a 200us timeout in mxc_w1_ds2_touch_bit(). On some platforms the jiffies timer resolution is insufficient for this. Fix by replacing jiffies by ktime_get(). For consistency apply the same change to the other use of jiffies in mxc_w1_ds2_reset_bus(). Fixes: f80b2581a706 ("w1: mxc_w1: Optimize mxc_w1_ds2_touch_bit()") Cc: stable <[email protected]> Signed-off-by: Martin Fuzzey <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions