aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorLorenzo Bianconi <[email protected]>2018-02-16 23:30:01 +0100
committerKalle Valo <[email protected]>2018-02-28 16:58:42 +0200
commitfee05843801c37e527dbe2c5eeb3fb3b15bc9919 (patch)
tree16643cc3a92281b5f66c307d4b45cc6efc00bec4 /net/unix/sysctl_net_unix.c
parent7972326a26b5bf8dc2adac575c4e03ee7e9d193a (diff)
mt7601u: make write with mask access atomic
Introduce __mt7601u_rr and __mt7601u_vendor_single_wr routines in order to make mt7601u_rmw and mt7601u_rmc atomic. This patch does not fix a reported issue but makes the usb access more robust to concurrent operations on the same register since it is theoretically possible that read and write accesses of mt7601u_rmw/mt7601u_rmc can be interleaved with a different write operation on the same register. Moreover using __mt7601u_rr and __mt7601u_vendor_single_wr in mt7601u_rmw/mt7601u_rmc allows to grab vendor_req_mutex mutex once instead of twice Signed-off-by: Lorenzo Bianconi <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions