Skip to content
Snippets Groups Projects
Commit 2481d766 authored by David S. Miller's avatar David S. Miller
Browse files

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: default avatarDavid S. Miller <davem@davemloft.net>
parent 072bd413
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment