lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20141106234812.GB8176@developer>
Date:	Thu, 6 Nov 2014 19:48:15 -0400
From:	Eduardo Valentin <edubezval@...il.com>
To:	"Ivan T. Ivanov" <iivanov@...sol.com>
Cc:	Rob Herring <robh+dt@...nel.org>, Pawel Moll <pawel.moll@....com>,
	Mark Rutland <mark.rutland@....com>,
	Ian Campbell <ijc+devicetree@...lion.org.uk>,
	Kumar Gala <galak@...eaurora.org>,
	Grant Likely <grant.likely@...aro.org>,
	Zhang Rui <rui.zhang@...el.com>, linux-pm@...r.kernel.org,
	devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
	linux-arm-msm@...r.kernel.org,
	David Collins <collinsd@...eaurora.org>
Subject: Re: [PATCH v3] thermal: Add QPNP PMIC temperature alarm driver

On Thu, Oct 30, 2014 at 03:55:45PM +0200, Ivan T. Ivanov wrote:
> 
> On Wed, 2014-10-29 at 17:32 +0200, Ivan T. Ivanov wrote:
> > 
> +
> > > > +       chip->tz_dev = thermal_zone_device_register(node->name, TRIP_NUM, 0,
> > > > +       chip, &qpnp_tz_ops, NULL,
> > > 
> > > Have you considered using of-thermal instead of doing your own specific thermal
> > > zone registration? Having a glance look in this driver, most of the
> > > operation are covered by of-thermal. Ahy concerns using of-thermal in
> > > your case?
> > > 
> > 
> > I just followed implementation found in "armada_thermal", "db8500-thermal",
> > "dove_thermal", "imx_thermal", "kirkwood_thermal"...
> > 
> > Will look at of-thermal.
> > 
> 
> Hm, the 15 drivers, which register its own thermal zone, against 4, which 

Yes, and the reasoning is pretty simple: of-thermal is not imposed
standard, and not all platform have decided to move to using it.
However, DT is being used more and more frequently. So, given you
already have DT support, considering using of-thermal is a good thing to do. 

Besides, you are with hands on your driver, might make sense to add its
support while you are there. 

> use of-thermal registration and one of them is OMAP, which have fallback
> to its own zone registration :-). Anyway. I am afraid that if I use just

The fallback is because non-dt booting has not been dropped from OMAP,
AFAIK.

> thermal_zone_of_sensor_register(), driver will lost ability to switch off 
> hardware controlled shutdown sequence, which make it useless IMHO.

Any special sequence or callback you want to consider to improve
of-thermal support?


For instance, getting a callback for mode change events would enable you
to get a better support for hardware controlled shutdown sequence?


> 
> I don't see how driver can benefits from nice things provided by of-thermal.
> There is no colling device associated with PMIC chip, pooling delays are of
> no use, device uses interrupt, trip pints are predefined in hardware...

I see. However, using it may make this driver even simpler, as you would
simply describe it in DT and the notification you want would be taken
care by the core part of the framework.

> 
> Please advice.
> 
> Regards,
> Ivan

Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ