From: Wolfgang Denk Date: Fri, 02 Oct 2015 17:54:24 +0200 Subject: [U-Boot] [PATCH v2] ls102xa: Fix reset hang In-Reply-To: <1443799557-26419-2-git-send-email-festevam@gmail.com> References: <1443799557-26419-1-git-send-email-festevam@gmail.com> <1443799557-26419-2-git-send-email-festevam@gmail.com> Message-ID: <20151002155424.EFE943822C0@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Fabio Estevam, In message <1443799557-26419-2-git-send-email-festevam@gmail.com> you wrote: > > Since commit 623d96e89aca6("imx: wdog: correct wcr register settings") > issuing a 'reset' command causes the system to hang. > > Unlike i.MX and Vybrid, the watchdog controller on LS102x is big-endian. > > This means that the watchdog on LS1021 has been working by accident as > it does not use the big-endian accessors in drivers/watchdog/imx_watchdog.c. > Commit 623d96e89aca6("imx: wdog: correct wcr register settings") only > revelead the endianness problem on LS102x. > > In order to fix the reset hang, introduce a reset_cpu() implementation that > is specific for ls102x, which accesses the watchdog WCR register in big-endian > format. All that is required to reset LS102x is to clear the SRS bit. > > Reported-by: Sinan Akman > Tested-by: Sinan Akman > Signed-off-by: Fabio Estevam > --- > Changes since v1: > - Do not add duplicate wdog struct (Wolfgang) Thanks a lot! Reviewed-by: Wolfgang Denk Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Work 8 hours, sleep 8 hours; but not the same 8 hours.