|
@@ -97,9 +97,7 @@ static int __qed_spq_block(struct qed_hwfn *p_hwfn,
|
|
|
|
|
|
while (iter_cnt--) {
|
|
while (iter_cnt--) {
|
|
/* Validate we receive completion update */
|
|
/* Validate we receive completion update */
|
|
- if (READ_ONCE(comp_done->done) == 1) {
|
|
|
|
- /* Read updated FW return value */
|
|
|
|
- smp_read_barrier_depends();
|
|
|
|
|
|
+ if (smp_load_acquire(&comp_done->done) == 1) { /* ^^^ */
|
|
if (p_fw_ret)
|
|
if (p_fw_ret)
|
|
*p_fw_ret = comp_done->fw_return_code;
|
|
*p_fw_ret = comp_done->fw_return_code;
|
|
return 0;
|
|
return 0;
|