Re: [lm-sensors] [RFC] (almost) booting allyesconfig -- please don't poke super-io without request_region

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Hans de Goede <j.w.r.degoede@...>
Cc: Samuel Ortiz <samuel@...>, <linuxppc-dev@...>, <linux-kernel@...>, <lm-sensors@...>
Date: Thursday, July 10, 2008 - 5:51 pm

On Jul 10, 2008, at 4:33 PM, Hans de Goede wrote:

...

My point is that they are probing without even knowing that a such a IO 
range exists.

These are the only drivers left in the tree that still do this.  (At 
least that are not
blocked on a powerpc allyesconfig for 64-bit, !CONFIG_VIRT_TO_BUS).

One could make a superio driver, and create sub-devices for the IR, 
I2C, floppy, parallel, etc
nodes.

I would even accept a check_region (horrors!), it would impove the 
situation.

But most other drivers do this by request_region, probe, then release 
the region afterwards.

Besides, one could argue the superio region should be requested while 
probing, to prevent other cpus from poking at the super io chip at the 
same time.   Think of it as missing locking.

milton

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [lm-sensors] [RFC] (almost) booting allyesconfig -- plea..., Milton Miller, (Thu Jul 10, 5:51 pm)