All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] Make all it87 drivers SMP safe
@ 2011-04-12 20:48 ` Nat Gurumoorthy
  0 siblings, 0 replies; 30+ messages in thread
From: Nat Gurumoorthy @ 2011-04-12 20:48 UTC (permalink / raw)
  To: Jean Delvare, Guenter Roeck, Wim Van Sebroeck
  Cc: Mike Waychison, lm-sensors, linux-kernel, linux-watchdog,
	Nat Gurumoorthy

There are 3 different drivers that touch the it87 hardware registers.
The 3 drivers have been written independently and access the it87 hardware
registers assuming they are the only driver accessing it. This change
attempts to serialize access to the hardware by using
"request_muxed_region" macro defined by Alan Cox. Call to this macro
will hold off the requestor if the resource is currently busy.
The use of the above macro makes it possible to get rid of
spinlocks in it8712f_wdt.c and it87_wdt.c watchdog drivers.
This also greatly simplifies the implementation of it87_wdt.c driver.

01 - Changes to it87 watchdog driver to use "request_muxed_region"
 drivers/watchdog/it8712f_wdt.c
 drivers/watchdog/it87_wdt.c

02 - Chages to hwmon it87 driver to use "request_muxed_region"
 drivers/hwmon/it87.c

 drivers/hwmon/it87.c           |    6 +++++
 drivers/watchdog/it8712f_wdt.c |   11 +++++----
 drivers/watchdog/it87_wdt.c    |   41 +++++----------------------------------
 3 files changed, 18 insertions(+), 40 deletions(-)

Signed-off-by: Nat Gurumoorthy <natg@google.com>

Patch History:
v5:
- Remove unnecessary while from superio_enter.

v4:
- Remove extra braces in superio_enter routines.

v3:
- Totally abandon the spinlock based approach and use "request_muxed_region" to
  hold off requestors if the resource is busy.

v2:
- More verbose patch headers. Add In-Reply-To: field.


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2011-04-14 20:41 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12 20:48 [PATCH v5 0/2] Make all it87 drivers SMP safe Nat Gurumoorthy
2011-04-12 20:48 ` [lm-sensors] " Nat Gurumoorthy
2011-04-12 20:49 ` [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Nat Gurumoorthy
2011-04-12 20:49   ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Nat Gurumoorthy
2011-04-13  6:50   ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Hans de Goede
2011-04-13  6:50     ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Hans de Goede
2011-04-13  8:05     ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Natarajan Gurumoorthy
2011-04-13  8:05       ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Natarajan Gurumoorthy
2011-04-13  8:34       ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Jean Delvare
2011-04-13  8:34         ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Jean Delvare
2011-04-13 17:59         ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Natarajan Gurumoorthy
2011-04-13 17:59           ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Natarajan Gurumoorthy
2011-04-13 20:34           ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Jean Delvare
2011-04-13 20:34             ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Jean Delvare
2011-04-14  9:25           ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Alan Cox
2011-04-14  9:25             ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Alan Cox
2011-04-14 17:58     ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Guenter Roeck
2011-04-14 17:58       ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Guenter Roeck
2011-04-13  7:03   ` [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Wim Van Sebroeck
2011-04-13  7:03     ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Wim Van Sebroeck
2011-04-13  8:15     ` [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Natarajan Gurumoorthy
2011-04-13  8:15       ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Natarajan Gurumoorthy
2011-04-13  9:29     ` [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Alan Cox
2011-04-13  9:29       ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Alan Cox
2011-04-14 19:00       ` [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Mike Waychison
2011-04-14 19:00         ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Mike Waychison
2011-04-14 20:41         ` [PATCH v5 1/2] Use "request_muxed_region" in it87 watchdog drivers Alan Cox
2011-04-14 20:41           ` [lm-sensors] [PATCH v5 1/2] Use "request_muxed_region" in it87 Alan Cox
2011-04-12 20:50 ` [PATCH v5 2/2] Use "request_muxed_region" in it87 hwmon drivers Nat Gurumoorthy
2011-04-12 20:50   ` [lm-sensors] [PATCH v5 2/2] Use "request_muxed_region" in it87 Nat Gurumoorthy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.