LM63: Add controls for configuring device
Hi Trent:
Sorry to step in to this thread so late.
Quoted 13 lines · Trent Piepho
Quoted 3 lines · Jean Delvare
Quoted 1 line
If the default LM63 polarity is wrong, how is it supposed to be changed?
I'd say firmware, platform code, or i2cset, in this order of
What firmware?
Platform code, that's a lot harder to change than user space. You have to recompile and re-flash to do anything. It's also hardest to port across kernel versions.
i2cset, way too manual.
Quoted 8 lines
Quoted 2 lines
preference. Relying on user-space to configure a hardware monitoring chip is somewhat dangerous, user-space might as well never come up.
The kernel might not come up either. Generally if the kernel boots up to the point where i2c is around, userspace is will be ok. Setup from userspace adds very little risk, especially in production use, over setup in the kernel. Of course it would a lot better if the chip let you strap these options when it came out of reset.
I agree completely with Jean, sorry. If you have no firmware, and refuse to put these one-time config options in platform data... that's your choice.
If you insist on doing this in userspace, then any combination of i2c-dev + i2cset or py-smbus or tiny C program writing to i2c-dev ioctl is your answer.
That said, there were some parts of your original patch that do make sense to expose through the driver, as Jean pointed out. I encourage you to respin the patch with just those parts.
Thanks & regards,
Signature · 8 lines
Mark M. Hoffman [email protected] _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 2 lines · Mark M. Hoffman
I agree completely with Jean, sorry. If you have no firmware, and refuse to put these one-time config options in platform data... that's your choice.
I've changed these one time options a lot more than once. You don't seem to realize that most of the options are not something that's fixed into the hardware. Their desired value changes based on what fan is attached, how the hardware is configured, and what features the user wants.
Quoted 3 lines
That said, there were some parts of your original patch that do make sense to expose through the driver, as Jean pointed out. I encourage you to respin the patch with just those parts.
Then instead of maintaining a patch adding new code, I get to maintain a patch to existing code. Every time some slave to checkpatch decides a space just has to be added somewhere I'll get a merge conflict.
I'm much better off not adding anything at all and I've come to regret ever posting the patch in the first place.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi:
Quoted 6 lines · Trent Piepho
Quoted 2 lines · Mark M. Hoffman
I agree completely with Jean, sorry. If you have no firmware, and refuse to put these one-time config options in platform data... that's your choice.
I've changed these one time options a lot more than once. You don't seem to realize that most of the options are not something that's fixed into the
^^^^
Quoted 2 lines
hardware. Their desired value changes based on what fan is attached, how the hardware is configured, and what features the user wants.
I was referring to those which *are* fixed into the hardware. I'm sorry if my wording was unclear.
Quoted 7 lines
Quoted 3 lines
That said, there were some parts of your original patch that do make sense to expose through the driver, as Jean pointed out. I encourage you to respin the patch with just those parts.
Then instead of maintaining a patch adding new code, I get to maintain a patch to existing code. Every time some slave to checkpatch decides a space just has to be added somewhere I'll get a merge conflict.
I'll try again: I encourage you to respin the patch to include the options on which we all agree. Then you can maintain a smaller patch of just those things that I won't take. This is to your benefit, no?
Quoted 2 lines
I'm much better off not adding anything at all and I've come to regret ever posting the patch in the first place.
Well it seems you took Jean's original review a little too personally right from the start. That's your choice, but I hope you'll reconsider. No code is immune to criticism around here.
Regards,
Signature · 8 lines
Mark M. Hoffman [email protected] _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors