devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Arnaud Ebalard <arno@natisbad.org>
Cc: Simon Guinot <simon.guinot@sequanux.org>,
	Andrew Lunn <andrew@lunn.ch>,
	Russell King - ARM Linux <linux@arm.linux.org.uk>,
	Jason Cooper <jason@lakedaemon.net>,
	linux-doc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org,
	Olivier Mouchet <olivier.mouchet@gmail.com>,
	Rob Herring <rob.herring@calxeda.com>,
	lm-sensors@lm-sensors.org,
	Grant Likely <grant.likely@secretlab.ca>,
	Rob Landley <rob@landley.net>, Jean Delvare <khali@linux-fr.org>,
	Linux ARM Kernel Mailing List
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCHv2 1/3] Add support for GMT G762/G763 PWM fan controller
Date: Sun, 2 Jun 2013 13:35:53 -0700	[thread overview]
Message-ID: <20130602203553.GA7920@roeck-us.net> (raw)
In-Reply-To: <87ip1w8qix.fsf@natisbad.org>

On Sun, Jun 02, 2013 at 05:45:58PM +0200, Arnaud Ebalard wrote:
> Hi,
> 
> >> I haven't noticed this issue while testing your v1 patch series because
> >> at the time I was using a board with an U-Boot modified by LaCie. This
> >> last sets the set_cnt register to 0 while U-Boot mainline don't.
> >> Actually, the 2Big fan is not configured nor even started by U-Boot
> >> mainline. I have to fix this but maybe that something can be done in
> >> the g762 Linux driver too ?
> 
> At the moment, DT bindings and platform_data structure both allow
> setting an initial fan_target value. I could add a 'pwm' binding for DT  
> and an assoicated field in platform_data to allow passing an initial
> value so that maintainers of platforms with a 2 wire fan (open loop) can
> still make the fan somewhat rotate at boot.
> 
Devicetree properties are supposed to describe the system, not its configuration.
There are exceptions, but I don't recall seeing a case where a parameter
can be set both with devicetree properties and sysfs attributes.

Before going further on this, we will need to have an ack from devicetree
maintainers which specifically permits your dual-configuration approach.
Even with that, you'll still have convince me that you need both (while
so far no other driver needed it).

Thanks,
Guenter

  reply	other threads:[~2013-06-02 20:35 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-27 22:02 [PATCHv2 0/3] Add G762/G763 PWM fan controller Arnaud Ebalard
2013-05-27 22:03 ` [PATCHv2 1/3] Add support for GMT " Arnaud Ebalard
2013-05-31 22:16   ` Simon Guinot
2013-06-01 17:26     ` Arnaud Ebalard
2013-06-02 15:45       ` Arnaud Ebalard
2013-06-02 20:35         ` Guenter Roeck [this message]
2013-06-02 21:36           ` Arnaud Ebalard
2013-06-02 21:59       ` Simon Guinot
2013-06-04  6:52         ` Arnaud Ebalard
2013-06-04 21:23           ` Simon Guinot
2013-06-11 15:15             ` Guenter Roeck
2013-06-15 16:13             ` Arnaud Ebalard
2013-06-04  6:51       ` Arnaud Ebalard
2013-06-01 14:33   ` Guenter Roeck
2013-06-02 15:39     ` Arnaud Ebalard
2013-05-27 22:03 ` [PATCHv2 2/3] Add documentation for g762 driver Arnaud Ebalard
2013-05-27 22:03 ` [PATCHv2 3/3] Add DT bindings " Arnaud Ebalard
2013-05-27 22:15 ` [PATCHv2 0/3] Add G762/G763 PWM fan controller Arnd Bergmann
2013-05-28 10:15   ` Arnaud Ebalard
2013-05-28 11:19     ` Thierry Reding
2013-05-28 12:29       ` Guenter Roeck
2013-05-28 13:47         ` Thierry Reding
2013-05-28 15:42           ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130602203553.GA7920@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=andrew@lunn.ch \
    --cc=arno@natisbad.org \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=jason@lakedaemon.net \
    --cc=khali@linux-fr.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=lm-sensors@lm-sensors.org \
    --cc=olivier.mouchet@gmail.com \
    --cc=rob.herring@calxeda.com \
    --cc=rob@landley.net \
    --cc=simon.guinot@sequanux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).