From: Grygorii Strashko Date: Mon, 13 May 2019 20:14:17 +0300 Subject: [U-Boot] [PATCH] net: phy: ti: Fix clock output DT property In-Reply-To: <20190510174845.5047-1-tpiepho@impinj.com> References: <20190510174845.5047-1-tpiepho@impinj.com> Message-ID: <3cf6099f-0067-ddee-8525-418a43c7ff7b@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10.05.19 20:49, Trent Piepho wrote: > The code block reading the DT property for the clock output control was > before the phy's DT node pointer was set, so it could never work. Move > it after the node pointer is set. > > Also store the unsigned 32-bit property into an unsigned value, not a > signed value, as the former will cause a problem if value overflows. > For instance, if one were to add 0xffffffff as a code to mean the clock > output should be turned off. > > Cc: Joe Hershberger > Cc: Janine Hagemann > Cc: Grygorii Strashko > Signed-off-by: Trent Piepho > --- > drivers/net/phy/ti.c | 16 +++++----------- > 1 file changed, 5 insertions(+), 11 deletions(-) > Reviewed-by: Grygorii Strashko -- Best regards, grygorii