thermal: rcar_gen3_thermal: fix interrupt type
authorJiada Wang <jiada_wang@mentor.com>
Wed, 24 Apr 2019 05:11:44 +0000 (14:11 +0900)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 14 May 2019 14:00:31 +0000 (07:00 -0700)
commit2c0928c9e004589dc9e7672c40a38d6c4ca12701
tree3538d4ed80196012220b003f0eea8c184fa4fb87
parentb4ab114cc6a1bbf8ca1d9a2339f2b5b43374029b
thermal: rcar_gen3_thermal: fix interrupt type

Currently IRQF_SHARED type interrupt line is allocated, but it
is not appropriate, as the interrupt line isn't shared between
different devices, instead IRQF_ONESHOT is the proper type.

By changing interrupt type to IRQF_ONESHOT, now irq handler is
no longer needed, as clear of interrupt status can be done in
threaded interrupt context.

Because IRQF_ONESHOT type interrupt line is kept disabled until
the threaded handler has been run, so there is no need to protect
read/write of REG_GEN3_IRQSTR with lock.

Fixes: 7d4b269776ec6 ("enable hardware interrupts for trip points")
Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Tested-by: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rcar_gen3_thermal.c