Re: [PATCH 1/2] Include TPS6235x based Power regulator support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 20, 2009 at 11:06:00AM -0800, David Brownell wrote:
> On Tuesday 13 January 2009, David Brownell wrote:

> > +       /* adjust to match supported range, fail if out of range */
> > +       if (min_uV < info->min_uV)
> > +               min_uV = info->min_uV;
> > +       if (max_uV > info->max_uV)
> > +               max_uV = info->min_uV;

> On second thought, those particular checks would be better
> handled by updating the board-level constraints in probe().

If doing this you should complain loudy - it may be better to just
refuse to run rather than fixing them up in case something else is
noticably wrong with them and they might be risky.

> That will let this driver not worry about the chip's hard
> limits in set_voltage(), and will ensure that the constraints
> listed in sysfs are accurate ... in the sense of not lying
> about what the actual system capabilities are.

Indeed - if the constraints are accurate there should be no need to
validate them at all.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux