All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Intel Moorestown Platform Thermal Driver
Date: Sun, 12 Jul 2009 08:43:18 +0000	[thread overview]
Message-ID: <4A59A226.3070401@hhs.nl> (raw)
In-Reply-To: <20090706212531.GA15120@intel.com>

On 07/07/2009 04:59 PM, Trisal, Kalhan wrote:
> I have renamed the driver with emc1403 driver as the driver is generic enough to be used for emc1403 chip. The interrupt part is kept inside the flag so that code gets enabled only when Power management in the Moorestown platform is enabled.
>

Hi,

Yes, but currently this is a #ifdef, besides the #ifdef there also should be a runtime check
to only switch to interrupt based operation when actually running on a Moorestown platform,
iow we want the *same* kernel to be able to run on both an emc1403 on some generic machine
(so in polling mode only) and on a Moorestown platform (and use the interrupt stuff there).

Regards,

Hans


> -----Original Message-----
> From: Henrique de Moraes Holschuh [mailto:hmh@debian.org]
> Sent: Tuesday, July 07, 2009 8:20 PM
> To: Trisal, Kalhan
> Cc: khali@linux-fr.org; lm-sensors@lm-sensors.org
> Subject: Re: [lm-sensors] Intel Moorestown Platform Thermal Driver
>
> On Tue, 07 Jul 2009, Trisal, Kalhan wrote:
>> Hi Henrique
>>     I thought about that but then the interrupt logic is very much specific to Moorestown platform. I am comfortable in renaming the driver to emc1403.
>
> Can it be made to work with DMI matches so that it enables the interrupt
> logic on moorestown, and uses a generic approach otherwise?
>
> Either that, or split it in two files, one with the moorestown specific
> stuff, the other with the generic chip driver?
>
> Anyway, if it is too difficult to do that or it doesn't make much sense
> because nobody else uses the emc1403, the fact that it has
> moorestown-specific stuff in it does excuse the name... but in that case,
> I'd call it moorestown_hwmon or something, to avoid clashes.
>


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

      parent reply	other threads:[~2009-07-12  8:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-06 10:49 [lm-sensors] Intel Moorestown Platform Thermal Driver Kalhan Trisal
2009-07-06 16:04 ` Henrique de Moraes Holschuh
2009-07-07  4:46 ` Trisal, Kalhan
2009-07-07 14:49 ` Henrique de Moraes Holschuh
2009-07-07 15:11 ` Trisal, Kalhan
2009-07-12  8:43 ` Hans de Goede [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=4A59A226.3070401@hhs.nl \
    --to=j.w.r.degoede@hhs.nl \
    --cc=lm-sensors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.