EP-9NDA3+ w/ Winbond W83627THF LPC

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

 



Hi Mark,

> > I have come up with a very simplified patch that would do that. Not
> > exactly elegant but it keeps the changes to a minimum. The one I
> > worked on while we were on IRC was really too complex and had
> > drawbacks too.
> 
> It looks OK to me; not sure what you don't like about it.

Global variable sucks. The way I supported the secondary Super-I/O
address to the pc87360 driver looks far better to me, but unfortunately
it doesn't work for the w83627hf driver because it accesses the
Super-I/O space outside of the "find" function.

> > +	dev_info(&client->dev, "Reading VID from GPIO5\n");
> 
> I think this should be dev_dbg().

Why? I think it's useful for the regular user to know that we are
reading the VID value from GPIO pins (which by definition could be used
for something different). It would also help us track problems if people
report about bad cpu0_vid value with that driver. If you can come up
with a better message, let me know.

Maybe it would be even better to *not* create any cpu0_vid file when the
GPIO pins are not possibly used for that, instead of returning the
default value (all bits set) which in turn will result in a 0V value.
This would require more changes (including in the sensors program), and
I don't think I'll go into that until I get a supported chip myself.

Thanks,
-- 
Jean Delvare
http://khali.linux-fr.org/



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux