diff mbox series

[v3:,net-next,3/4] net: dsa: microchip: ksz9477: remove 0x033C and 0x033D addresses from regmap_access_tables

Message ID 20220902101610.109646-3-romain.naour@smile.fr (mailing list archive)
State Accepted
Commit 3a8b8ea6c7c298482e54c6abee006c400b7aa568
Delegated to: Netdev Maintainers
Headers show
Series [v3:,net-next,1/4] net: dsa: microchip: add KSZ9896 switch support | expand

Checks

Context Check Description
netdev/tree_selection success Clearly marked for net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix success Link
netdev/cover_letter warning Series does not have a cover letter
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers success CCed 11 of 11 maintainers
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 9 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Romain Naour Sept. 2, 2022, 10:16 a.m. UTC
From: Romain Naour <romain.naour@skf.com>

According to the KSZ9477S datasheet, there is no global register
at 0x033C and 0x033D addresses.

Signed-off-by: Romain Naour <romain.naour@skf.com>
Cc: Oleksij Rempel <o.rempel@pengutronix.de>
---
 drivers/net/dsa/microchip/ksz_common.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Oleksij Rempel Sept. 2, 2022, 11:29 a.m. UTC | #1
On Fri, Sep 02, 2022 at 12:16:09PM +0200, Romain Naour wrote:
> From: Romain Naour <romain.naour@skf.com>
> 
> According to the KSZ9477S datasheet, there is no global register
> at 0x033C and 0x033D addresses.
> 
> Signed-off-by: Romain Naour <romain.naour@skf.com>
> Cc: Oleksij Rempel <o.rempel@pengutronix.de>

Tested-by: Oleksij Rempel <o.rempel@pengutronix.de>

> ---
>  drivers/net/dsa/microchip/ksz_common.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c
> index 02fb721c1090..a700631130e0 100644
> --- a/drivers/net/dsa/microchip/ksz_common.c
> +++ b/drivers/net/dsa/microchip/ksz_common.c
> @@ -546,7 +546,8 @@ static const struct regmap_range ksz9477_valid_regs[] = {
>  	regmap_reg_range(0x0302, 0x031b),
>  	regmap_reg_range(0x0320, 0x032b),
>  	regmap_reg_range(0x0330, 0x0336),
> -	regmap_reg_range(0x0338, 0x033e),
> +	regmap_reg_range(0x0338, 0x033b),
> +	regmap_reg_range(0x033e, 0x033e),
>  	regmap_reg_range(0x0340, 0x035f),
>  	regmap_reg_range(0x0370, 0x0370),
>  	regmap_reg_range(0x0378, 0x0378),
> -- 
> 2.34.3
> 
>
diff mbox series

Patch

diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c
index 02fb721c1090..a700631130e0 100644
--- a/drivers/net/dsa/microchip/ksz_common.c
+++ b/drivers/net/dsa/microchip/ksz_common.c
@@ -546,7 +546,8 @@  static const struct regmap_range ksz9477_valid_regs[] = {
 	regmap_reg_range(0x0302, 0x031b),
 	regmap_reg_range(0x0320, 0x032b),
 	regmap_reg_range(0x0330, 0x0336),
-	regmap_reg_range(0x0338, 0x033e),
+	regmap_reg_range(0x0338, 0x033b),
+	regmap_reg_range(0x033e, 0x033e),
 	regmap_reg_range(0x0340, 0x035f),
 	regmap_reg_range(0x0370, 0x0370),
 	regmap_reg_range(0x0378, 0x0378),