Skip to contentSkip to conversation

: hwmon: allow setting update rate from

PATCH In review Ira W. Snyder 2 participants 3 messages Apr 7, 2010 – Apr 14, 2010

lore
Share & tools
lore
#0 lore raw

cover : hwmon: allow setting update rate from

This is an experimental patch to set the update rate from userspace. An example implementation is provided for the adm1031 driver.

I think the modifications to the adm1031 driver turned out pretty ugly. I'd be happy to drop the first patch and the userspace support from the second patch. I would keep just the parts that read the update rate from the chip and use that during chip updates.

I can make my bootloader responsible for setting the update rate appropriately in this case. The adm1031 driver will then use the programmed update rate. The side effect to this is that a user cannot use i2cset to change the update rate after the kernel has booted, if the driver is built-in.

Thanks,
Ira

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw

cover : hwmon: allow setting update rate from

This is an experimental patch to set the update rate from userspace. An example implementation is provided for the adm1031 driver.

I think the modifications to the adm1031 driver turned out pretty ugly. I'd be happy to drop the first patch and the userspace support from the second patch. I would keep just the parts that read the update rate from the chip and use that during chip updates.

I can make my bootloader responsible for setting the update rate appropriately in this case. The adm1031 driver will then use the programmed update rate. The side effect to this is that a user cannot use i2cset to change the update rate after the kernel has booted, if the driver is built-in.

If you can suggest a way to make the adm1031 code easier to follow while preserving this change, please speak up!

Thanks,
Ira

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Ira W. Snyder

Hi Ira,

Quoted 8 lines · Ira W. Snyder

This is an experimental patch to set the update rate from userspace. An example implementation is provided for the adm1031 driver.

I think the modifications to the adm1031 driver turned out pretty ugly. I'd be happy to drop the first patch and the userspace support from the second patch. I would keep just the parts that read the update rate from the chip and use that during chip updates.

Quoted 8 lines

I can make my bootloader responsible for setting the update rate appropriately in this case. The adm1031 driver will then use the programmed update rate. The side effect to this is that a user cannot use i2cset to change the update rate after the kernel has booted, if the driver is built-in.

If you can suggest a way to make the adm1031 code easier to follow while preserving this change, please speak up!

I think it should be possible to improve the patch in question. I'll reply with a proposal, let's see if we can make it look good enough.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors