Skip to contentSkip to conversation

SuperIO locks coordinator - use in drivers/char/pc8736x-gpio

PATCH In review Jim Cromie 1 participant 1 message Oct 15, 2007

Subsystems (2)
lore
Share & tools
lore

Jim Cromie

author maintainer
#0 lore raw

PATCH 4/5 SuperIO locks coordinator - use in drivers/char/pc8736x-gpio

04 - use superio-locks in drivers/char/pc8736x_gpio

this driver keeps the slot for the lifetime of the driver ( __init til __exit ), since the driver needs the sio-port to change pin configurations.

patches 03,04 were tested on a soekris 4801 a year ago, the box is currently busy. Together they sanity-test the sharing of a reservation with 2 different life-cycles.

---
hwmon-superio-pc8736x-gpio

 Kconfig        |    1 
 pc8736x_gpio.c |   83 ++++++++++++++++++++++-----------------------------------
 2 files changed, 34 insertions(+), 50 deletions(-)
drivers/char/Kconfig +1 -0
diff -ruNp -X dontdiff -X exclude-diffs hwmon-fan-push-offset/drivers/char/Kconfig hwmon-superio.old/drivers/char/Kconfig
@@ -943,6 +943,7 @@ config PC8736x_GPIO
 	depends on X86
 	default SCx200_GPIO	# mostly N
 	select NSC_GPIO		# needed for support routines
+	select SUPERIO_LOCKS
 	help
 	  Give userspace access to the GPIO pins on the National
 	  Semiconductor PC-8736x (x=[03456]) SuperIO chip.  The chip
drivers/char/pc8736x_gpio.c +33 -50

182 lines not on this page · raw message

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