<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Shawn,<div class=""><br class=""></div><div class="">I was mainly surprised because a conversation I had with Guenter, if I remember correctly, suggested that /dev/i2c calls from user space work with hwmon, because hwmon does not lock the i2c except when using it.</div><div class=""><br class=""></div><div class="">So I assumed that in this case, it was the polling of hwmon that was just keeping it locked enough to conflict with phosphor-regulators and then it gives up.</div><div class=""><br class=""></div><div class="">I could just not use hwmon at all use phosphor-regulators for all telemetry, but this seemed like more work.</div><div class=""><br class=""></div><div class="">Also, I will need to figure out how to connect phosphor-regulators telemetry to Redfish and the WebUI. Are there examples of how to do that?</div><div class=""><br class=""></div><div class="">Mike<br class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 11, 2022, at 8:32 AM, Shawn McCarney <<a href="mailto:shawnmm@linux.ibm.com" class="">shawnmm@linux.ibm.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
<div class="">
On 2/9/2022 4:30 PM, Mike Jones wrote:<br class="">
<blockquote type="cite" cite="mid:6D1561E1-59FC-4126-9271-A7C8BFDB0B11@gmail.com" class="">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" class="">
The journal shows an I2C error: Device or resource busy.
<div class=""><br class="">
</div>
<div class="">Does hwmon lock out phosphor-regulators if it uses the same
address?<br class="">
<br class="">
</div>
</blockquote><p class="">phosphor-regulators currently communicates directly with voltage
regulators using i2c-dev; it does not use device drivers.</p><p class="">The reason is that most regulator drivers provide either no or
very limited ability to configure regulators. For the systems I
work on, we need to do extensive regulator configuration to fine
tune things (output voltage, pgood min/max, timing, etc.)
Redundant phase fault detection is also pretty device-specific and
on involves communicating with multiple devices.<br class="">
</p><p class="">I have not tested using phosphor-regulators when a driver is
bound to the regulator, but I suspect you may be right. I assume
hwmon is using read sensor data from a driver, and the driver
being bound is stopping the phosphor-regulators read from
succeeding.<br class="">
<br class="">
Thanks,</p><p class="">Shawn<br class="">
</p>
</div>
</div></blockquote></div><br class=""></div></div></body></html>