Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp441856pxu; Thu, 26 Nov 2020 02:43:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjoSy9c7ePtpXxPT+g2sI07+AIGw2744UlTFsN1sbPrHXT0KbPc+ObziyU5tNt4c9DGeRA X-Received: by 2002:aa7:d407:: with SMTP id z7mr1964480edq.234.1606387384263; Thu, 26 Nov 2020 02:43:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606387384; cv=none; d=google.com; s=arc-20160816; b=t2xKinujjcNy0Z2Pkfe7kTZfXGVrWjLTZ8VaE3LT1A7h9t4QUaD5R/oc5nzar5BmZx g01E3zrBXqth2E5wHImaBbj1Q9O8sHhbWJBUpgFR0ESgeO4AtW/5XW8PVNYBHbKBWpde B7sX54/aDWXloczP4OWOlFHjZ1yuzeCc+RTbQSk+2lf2agp6chR/NlalFzvzJxYiOPEi OfV0IFAzdNb8x87dlHhtnc5CzlW0EZojbyy+bPr+Pb5HH5ZP7N9ASIgcfZVt969BZbXY /Cx9oMHVi1lJue2sPrF5bsAiMV1JuNPMk8c4I80u74qMKOc3p9hZy6lcEIuLCxB1a/Hz MZrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Eba92Ic+oePybqNr8rL7bvjoKwyw4jVgFhQ4t6GiLwY=; b=G5NB5jJLgjgmpRi8csuzdokE1I84gQB1IpUVpLu1OaqoV01lB1LTJOZmwjF4pAVPEQ YjfAFJHeJHrW9jZRDmHIPkTge21r5L85NTeGUivHPhyTDa0cQi1iFfkvwHfHkQfeKtyp e1l8/4DooeR7Cv68wibgm7ZcpPcEr59Qf4ZHgruYIdqu8j2MKJ2PJq0lqlmdWG6oCWby tVTTC1pmrT5rbNNrHBBUfo9891wgINPiUTDsniWiq1VuGwbuJhA9Pw++fOibIglrauYN eAWbXSVXf2RtZjTHTGjx5nymqJZiZeGMY/YYXkCUAF6VXNoHvWV1FQNoLR9Tt1yq9u9C WONQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 27si2709504edw.379.2020.11.26.02.42.41; Thu, 26 Nov 2020 02:43:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388651AbgKZIHx convert rfc822-to-8bit (ORCPT + 99 others); Thu, 26 Nov 2020 03:07:53 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37720 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731457AbgKZIHx (ORCPT ); Thu, 26 Nov 2020 03:07:53 -0500 Received: by mail-wm1-f68.google.com with SMTP id h21so1403260wmb.2; Thu, 26 Nov 2020 00:07:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=touMMcxtN/klkfBzKGmR1GBeAIVZ5Q/OLb3bh+krvqw=; b=NHyfvK522HWNvxhnu8Aarb9k8q6E2+cvlxOlnssQJCf9zByQoDDjk8Kow9yB52g+tY 67Vz98N/Fr6WlrKgEMGhvd8ycppwakmbAziMNnCpLJKYztehM1Ckt40jcVVg69zh6gG/ v13lYTN59tCKCWL8qlZPl8skLijJ4HJe7rYZJaL1VMoUnA/e4sbtUckIkkc5xGdyeTax v+n/6QMd0agzdlpGRMrVF2P5bfoWEQmIEuiPUwTs5lSmJoAElDWZQEu+lSLdyY7mhMJn 4DusXsnrTtnRAgYNds1uffJFlc+8QuUTn1lct0dfo/3dsCZJIXZHJsgwaX3m3gkpwkcb iWhA== X-Gm-Message-State: AOAM531D7SCvCXfLyVsRnSwivQ30CJU6NMEOG8aAi2vSWS1PKD4IwrUv fxEyB2dlXKH8BzjnAp3kGKM= X-Received: by 2002:a1c:4e0f:: with SMTP id g15mr1927617wmh.160.1606378071210; Thu, 26 Nov 2020 00:07:51 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id v20sm6904441wmh.44.2020.11.26.00.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 00:07:50 -0800 (PST) Date: Thu, 26 Nov 2020 09:07:48 +0100 From: Krzysztof Kozlowski To: Alice Guo Cc: Adam Ford , "shawnguo@kernel.org" , devicetree , Peng Fan , Sascha Hauer , Linux Kernel Mailing List , Rob Herring , dl-linux-imx , arm-soc Subject: Re: [PATCH v6 4/4] soc: imx8m: change to use platform driver Message-ID: <20201126080748.GC4347@kozik-lap> References: <20201124015949.29262-1-alice.guo@nxp.com> <20201124015949.29262-4-alice.guo@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 26, 2020 at 02:15:35AM +0000, Alice Guo wrote: > > > > -----Original Message----- > > From: linux-arm-kernel On > > Behalf Of Adam Ford > > Sent: 2020年11月25日 8:45 > > To: Alice Guo > > Cc: devicetree ; Peng Fan ; > > Sascha Hauer ; Linux Kernel Mailing List > > ; Krzysztof Kozlowski ; Rob > > Herring ; dl-linux-imx ; Shawn Guo > > ; arm-soc > > Subject: Re: [PATCH v6 4/4] soc: imx8m: change to use platform driver > > > > On Mon, Nov 23, 2020 at 8:04 PM Alice Guo wrote: > > > > > > Directly reading ocotp register depends on that bootloader enables > > > ocotp clk, which is not always effective, so change to use nvmem API. > > > Using nvmem API requires to support driver defer probe and thus change > > > soc-imx8m.c to use platform driver. > > > > > > The other reason is that directly reading ocotp register causes kexec > > > kernel hang because the 1st kernel running will disable unused clks > > > after kernel boots up, and then ocotp clk will be disabled even if > > > bootloader enables it. When kexec kernel, ocotp clk needs to be > > > enabled before reading ocotp registers, and nvmem API with platform > > > driver supported can accomplish this. > > > > > > Signed-off-by: Alice Guo > > > --- > > > > > The patch reads V6, but the change log only shows V2. Can you elaborate on > > what has changed between V2 and V6? > > > > adam > > Hi, > > Sorry. The order of changlog is reversed. Thank Adam for pointing out the problem, and thank Krzysztof for reviewing my patch. > Do I need to resend the patchset with the correct changelog order? No, no need. Best regards, Krzysztof