Re: [PATCH] hwmon: (nct6775) Add support for 18 IN readings for nct6799

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

 



On 15/07/2023 17:48, Guenter Roeck wrote:
On 7/15/23 08:31, Ahmad Khalifa wrote:
nct6799 supports 18 voltage readings where this driver stops at 16.
You are adding three sets of registers, though, not just two. I think
you meant to say that the driver stops at 15.

Yes, currently 15 IN defined. It was influenced by the ALARM bits
comment. I'll change it.

+/* NCT6799 layout of alarm bits is indexed by the REG_VIN
+ * order, which is
+ *      CPUVC,  VIN1,  AVSB,  3VCC,  VIN0,  VIN8,  VIN4, 3VSB
+ *       VBAT,   VTT,  VIN5,  VIN6,  VIN2,  VIN3,  VIN7, VIN9
+ * no space for 16-17: VHIF, VIN10 (bits 31, -1)

Why not use bit 31 ?

Well, this is the part that made me say "driver supports up to 16".
The ALARM bits have FAN_BASE starting at index 16, so the IN alarms
can only take up 0-15, unless all alarm bits have extra padding
added to push FAN_BASE/TEMP_BASE/INTRUSION_BASE up.

I took the easy option here and left out the 16 IN alarm.

Did I count this wrong?
nct6775_fan_is_visible()
	`data->ALARM_BITS[FAN_ALARM_BASE + fan]`


--
Regards,
Ahmad Khalifa



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux