[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <VI1PR04MB3247E6EBE63C39F5E1C792F191090@VI1PR04MB3247.eurprd04.prod.outlook.com>
Date: Wed, 29 Aug 2018 02:54:50 +0000
From: Qiang Zhao <qiang.zhao@....com>
To: David Gounaris <david.gounaris@...inera.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linuxppc-dev@...ts.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>
CC: David Gounaris <david.gounaris@...inera.com>
Subject: RE: [PATCH 4/6] net/wan/fsl_ucc_hdlc: default hmask value
From: David Gounaris <david.gounaris@...inera.com>
Date: 2018/8/28 19:09
> Subject: [PATCH 4/6] net/wan/fsl_ucc_hdlc: default hmask value
>
> Set default HMASK to 0x0000 to use
> promiscuous mode in the hdlc controller.
>
> Signed-off-by: David Gounaris <david.gounaris@...inera.com>
> ---
> drivers/net/wan/fsl_ucc_hdlc.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/wan/fsl_ucc_hdlc.h b/drivers/net/wan/fsl_ucc_hdlc.h
> index c21134c1f180..5bc3d1a6ca6e 100644
> --- a/drivers/net/wan/fsl_ucc_hdlc.h
> +++ b/drivers/net/wan/fsl_ucc_hdlc.h
> @@ -134,7 +134,7 @@ struct ucc_hdlc_private {
>
> #define HDLC_HEAD_MASK 0x0000
> #define DEFAULT_HDLC_HEAD 0xff44
> -#define DEFAULT_ADDR_MASK 0x00ff
> +#define DEFAULT_ADDR_MASK 0x0000
> #define DEFAULT_HDLC_ADDR 0x00ff
>
> #define BMR_GBL 0x20000000
> --
It is not proper to set default HMASK to 0x0000, how about to add a new property standing for hmask into device tree,
If get this property from dtb, then set it with the value from dtb, otherwise, set it with default HMASK ox00ff?
Best Regards
Qiang Zhao
Powered by blists - more mailing lists