]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvmem: qfprom: Fix up qfprom_disable_fuse_blowing() ordering
authorRajendra Nayak <rnayak@codeaurora.org>
Fri, 30 Jul 2021 06:46:11 +0000 (12:16 +0530)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Wed, 4 Aug 2021 08:27:04 +0000 (09:27 +0100)
commitd66d3677971f4492f12a112bbe071bc1b64972bb
tree350decaf2141a5f2d891d25b52f8a8de411aaca1
parent4aecba179ac413f9e1c3a21fe4d36110dcb6bb90
nvmem: qfprom: Fix up qfprom_disable_fuse_blowing() ordering

qfprom_disable_fuse_blowing() disables a bunch of resources,
and then does a few register writes in the 'conf' address
space.
It works perhaps because the resources are needed only for the
'raw' register space writes, and that the 'conf' space allows
read/writes regardless.
However that makes the code look confusing, so just move the
register writes before turning off the resources in the
function.

Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
drivers/nvmem/qfprom.c