aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorSergey Shtylyov <[email protected]>2021-03-25 23:50:24 +0300
committerJens Axboe <[email protected]>2021-03-26 17:13:02 -0600
commitc7e8f404d56b99c80990b19a402c3f640d74be05 (patch)
tree98786cc71912c7dff969d39b76e5e402ae89c0f9 /tools/perf/scripts/python/stat-cpi.py
parent2b0a9946bf9e182b77d500ac182f73d5078c7ef1 (diff)
pata_arasan_cf: fix IRQ check
The driver's probe() method is written as if platform_get_irq() returns 0 on error, while actually it returns a negative error code (with all the other values considered valid IRQs). Rewrite the driver's IRQ checking code to pass the positive IRQ #s to ata_host_activate(), propagate upstream -EPROBE_DEFER, and set up the driver to polling mode on (negative) errors and IRQ0 (libata treats IRQ #0 as a polling mode anyway)... Fixes: a480167b23ef ("pata_arasan_cf: Adding support for arasan compact flash host controller") Signed-off-by: Sergey Shtylyov <[email protected]> Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions