soc: fsl: dpio: fix net interfaces probe on big endian
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 soc: fsl: dpio: fix net interfaces probe on big endian
From: Jonathan Currier <[email protected]>
qbman-portal failed to correct for system endianness, resulting in command time outs.
Signed-off-by Jonathan Currier <[email protected]>
--- drivers/soc/fsl/dpio/qbman-portal.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/soc/fsl/dpio/qbman-portal.c +6 -4
@@ -477,24 +477,26 @@ void qbman_swp_mc_submit(struct qbman_swp *p, void *cmd, u8 cmd_verb)*/ void *qbman_swp_mc_result (struct qbman_swp *p) { -u32 *ret, verb; +u32 *ret, verb, result;if ((p->desc->qman_version &QMAN_REV_MASK ) <QMAN_REV_5000 ) { ret =qbman_get_cmd (p,QBMAN_CENA_SWP_RR (p->mc.valid_bit)); + result =le32_to_cpu (ret[0 ]);/* Remove the valid-bit - command completed if the rest * is non-zero. */ - verb = ret[0 ] & ~QB_VALID_BIT ; + verb = result & ~QB_VALID_BIT ;if (!verb)return NULL ; p->mc.valid_bit ^=QB_VALID_BIT ; }else { ret =qbman_get_cmd (p,QBMAN_CENA_SWP_RR_MEM ); + result =le32_to_cpu (ret[0 ]);/* Command completed if the valid bit is toggled */ -if (p->mr.valid_bit != (ret[0 ] &QB_VALID_BIT )) +if (p->mr.valid_bit != (result &QB_VALID_BIT ))return NULL ;/* Command completed if the rest is non-zero */ - verb = ret[0 ] & ~QB_VALID_BIT ; + verb = result & ~QB_VALID_BIT ;if (!verb)return NULL ; p->mr.valid_bit ^=QB_VALID_BIT ;
Signature · 7 lines
2.39.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel