Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3508379imm; Sun, 30 Sep 2018 22:54:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV60eJ3HIE/wb9Qv2w1fvkRAo6xZhW2cdPv3dXErNY7HViDTmuQsuOJxkGt6Y8JTS/3jxmSs2 X-Received: by 2002:a63:a612:: with SMTP id t18-v6mr580901pge.390.1538373292022; Sun, 30 Sep 2018 22:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538373291; cv=none; d=google.com; s=arc-20160816; b=nWS06NbTlys6GTnj0amj1L6JbmMBtTjGrV2Y280WZ1KqD2o0ymhB0vJ0iFyaI8k1lV lM/+kZC620komNYON5FF3GQLPnKUYcoh9TId8dMiIyuBJ8G/Sf/utnE/G4dV0fASu7ux wNRaOHwh28i0+pxCvsMPn993kQ3znK4WiaVBWZ4JasTuad2WSD3NIsuJXHSaSAMH6WeF q/cBPfRXa/YFWuqSC6Zhcz71sl0K/4hbLmx6cJ8ljlrjXaJNlVcoPEiOnrAxoLJIal53 ylPMKqduazrvRPrjoS9KLDJExT4kM+XNrc8/nOQaqy6hJHopmvIFnfgOJYdgR/XWyePH RtQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8nypFTAXIsDUoJqSIe6Ag8o6UZy1k7Tn4a5GzSrnXrE=; b=va7hn0xqQVGhYSdDT1D6sGluBGlg58TCZxpwBPh8KVUcpRCWdqMbVksxU/0zVZquJy zonqxjdvat5mJOR9GZ9ceZlJ3iOEhd9T5aqtRUsQ903nCPIgb8bkmfIgHmyaULUQixc9 fuAsFLN8rMhlSukZ5K9a5B8TpI59wJr46V71q7xxOq51eAGFIJkI6VJ7yHeG8AU7ekkD 5ufVZ/Ct3EDDBlnZVIIwVMrvX30xOvdQohO4mouH8BY5ue6rfqG5H5NkTM7MFb5GHF/n ikRYBerV8QKnS3U8V97gOscJtBDURQfJo5c/K8Vex1whUuHdjP0RLw+r7NUaiHoStSeM 3T2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LQcH+pgs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j185-v6si11358353pgc.419.2018.09.30.22.54.37; Sun, 30 Sep 2018 22:54:51 -0700 (PDT) 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=@linaro.org header.s=google header.b=LQcH+pgs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728679AbeJAMab (ORCPT + 99 others); Mon, 1 Oct 2018 08:30:31 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45740 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728114AbeJAMab (ORCPT ); Mon, 1 Oct 2018 08:30:31 -0400 Received: by mail-pf1-f195.google.com with SMTP id a23-v6so8345093pfi.12 for ; Sun, 30 Sep 2018 22:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8nypFTAXIsDUoJqSIe6Ag8o6UZy1k7Tn4a5GzSrnXrE=; b=LQcH+pgsLVZKBHnWTl8O+/nth/7LsKsFMck3Gzu9+YdPtcbuM/LGHdAuo1dUepgnDd P6MGMKr9wWW4TFEqDQBEZtOh6UgdSoxe0bebEgcGRhJVEuS6/oIzEbPKPSLsgoV5au48 Jo/VQKMTWJBKkyb3frCfnE2x2A9Cb/tlf+fjA= 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:in-reply-to:user-agent; bh=8nypFTAXIsDUoJqSIe6Ag8o6UZy1k7Tn4a5GzSrnXrE=; b=PcNjOVE2te0RouQPMyHH4X2YDRYW4IwF9TuLP8EEJpsO5wN7n3lc0F8rysgoIEDm9n Hzzv9UxoCcIIxHuwlOij+IZVwf2jMnS95tJAwbh7Rb0gjUhvNjY6WMzG6X3Vj+w0apf+ 3pxSj5ISidK5Q/ELD7VSPGd+sH632o6M5sBE9xRpfElw+5hmUfzeR1xfc8C241EqvaSl P8RKLEtEwAU45Wm19gdB1SnQckqxoqkMt3DATjwm8yxumMLEVPbheeEbbbWM6loMmhcz TtMErSn3nI02bIWuDMe3NdevdyBRxTtFde7TuqFhQOmgYEPzpipTM5voku3pNSZK5Lrd ufKQ== X-Gm-Message-State: ABuFfoh+eIAQcf5wfP/rIkkIA0kxOSfAeY+xY6TyHzLO5g07uiuSYQke GYS3n4dhFvbYtoGyKNho78Ltvw== X-Received: by 2002:a63:af5b:: with SMTP id s27-v6mr8718634pgo.448.1538373269103; Sun, 30 Sep 2018 22:54:29 -0700 (PDT) Received: from localhost ([122.172.136.196]) by smtp.gmail.com with ESMTPSA id j5-v6sm16087361pff.139.2018.09.30.22.54.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Sep 2018 22:54:28 -0700 (PDT) Date: Mon, 1 Oct 2018 11:24:26 +0530 From: Viresh Kumar To: Anson Huang Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, rjw@rjwysocki.net, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Linux-imx@nxp.com Subject: Re: [PATCH 2/2] cpufreq: imx6q: read OCOTP through nvmem for imx6ul/imx6ull Message-ID: <20181001055426.w5rp4nfleh4tog3k@vireshk-i7> References: <1536893962-11200-1-git-send-email-Anson.Huang@nxp.com> <1536893962-11200-2-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1536893962-11200-2-git-send-email-Anson.Huang@nxp.com> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14-09-18, 10:59, Anson Huang wrote: > On i.MX6UL/i.MX6ULL, accessing OCOTP directly is wrong because > the ocotp clock needs to be enabled first. Add support for reading > OCOTP through the nvmem API instead. > > Signed-off-by: Anson Huang > --- > drivers/cpufreq/imx6q-cpufreq.c | 39 +++++++++++++++++++-------------------- > 1 file changed, 19 insertions(+), 20 deletions(-) Acked-by: Viresh Kumar -- viresh