summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/occ/sysfs.c
diff options
context:
space:
mode:
authorJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>2019-02-11 10:54:44 -0800
committerJoel Stanley <joel@jms.id.au>2019-04-12 11:28:49 +0930
commite124b50aeacb66baa42541ebc6c3544350f75a79 (patch)
treeb9576131c7bcce839b81f6a8ab4716ac81a6ab92 /drivers/hwmon/occ/sysfs.c
parent432e9d5e20db9f7817f560c2a8418281209d03ef (diff)
downloadtalos-obmc-linux-e124b50aeacb66baa42541ebc6c3544350f75a79.tar.gz
talos-obmc-linux-e124b50aeacb66baa42541ebc6c3544350f75a79.zip
i2c: aspeed: Add multi-master use case support
In multi-master environment, this driver's master cannot know exactly when a peer master sends data to this driver's slave so cases can be happened that this master tries sending data through the master_xfer function but slave data from a peer master is still being processed or slave xfer is started by a peer immediately after it queues a master command. To support multi-master use cases properly, this H/W provides arbitration in physical level and it provides priority based command handling too to avoid conflicts in multi-master environment, means that if a master and a slave events happen at the same time, H/W will handle a higher priority event first and a pending event will be handled when bus comes back to the idle state. To support this H/W feature properly, this patch adds the 'pending' state of master and its handling code so that the pending master xfer can be continued after slave operation properly. Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> (cherry picked from commit 2e57b7cebb988a27cee44626ae91424e73823bfb) Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'drivers/hwmon/occ/sysfs.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud