Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp499739ybl; Tue, 7 Jan 2020 09:47:05 -0800 (PST) X-Google-Smtp-Source: APXvYqxlY/PPJFUVIb8BjJwjll5oomvXN91+ISyqlFFXnmaXyJd1xi5mFjEID5FgmmMpX+ejuDld X-Received: by 2002:aca:ba46:: with SMTP id k67mr606167oif.38.1578419225438; Tue, 07 Jan 2020 09:47:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578419225; cv=none; d=google.com; s=arc-20160816; b=HyrUWsknm9u8CnBMmwGBo0ldp5/QFH1/JBMh3RKn8VcRj0APbbcLXF7a7BTC5YfeVf vNQlDNq4DEVSCAmReNKScwE/bVGeqei06Kd3tqrjvdES5AtXLkI8YOaEvnbZLqjBVhAz Vhp3Fp5/lJFYu7DbVF9ZQzUPj6iWWxaBU6w1gK73qgWqcHrYsh1AM9+xGjSx87VYPAgv j2yB1bjOzUO5+l6lr3mIa9QPTO7FE1iOrIv0ESaWZgchfheNWJ/gXTl54ZaitmDTI24C r0hsKJp2jEJkNl5N4poxszCi07Li1LYd7F+nJIEo/xQ2sdLKmx44/ZglnoOu2Jlwncki tyVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1PCxhOeDzP+/1FS2CT1CM7VHOtOdXa4+f5c7EsUz5gE=; b=ZBdkYFOLrf7SsRLMAIItSoYXEpaNzzaOd/DqJW8bWyyYqdm/bxYYFhhXNsYjVB9GKq tQTNlcJ+7enz13hXa0OzDIxAsQHPyqDkTPtdRB92f0znNLP8Wjye4/80/ZKRgPM3Z0Nn udClSAnoixWuO06AAEz9TMgjF4ETmJYnd+4OIcyRi/65anjgn1DU2qJSBVcV2G3aYVm6 2iRq4xtu04s3XVQbye2VMrH/BI/nSQ5A6VqMOcWJKKK0bgYNi9Q/YXsnAl6VqdGIGP6+ Kdl6NR1D9yGGftNX9zGRsn29FlLBP2UqyR0GDt+2f2lOtw/H7sX84qiN12yVLuaH61jJ Koyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kbI+F1Pd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si330540oib.246.2020.01.07.09.46.52; Tue, 07 Jan 2020 09:47:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kbI+F1Pd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728493AbgAGRpu (ORCPT + 99 others); Tue, 7 Jan 2020 12:45:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:36852 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728292AbgAGRpu (ORCPT ); Tue, 7 Jan 2020 12:45:50 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B25102081E; Tue, 7 Jan 2020 17:45:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578419149; bh=PogBCs252q4wb6OOumVr05KLsm+Fdz6RVqZBul2qrtQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kbI+F1PdPXANyDqupC3KhyiN/Bs+bvHh6h0tDe8zGJ3b5+TMjjrQx95gBCOJHoYCf QrHrLV/eDCZ7sfO+DgqyoxJvDucmgRcFkF8mlSylcYx1L+MJYOMxU0CVWbl/0kD7DY SOnmQwyM75ECq8fPo8uZ4r3X2bOwxrG+9OERliMg= Date: Tue, 7 Jan 2020 18:45:46 +0100 From: Greg Kroah-Hartman To: =?iso-8859-1?Q?S=E9bastien?= Szymanski Cc: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org, Lucas Stach , Fabio Estevam Subject: Re: [PATCH AUTOSEL 4.19 102/177] nvmem: imx-ocotp: reset error status on probe Message-ID: <20200107174546.GB2011915@kroah.com> References: <20191210213221.11921-1-sashal@kernel.org> <20191210213221.11921-102-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 07, 2020 at 03:50:59PM +0100, S?bastien Szymanski wrote: > On 12/10/19 10:31 PM, Sasha Levin wrote: > > From: Lucas Stach > > > > [ Upstream commit c33c585f1b3a99d53920bdac614aca461d8db06f ] > > > > If software running before the OCOTP driver is loaded left the > > controller with the error status pending, the driver will never > > be able to complete the read timing setup. Reset the error status > > on probe to make sure the controller is in usable state. > > > > Signed-off-by: Lucas Stach > > Signed-off-by: Srinivas Kandagatla > > Link: https://lore.kernel.org/r/20191029114240.14905-6-srinivas.kandagatla@linaro.org > > Signed-off-by: Greg Kroah-Hartman > > Signed-off-by: Sasha Levin > > --- > > drivers/nvmem/imx-ocotp.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c > > index afb429a417fe0..926d9cc080cf4 100644 > > --- a/drivers/nvmem/imx-ocotp.c > > +++ b/drivers/nvmem/imx-ocotp.c > > @@ -466,6 +466,10 @@ static int imx_ocotp_probe(struct platform_device *pdev) > > if (IS_ERR(priv->clk)) > > return PTR_ERR(priv->clk); > > > > + clk_prepare_enable(priv->clk); > > + imx_ocotp_clr_err_if_set(priv->base); > > + clk_disable_unprepare(priv->clk); > > + > > priv->params = of_device_get_match_data(&pdev->dev); > > imx_ocotp_nvmem_config.size = 4 * priv->params->nregs; > > imx_ocotp_nvmem_config.dev = dev; > > > > Hi, > > This patch makes kernel 4.19.{92,93} hang at boot on my i.MX6ULL based > board. It hanks at > > [ 3.730078] cpu cpu0: Linked as a consumer to regulator.2 > [ 3.737760] cpu cpu0: Linked as a consumer to regulator.3 > > Full boot log is here: https://pastebin.com/TS8EFxkr > > The config is imx_v6_v7_defconfig. > > Reverting it makes the kernels boot again. Does this also cause problems in 5.4.7 and newer? thanks, greg k-h