• David S. Miller's avatar
    sparc: Add mutex for set property calls. · 2481d766
    David S. Miller authored
    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>
    2481d766
prom.c 12 KB