]> www.infradead.org Git - nvme.git/commit
net: mscc: ocelot: check return values of writes during reset
authorColin Foster <colin.foster@in-advantage.com>
Sat, 17 Sep 2022 17:51:27 +0000 (10:51 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Sep 2022 01:29:38 +0000 (18:29 -0700)
commitfa1d90b048c2037679b389bb41b29963d5faf232
treeedeb091f250a5ea93ada9e91b4827ea1ca8d162e
parent21bb08cd2cda0e4ac8349b9009c3ccd1f114ad6a
net: mscc: ocelot: check return values of writes during reset

The ocelot_reset() function utilizes regmap_field_write() but wasn't
checking return values. While this won't cause issues for the current MMIO
regmaps, it could be an issue for externally controlled interfaces.

Add checks for these return values.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/ocelot_vsc7514.c