summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPawel Laszczak <pawell@cadence.com>2021-09-30 11:42:17 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-06 15:42:30 +0200
commitb2fb6ce06c0fa90ce0651fea6b668fb0248dc0ad (patch)
treec0cf7572077f84088c620710b9b885ac6c8587df /net/unix/af_unix.c
parente2370e1935190054c10d476b5a33fa9e9a18b7e3 (diff)
usb: cdns3: fix race condition before setting doorbell
commit b69ec50b3e55c4b2a85c8bc46763eaf33060584 upstream For DEV_VER_V3 version there exist race condition between clearing ep_sts.EP_STS_TRBERR and setting ep_cmd.EP_CMD_DRDY bit. Setting EP_CMD_DRDY will be ignored by controller when EP_STS_TRBERR is set. So, between these two instructions we have a small time gap in which the EP_STS_TRBERR can be set. In such case the transfer will not start after setting doorbell. Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver") cc: <stable@vger.kernel.org> # 5.4.x Tested-by: Aswath Govindraju <a-govindraju@ti.com> Reviewed-by: Aswath Govindraju <a-govindraju@ti.com> Signed-off-by: Pawel Laszczak <pawell@cadence.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions