summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorGal Pressman <gal@nvidia.com>2022-01-16 09:07:22 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2022-02-01 20:59:39 -0800
commit4a08a131351e375a2969b98e46df260ed04dcba7 (patch)
tree224e2e801a156e0a9f9e8f168c0083be36446ad9 /drivers/mtd
parenta2446bc77a16cefd27de712d28af2396d6287593 (diff)
net/mlx5e: Fix module EEPROM query
When querying the module EEPROM, there was a misusage of the 'offset' variable vs the 'query.offset' field. Fix that by always using 'offset' and assigning its value to 'query.offset' right before the mcia register read call. While at it, the cross-pages read size adjustment was changed to be more intuitive. Fixes: e19b0a3474ab ("net/mlx5: Refactor module EEPROM query") Reported-by: Wang Yugui <wangyugui@e16-tech.com> Signed-off-by: Gal Pressman <gal@nvidia.com> Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/mtd')
0 files changed, 0 insertions, 0 deletions