Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet/qlogic/qed
Alexander Lobakin ccd7c7ce16 net: qed: fix NVMe login fails over VFs
25ms sleep cycles in waiting for PF response are excessive and may lead
to different timeout failures.

Start to wait with short udelays, and in most cases polling will end
here. If the time was not sufficient, switch to msleeps.
usleep_range() may go far beyond 100us depending on platform and tick
configuration, hence atomic udelays for consistency.

Also add explicit DMA barriers since 'done' always comes from a shared
request-response DMA pool, and note that in the comment nearby.

Fixes: 1408cc1fa4 ("qed: Introduce VFs")
Signed-off-by: Alexander Lobakin <alobakin@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-06-23 15:01:16 -07:00
..
2020-05-21 17:08:25 -07:00
2020-05-21 17:08:25 -07:00
2020-01-27 14:35:32 +01:00
2020-01-27 14:35:32 +01:00
2019-01-28 11:13:34 -08:00
2020-04-23 15:53:52 -07:00
2020-01-27 14:35:32 +01:00
2020-01-27 14:35:32 +01:00