On Mon, May 14, 2018 at 06:11:59AM +0900, Yoshihiro Kaneko wrote: > Hi Simon-san, > > 2018年5月10日(木) 3:11 Simon Horman <horms@xxxxxxxxxxxx>: > > > On Tue, Apr 03, 2018 at 09:43:03PM +0900, Yoshihiro Kaneko wrote: > > > Add support for R-Car D3 (r8a77995) thermal sensor. > > > > > > Signed-off-by: Yoshihiro Kaneko <ykaneko0929@xxxxxxxxx> > > > --- > > > drivers/thermal/rcar_thermal.c | 154 > > ++++++++++++++++++++++++++++++++--------- > > > 1 file changed, 122 insertions(+), 32 deletions(-) > > > > > > diff --git a/drivers/thermal/rcar_thermal.c > > b/drivers/thermal/rcar_thermal.c > > > index 73e5fee..5ec47a9 100644 > > > --- a/drivers/thermal/rcar_thermal.c > > > +++ b/drivers/thermal/rcar_thermal.c > > > @@ -58,10 +58,43 @@ struct rcar_thermal_common { > > > spinlock_t lock; > > > }; > > > > > > +struct rcar_thermal_chip { > > > + unsigned int use_of_thermal : 1; > > > + unsigned int has_filonoff : 1; > > > + unsigned int irq_per_ch : 1; > > > + unsigned int needs_suspend_resume : 1; > > > + unsigned int nirqs; > > > +}; > > > + > > > +static const struct rcar_thermal_chip rcar_thermal = { > > > + .use_of_thermal = 0, > > > + .has_filonoff = 1, > > > + .irq_per_ch = 0, > > > + .needs_suspend_resume = 0, > > > + .nirqs = 1, > > > +}; > > > + > > > +static const struct rcar_thermal_chip rcar_gen2_thermal = { > > > + .use_of_thermal = 1, > > > + .has_filonoff = 1, > > > + .irq_per_ch = 0, > > > + .needs_suspend_resume = 0, > > > + .nirqs = 1, > > > +}; > > > + > > > +static const struct rcar_thermal_chip rcar_gen3_thermal = { > > > + .use_of_thermal = 1, > > > + .has_filonoff = 0, > > > + .irq_per_ch = 1, > > > + .needs_suspend_resume = 1, > > > + .nirqs = 2, > > > +}; > > > > The binding and dts patches in this series describe 3 interrupts > > for R-Car D3. But the above specifies two. Am I missing something obvious? > > > R-Car D3 has 3 interrupts, but this driver uses only 2 interrupts to detect > a temperature change, rise or fall. Thanks, that makes perfect sense. Perhaps a comment above ".nirqs = 2" would make it more obvious to the casual observer? -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html