Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp367520ybl; Tue, 7 Jan 2020 07:29:33 -0800 (PST) X-Google-Smtp-Source: APXvYqwcLUDhknhKVlLn0ynHTU4sdBz+TabJvhfNmQjFANfU/6HuedBFZVmTHhRmQJdlCzDKrvQt X-Received: by 2002:a9d:624e:: with SMTP id i14mr250887otk.371.1578410973904; Tue, 07 Jan 2020 07:29:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578410973; cv=none; d=google.com; s=arc-20160816; b=oJHG9GNJXY850ihq6HvQE27Xj5Guli3Zorpl70fqWWSGfYpd7/W3BMLIVVt3OpG2u9 F0QGwgpgUJaZaSfMOxLnVDDwmioXnOYSPL+HLM9ChYCFw0x1YOAHJztI33dnf2+0BMdC 2VxtP4LEvkp0knrjB5DiEL7ztxjV3pavyZBla0AwKPGWSKN3QvtSEqgesEggJ0Hu8jU5 gecmCoaLuYAFZP1FFDHlUTuDv3k3X4E0apB4RVTWesU9RmuNjuchOfKTyUuLNbm9aYWa My2NI8bvVHuCGbpBp2T/WiEuQblH8tzH3BFuicZg0L9B28w11MF8JYhIvBW5od/7IMDQ CXyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:subject:autocrypt:from:references:cc:to; bh=3ZiDQCx7Vd0OR7iagnBtgr7DoXsb9CPnPxHDwYp6mSY=; b=Dt70uglnUi95tKiRA6svazvLC/YreEFqzNm81BqS/HUk3J7q2j9o7yQh7G+cA8kYCo hkdW2TL29CGx0vJKUsHx/yc2WvhlErrmOj/G+ZFf+PmyYCNeQoGGgCoT5pgJp6ohlLSp nQHlV2zdmObCH06032uuOr8/CmEFwu7HqdpVYjSLmqftL380EVO40lPGgzS30ZUgVJA0 mggumuT8pZHPCL1jXpDSMxqZAl6f6Qs1tC7h8QTySUvv/KQ+NhWUb8IiXb6dcDLSULRK gowR0iHjD0b3Hz826M/N7kydnLrzPmmrMbnl16c/61xW0SVn1/Oon9mKemdrm8vAtszJ dAjg== ARC-Authentication-Results: i=1; mx.google.com; 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 w18si32105otl.54.2020.01.07.07.29.21; Tue, 07 Jan 2020 07:29:33 -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; 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 S1728308AbgAGP2J (ORCPT + 99 others); Tue, 7 Jan 2020 10:28:09 -0500 Received: from 3.mo173.mail-out.ovh.net ([46.105.34.1]:50589 "EHLO 3.mo173.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728229AbgAGP2I (ORCPT ); Tue, 7 Jan 2020 10:28:08 -0500 X-Greylist: delayed 1199 seconds by postgrey-1.27 at vger.kernel.org; Tue, 07 Jan 2020 10:28:07 EST Received: from player791.ha.ovh.net (unknown [10.108.1.191]) by mo173.mail-out.ovh.net (Postfix) with ESMTP id D843412ABB9 for ; Tue, 7 Jan 2020 15:50:46 +0100 (CET) Received: from armadeus.com (lfbn-str-1-12-36.w92-140.abo.wanadoo.fr [92.140.139.36]) (Authenticated sender: sebastien.szymanski@armadeus.com) by player791.ha.ovh.net (Postfix) with ESMTPSA id 53895DE73092; Tue, 7 Jan 2020 14:50:38 +0000 (UTC) To: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Greg Kroah-Hartman , Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org, Lucas Stach , Fabio Estevam References: <20191210213221.11921-1-sashal@kernel.org> <20191210213221.11921-102-sashal@kernel.org> From: =?UTF-8?Q?S=c3=a9bastien_Szymanski?= Autocrypt: addr=sebastien.szymanski@armadeus.com; prefer-encrypt=mutual; keydata= mQENBFNfZLEBCACv1lqSePHJNpRgcnER+3emy+Arjz84zFax3XkogjY/e3ZneihIgWrVKe5M ql16pX4KTkzNgMUKz4bG/XwT3kjcrXshxFLlg7KrHMl287C+W+QOUjnjVeRi/su+SPmjz8VD yr11h+ZkVLAWhS+uQJ93jy1NwG8M4t1kBLAVHHD5Vw4FJ+3ouaVYIp1X1Cr8bVKQw33Q1aTd ro0kMBb96B9vNu7ciJZ3gvlaBzUEKOgNnq9KaywuLnqrqr4HUIn5JuxZjCjJzt9kTAKcTfp2 cJM8qpp+2FF5qtbkse9fZ6M64qozgOPr9Tk4Amf9fZEUQ6UNw14mmBZuXSzoHe75gI7TABEB AAG0N1PDqWJhc3RpZW4gU1pZTUFOU0tJIDxzZWJhc3RpZW4uc3p5bWFuc2tpQGFybWFkZXVz LmNvbT6JAVAEEwEIADoCGyMHCwkIBwMCAQYVCAIJCgsEFgIDAQIeAQIXgBYhBJwGygpYm/1C /GCmwbCaKeiBMmTiBQJdhIHLAAoJELCaKeiBMmTixXIH/2W3kbzRG0UF81jtRRnp0H83rjDT v0H+8fgFMRL/7HCJ1QPArkfRJlM2wlJkN+ChP09CCarYfUEHfRCHlTb7At6Yyrz1jziD7ZwX 8IWHYRXnZkY5eZc5DsiUgq6JH49kt+GPzK8UVP9MTa6zkBpPCUf7LzZ4pD3FihdkT52BU3gI d9P49fSI0TYySlb/VKn815aOhvwEr7+Dh3mZUjSh7saofbRmVUOr7p+R3MvvGI19/IJZjeOE ZWliODDOt6HnBOtoGSXMcNIFF6snH52D5N5gY88njZjTwhgGGUBix1bsgf/EY0v4R5itZBXB B/Ze4Tm++YHaB75hZK6PQu/YRv65AQ0EU19ksQEIALo7jhXddrXBTRu5SAjelV53jyHBJTX/ vN4nL/VbbW/saca+NJjDSxx5DBmotZbQdWIyZiSIjU/xnTREvtDrl6ZeSsKWd7ZqiuiY4fSR zwuQp9rd0yqRuxesrWeyJB1zCSdEvLyKASERt+nxkOA+IzJ4y1qLtvnWr+SL1AXgTMw+Tkyw KIDCRWHTIYas11ldGj82gOIpYeXnapeNLHfT4EQwg0NeWYHynJxAQWiX5aPlw0uSpAQSsBXQ FIe3fpoveMSnXK+PG2BBOzexYv7r4S70a6sF9sgTTPpfKqUaqqC+u1+bUX6alTAKhGKJywaF 6ViqLlgY8PfwohSyAlqlTRMAEQEAAYkBNgQYAQgAIAIbDBYhBJwGygpYm/1C/GCmwbCaKeiB MmTiBQJdhIHSAAoJELCaKeiBMmTitU8IAK7NQM3fEwaF5XaKtepYWsVka44CD8A9e4r7NVK9 ugirKvXirIxBSDmN/Db862NmVpITsZ6ERNSNZLm/7k55N+TexKYiFZeU7G92TEfAM6qPElvx DLEcrkNMq9r08YZeUloacsq31AL5fK4LW+xdvXudkdiKRMJsdTpmff3x5kIziGOHjwFP9wve ZgEH52gpbRsP8Whx/Z2lNX/BBRmFM8OnEXFsjjqDzYThdxTq85wGPpkgvvUGyPNRD7TpbB1C pajOUUkPxgj5LKt77HD1afeZNudWhgcdkbtT5PMQTT0WY6wvMEj9S1+bGPeXRGWLYB7gHQ+L JNoSD7Kz6Y9qnKo= Subject: Re: [PATCH AUTOSEL 4.19 102/177] nvmem: imx-ocotp: reset error status on probe Message-ID: Date: Tue, 7 Jan 2020 15:50:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <20191210213221.11921-102-sashal@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 11152601528748758226 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrvdehgedgvdefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepvfhfhffukffffgggjggtgfesthekredttdefjeenucfhrhhomhepuforsggrshhtihgvnhgpufiihihmrghnshhkihcuoehsvggsrghsthhivghnrdhsiiihmhgrnhhskhhisegrrhhmrgguvghushdrtghomheqnecuffhomhgrihhnpehkvghrnhgvlhdrohhrghdpphgrshhtvggsihhnrdgtohhmnecukfhppedtrddtrddtrddtpdelvddrudegtddrudefledrfeeinecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejledurdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshgvsggrshhtihgvnhdrshiihihmrghnshhkihesrghrmhgruggvuhhsrdgtohhmpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards, -- Sébastien Szymanski, Armadeus Systems Software engineer