All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] hwmon: (lm90) Fix driver to work on standard PCs with CONFIG_REGULATOR enab
Date: Mon, 27 Jan 2014 14:39:39 +0000	[thread overview]
Message-ID: <52E66FAB.5000203@roeck-us.net> (raw)
In-Reply-To: <1390777731-10277-1-git-send-email-linux@roeck-us.net>

On 01/27/2014 12:14 AM, Jean Delvare wrote:
> On Sun, 26 Jan 2014 20:21:00 -0800, Guenter Roeck wrote:
>> On 01/26/2014 03:08 PM, Guenter Roeck wrote:
>>> On Ubuntu systems with CONFIG_REGULATOR enabled, the lm90 driver fails to load
>>> with an error mesage such as
>>>
>>> i2c 1-0018: Driver lm90 requests probe deferral
>>>
>>> This is a result of commit 3e0f964f2ad (hwmon: (lm90) Add power control)
>>> which adds mandatory regulator support to the lm90 driver. On non-dt systems
>>> with CONFIG_REGULATOR enabled, this fails if regulators are not fully
>>> specified. This is the case on a standard PC system.
>>>
>> Mark appears to object to that idea, so maybe we should just just revert
>> 3e0f964f2ad until a more acceptable solution is found.
>
> Well, I object as well, so I'm happy to not apply it. I hate seeing
> IS_ENABLED() creep into driver code. Any issue like that should be
> handled as a Kconfig dependency or with a better API.
>



Going back to the original problem, lm90 no longer works in any non-DT
system which has CONFIG_REGULATORS enabled, such as any Ubuntu distribution.

I agree that it would have been better if the regulator subsystem would deal
with the issue, but that seems unlikely to happen. If anything, it will get
worse with the assumption that regulators are fully declared in any ACPI
based system (such a system for sure won't know about an USB-I2C adapter
with an LM90 connected to it). So what do you want to do ?

Guenter


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

  parent reply	other threads:[~2014-01-27 14:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-26 23:08 [lm-sensors] [PATCH] hwmon: (lm90) Fix driver to work on standard PCs with CONFIG_REGULATOR enabled Guenter Roeck
2014-01-27  4:21 ` [lm-sensors] [PATCH] hwmon: (lm90) Fix driver to work on standard PCs with CONFIG_REGULATOR enab Guenter Roeck
2014-01-27  8:14 ` Jean Delvare
2014-01-27 14:39 ` Guenter Roeck [this message]
2014-01-27 15:08 ` Mark Brown

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=52E66FAB.5000203@roeck-us.net \
    --to=linux@roeck-us.net \
    --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.