]> git.baikalelectronics.ru Git - kernel.git/commit
sparc: Add mutex for set property calls.
authorDavid S. Miller <davem@davemloft.net>
Wed, 20 Aug 2008 04:56:35 +0000 (21:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Aug 2008 03:33:55 +0000 (20:33 -0700)
commit41cdb7c462b7604f3e5cbc132529542641af40d7
tree2d047756426224d741388b4c557151f9a7cb8335
parent705f298554ad6e0118b2f99d188a439e3d394fe5
sparc: Add mutex for set property calls.

On some platforms, the I2C controller is shared between the OS and
OBP.  OBP uses this I2C controller to access the EEPROM, and thus is
programmed when the kernel calls prom_setprop().

Wrap such calls with the new of_set_property_mutex.

Relevant I2C bus drivers can grab this mutex around top-level I2C
operations to provide the proper protection.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/prom.h
arch/sparc/kernel/prom.c
arch/sparc64/kernel/prom.c