> Does this -EIO reach anything that acts on it?
[...]
> Should these callers propagate or retry on -EIO? Alternatively, should > the match functions skip the unreadable index when it cannot be the > entry being looked up?
As for v3: am65-cpsw-nuss drops the -EIO, as it drops the add and delete results today. It only comes after four read pairs that did not match. The hardware entry then stays as it is and a ratelimited warning names the index. Acting on the result in the am65 callers would be a separate driver change, not part of this fix. Skipping the unreadable index is not safe. The match functions cannot tell whether that index holds the entry being looked up, and if it does, an add would allocate a second entry for the same VLAN or address.
> This is a pre-existing issue, but now that the suspend result depends > on this dump: can common->ale_context be NULL here?
Yes, the allocation in am65_cpsw_nuss_probe() is not checked. This does not depend on this series, because the dump already wrote through that pointer before it. I will send a separate fix for net.