[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170322.193241.552898718641680618.davem@davemloft.net>
Date:   Wed, 22 Mar 2017 19:32:41 -0700 (PDT)
From:   David Miller <davem@...emloft.net>
To:     w.egorov@...tec.de
Cc:     peppe.cavallaro@...com, alexandre.torgue@...com,
        netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-rockchip@...ts.infradead.org
Subject: Re: [PATCH] net: stmmac: dwmac-rk: Add handling for
 RGMII_ID/RXID/TXID
From: Wadim Egorov <w.egorov@...tec.de>
Date: Wed, 22 Mar 2017 16:50:22 +0100
> @@ -74,6 +74,10 @@ struct rk_priv_data {
>  #define GRF_BIT(nr)	(BIT(nr) | BIT(nr+16))
>  #define GRF_CLR_BIT(nr)	(BIT(nr+16))
>  
> +#define DELAY_ENABLE(soc, tx, rx) \
> +	((tx) ? soc##_GMAC_TXCLK_DLY_ENABLE : soc##_GMAC_TXCLK_DLY_DISABLE | \
> +	 (rx) ? soc##_GMAC_RXCLK_DLY_ENABLE : soc##_GMAC_RXCLK_DLY_DISABLE)
This doesn't evaluate the way you want it to.
You need to put parenthesis around both "x ? a : b" expressions.
Powered by blists - more mailing lists
 
