From: sbabic at denx.de Date: Wed, 15 Jan 2020 13:47:00 +0100 (CET) Subject: [PATCH v2 15/21] serial_lpuart: add clock enable if CONFIG_CLK is defined In-Reply-To: <20200110144711.81938-16-giulio.benetti@benettiengineering.com> Message-ID: <20200115124700.30B87818E5@phobos.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 > This driver assumes that lpuart clock is already enabled before probing > but using DM only lpuart won't be automatically enabled so add > clk_enable() when probing if CONFIG_CLK is defined. If clock is not > found, because DM is not used, let's emit a warning and proceed, because > serial clock could also be already enabled by non DM code. If clock is > found but cna't be enabled then return with error. > Signed-off-by: Giulio Benetti Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================