From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08F76C43603 for ; Thu, 12 Dec 2019 02:44:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CE5EF20836 for ; Thu, 12 Dec 2019 02:44:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="H6S8eyqJ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="G3J8oGm1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CE5EF20836 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WTis2E7ubS85u2+ia3vY51kRUa/E0vwt9VuU1OuDWxM=; b=H6S8eyqJP78RHS alIYDrjbcI+qLG17VUmSR93DqGV5HXSshw0517EKQDkIQpx7bcCYMZw0Rdc6I6FzyfcpmCRQoq4Iy UKw9x0RQEOOSxqpk3ewSILhf1ZED8qDUiicJx/iBg+pjashaGgxo75OZAocg8iOdsWQPEPuas1MTe Zx6yC9NXj6fqE5Daf3G7Wl/dzpdqt0r/FVXe3/cbZ+8MJn7ms8/aNHUNvJagXTFmMD5ZzBe3ory+k Gi5kkxFLEkODCS9ehimVDVzORE6G3HsK9xPIYN6vJzOhzw+X/iOzDI02DM8BuxYcjqxAhxZbqMrmA QHTXTwxqBYBwDhGPtemw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ifESg-00044j-Ff; Thu, 12 Dec 2019 02:44:18 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ifESe-00044B-Dp for linux-arm-kernel@lists.infradead.org; Thu, 12 Dec 2019 02:44:17 +0000 Received: from dragon (98.142.130.235.16clouds.com [98.142.130.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BE094206C3; Thu, 12 Dec 2019 02:44:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1576118656; bh=GEF5RTroxrtpc0mEJudQBk28+p9B2McCOPsp1qDwpwU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G3J8oGm1uWddxi+6QITWqumbyn9YDtFUE0bxfo/mOIBimkxy9szZhqqfJ0Fw6cTKB jAKP3F6qaGsgR1FCqPXAGKmDKi//4tlLHiCR8T48djj2bzgH7m1cE3hdIUINh9i5lM iNHX2kkdk8tj4CcZQ3bCQLYVI+PffYEmek6O18Tc= Date: Thu, 12 Dec 2019 10:44:05 +0800 From: Shawn Guo To: Leonard Crestez Subject: Re: [PATCH 1/2] ARM: imx: Fix boot crash if ocotp is not found Message-ID: <20191212024404.GH15858@dragon> References: <68b9e3bc9c60c89017648bf3abe150fd0abbde86.1576014367.git.leonard.crestez@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <68b9e3bc9c60c89017648bf3abe150fd0abbde86.1576014367.git.leonard.crestez@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191211_184416_489146_0884D88B X-CRM114-Status: GOOD ( 11.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dong Aisheng , Anson Huang , linux-imx@nxp.com, kernel@pengutronix.de, Fabio Estevam , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Dec 10, 2019 at 11:49:28PM +0200, Leonard Crestez wrote: > The imx_soc_device_init functions tries to fetch the ocotp regmap in > order to soc serial number. If regmap fetch fails then a message is > printed but regmap_read is called anyway and the system crashes. > > Failing to lookup ocotp regmap shouldn't be a fatal boot error so check > that the pointer is valid. > > Only side-effect of ocotp lookup failure now is that serial number will > be reported as all-zeros which is acceptable. > > Cc: stable@vger.kernel.org > Fixes: 8267ff89b713 ("ARM: imx: Add serial number support for i.MX6/7 SoCs") > Signed-off-by: Leonard Crestez As this is a fix we want it in 5.5-rc, it should be generated against 5.5-rc1 rather than -next. I rebased it and applied, thanks. Shawn _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel