X86 platform drivers
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	"platform-driver-x86@vger.kernel.org"
	<platform-driver-x86@vger.kernel.org>
Subject: Re: [PATCH RESEND] x86,mrst: Intel Medfield over-current detection patch
Date: Tue, 8 Feb 2011 08:21:32 -0800	[thread overview]
Message-ID: <20110208162132.GB13717@ericsson.com> (raw)
In-Reply-To: <20110208155629.GA14523@srcf.ucam.org>

On Tue, Feb 08, 2011 at 10:56:29AM -0500, Matthew Garrett wrote:
> On Tue, Feb 08, 2011 at 07:49:16AM -0800, Guenter Roeck wrote:
> 
> > Seems to me there is some hair splitting going on here. Core element of
> > hwmon drivers is that there are reported temperatures, voltages, current,
> > power, humidity, etc. I don't see any of those here. All I see is various
> > current limits. Those are secondary attributes from hwmon perspective.
> > So I don't really see how this can be made a hwmon driver.
> 
> Ok, if the hardware has no mechanism for reporting the instantaneous 
> draw then I can see it not working well in an hwmon sense. But I'd 
> really prefer to see this look far more generic than it does - surely 
> other hardware has similar functionality?
> 
Might well be. Just like thermal subsystem drivers act on thermal information
and registers thermal drivers with the hwmon subsystem for reporting purposes,
it might well be that there could at some point be a "current" subsystem
doing something similar for currents. But that doesn't mean that it would make
sense to provide such functionality from within the hwmon subsystem.

I have no idea if your other question can be answered right now. Maybe a more generic
interface is possible, but one would need to see multiple implementations to determine
what can be generalized. I personally don't believe that it is possible to define
a useful generic interface without knowledge of multiple pieces of HW using that
interface.

If someone volunteers to create a generic API, ABI, and possibly a new subsystem
for current management, that person can go ahead and present that subsystem
to the community for consideration. I am all for it. But it would not be appropriate
to hold this driver hostage to the non-existence of such a subsystem.

Thanks,
Guenter

      parent reply	other threads:[~2011-02-08 16:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-25 14:35 [PATCH RESEND] x86,mrst: Intel Medfield over-current detection patch Alan Cox
2011-02-07 19:58 ` Matthew Garrett
2011-02-08 10:45   ` Alan Cox
2011-02-08 13:52     ` Matthew Garrett
2011-02-08 14:08       ` Alan Cox
2011-02-08 15:49         ` Guenter Roeck
2011-02-08 15:56           ` Matthew Garrett
2011-02-08 16:09             ` Alan Cox
2011-02-08 16:19               ` Matthew Garrett
2011-02-08 16:21             ` Guenter Roeck [this message]

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=20110208162132.GB13717@ericsson.com \
    --to=guenter.roeck@ericsson.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=mjg59@srcf.ucam.org \
    --cc=platform-driver-x86@vger.kernel.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