aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorHemant Kumar <[email protected]>2020-05-21 22:32:48 +0530
committerGreg Kroah-Hartman <[email protected]>2020-05-22 09:35:44 +0200
commit3bc1a5f431618a656bbf674a4627ef4da3a0d893 (patch)
tree020ba65f3cfc3a852bd2b6d50e2758fdf48721fc /drivers/fpga/fpga-bridge.c
parent30b7892417c50a05bf4a2ad56c2e1355d4d1404a (diff)
bus: mhi: core: Handle write lock properly in mhi_pm_m0_transition
Take write lock only to protect db_mode member of mhi channel. This allows rest of the mhi channels to just take read lock which fine grains the locking. It prevents channel readers to starve if they try to enter critical section after a writer. Signed-off-by: Hemant Kumar <[email protected]> Reviewed-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions