Devicetree
 help / color / mirror / Atom feed
* [PATCH v6 0/4] pmbus: Expand fan support and add MAX31785 driver
@ 2017-11-20  4:42 Andrew Jeffery
  2017-11-20  4:42 ` [PATCH v6 1/4] pmbus (core): Add fan control support Andrew Jeffery
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Andrew Jeffery @ 2017-11-20  4:42 UTC (permalink / raw)
  To: linux-hwmon
  Cc: Andrew Jeffery, linux, jdelvare, corbet, devicetree, linux-kernel,
	linux-doc, joel, openbmc

Hello,

This series introduces support for the MAX31785 intelligent fan controller, a
PMBus device providing closed-loop fan control among a number of other
features. Along the way the series adds support to control fans and create
virtual pages to the PMBus core, the latter to support some of the more
annoying design decisions found in the 'A' variant of the chip.

This is the sixth spin of the series. v5 can be found here:

    https://lkml.org/lkml/2017/11/17/910

v6 fixes an error-handling bug I introduced in pmbus_set_page() with PATCH 3/4,
as pointed out by Guenter on v5[1]. The rework implements his suggested
solution.

A few other other minor fixes are included:

* PATCH 1/4:
  * Avoid potential NULL dereference in pmbus_get_fan_rate(). It
    amounts to being an error path that should never happen in practice, but
    lets make sure we don't die if we do hit it.
  * Drop a redundant test for the presence of FAN_COMMAND_x in
    pmbus_add_fan_ctrl(); document that its presence is a precondition to
    calling it (this was already tested at the one call-site).

* PATCH 2/4: Avoid scaling an error code in pmbus_pwm_enable(). Rather, test
  the result of pmbus_get_fan_rate_cached() before performing the scaling when
  switching to PWM mode.

[1] https://lkml.org/lkml/2017/11/19/280

Please review!

Andrew

Andrew Jeffery (4):
  pmbus (core): Add fan control support
  pmbus (max31785): Add fan control
  pmbus (core): Add virtual page config bit
  pmbus (max31785): Add dual tachometer support

 Documentation/hwmon/max31785     |  15 +-
 drivers/hwmon/pmbus/max31785.c   | 285 +++++++++++++++++++++++++++++++-
 drivers/hwmon/pmbus/pmbus.h      |  41 ++++-
 drivers/hwmon/pmbus/pmbus_core.c | 265 +++++++++++++++++++++++++++---
 4 files changed, 575 insertions(+), 31 deletions(-)

base-commit: ded0eb83449e8fcba22fd2736826336e101ffbcb
-- 
git-series 0.9.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-11-29 21:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-20  4:42 [PATCH v6 0/4] pmbus: Expand fan support and add MAX31785 driver Andrew Jeffery
2017-11-20  4:42 ` [PATCH v6 1/4] pmbus (core): Add fan control support Andrew Jeffery
2017-11-29 21:10   ` [v6,1/4] " Guenter Roeck
2017-11-20  4:42 ` [PATCH v6 2/4] pmbus (max31785): Add fan control Andrew Jeffery
2017-11-29 21:13   ` [v6,2/4] " Guenter Roeck
     [not found] ` <cover.dfb0a63462b38b9384b1d077fd62d17a11a7a0dd.1511152748.git-series.andrew-zrmu5oMJ5Fs@public.gmane.org>
2017-11-20  4:42   ` [PATCH v6 3/4] pmbus (core): Add virtual page config bit Andrew Jeffery
2017-11-29 21:15     ` [v6,3/4] " Guenter Roeck
2017-11-20  4:42 ` [PATCH v6 4/4] pmbus (max31785): Add dual tachometer support Andrew Jeffery
2017-11-29 21:17   ` [v6,4/4] " Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox