mfd: intel_soc_pmic_bxtwc: Remove thermal second level IRQs
authorKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Mon, 5 Jun 2017 19:08:02 +0000 (12:08 -0700)
committerLee Jones <lee.jones@linaro.org>
Mon, 19 Jun 2017 14:44:29 +0000 (15:44 +0100)
commitc4949630fe437bc15346abbd1a92dee8e80a85d4
tree6460830ad2f82fa91074e45b7eb52e4e40f4b592
parent4533d8551b7dc594f5d203c1dc6c1527a21ad61d
mfd: intel_soc_pmic_bxtwc: Remove thermal second level IRQs

Since all second level thermal IRQs are consumed by the same
device(bxt_wcove_thermal), there is no need to expose them as separate
interrupts. We can just export only the first level IRQs for thermal and
let the device(bxt_wcove_thermal) driver handle the second level IRQs
based on thermal interrupt status register. Also, just using only the
first level IRQ will eliminate the bug involved in requesting only the
second level IRQ and not explicitly enable the first level IRQ. For
more info on this issue please read the details at,

https://lkml.org/lkml/2017/2/27/148

This patch also makes relevant change in bxt_wcove_thermal driver to use
only first level PMIC thermal IRQ.

Signed-off-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/intel_soc_pmic_bxtwc.c
drivers/thermal/intel_bxt_pmic_thermal.c