Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1170549pxb; Fri, 6 Nov 2020 02:53:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6QgRRNB7uHsdigiotsHs4ntJ+Wgw33XtucjLvIz7N/0aS8Ik8UPAtCtcJR2scTfLGn+Bk X-Received: by 2002:a50:9e05:: with SMTP id z5mr1291838ede.231.1604660037204; Fri, 06 Nov 2020 02:53:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604660037; cv=none; d=google.com; s=arc-20160816; b=WMNig9v5TwL0SVTicZazLD1Jau4EnTznzgYwY9f/ZH1HPSI+5ZuW6/IgXndxSTApYm lp3dgnx6tFtJVrh+N2OcIlqLn4enHFPUeOU7485pKkmInntvidiNhmS0ATr5JjK5t6j2 9O55/js7c8P2d3SbJHFI0v2BsR8hF3sKq97llNs2vHpRSiE2HxKl5m6zOXHAy2cERHQu oqUk/0kYeAS5p4tmU8HHgEIG/UAR/qzTgyK0yJ23sh++/CogeIhrP/OvLueD5EV7JRsJ MBFpOCx9n3rAqT2z6kObeeSi3O1R/qIzIW2C/GonKLEaKBn/wUUORfSqSzFutnur4vqM 5AbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=2G8yFNUt0rErlIAzAOV5/9R8bhK9OSfmMNb1Srh9tQA=; b=Ro+clbHyBqAF//SbSPyvQMZSG4feecMbAf1aMNMabwfohoEtGSe7VEorss/O0JTtNc 9JR+Oy+40s8BzqvIV/8YEaqrqZOqtUauqjmti7K4/jTPT8iNQgF/RGvTt5qySmBA4Lbl /9uqvtHi502IcMBdoJ6WBDWpHUdLZF2ws8AtZ43K33OowKqSvtbdaXQC3SwUji1EBUqz oGaAsOvlRNYilndDvXTYZ5u+nZftRGbDSHiBuiXVmcnh314hAgbpsidsmVKqSJTOQLWb IMX1FmvZWT7TUyKO1H+CZQTZn6cuG4SdxDqUKsuUnsX3VNqmSTPp/oY++4CPwQfkH/oe OuyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DR5GjgYn; 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 j14si884040edk.526.2020.11.06.02.53.34; Fri, 06 Nov 2020 02:53:57 -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; dkim=pass header.i=@kernel.org header.s=default header.b=DR5GjgYn; 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 S1727092AbgKFKve (ORCPT + 99 others); Fri, 6 Nov 2020 05:51:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:36910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726832AbgKFKvd (ORCPT ); Fri, 6 Nov 2020 05:51:33 -0500 Received: from localhost (otava-0257.koleje.cuni.cz [78.128.181.4]) (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 8F19420724; Fri, 6 Nov 2020 10:51:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604659893; bh=VRH0OOsTmug4IluCYlUGvOuQXo2JVTTtYzsTQcMKftI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DR5GjgYnxgYfNUy4hxBJ+GkFu3TNlmpO0aaYPkTbPYlxY0rr4ihwrVMNDTN2Ds1lO zjmit0mzO3nbNkk60AsmHKvxMhMqtY8XeVPwSkNIvGUwHsgdzGJviJ1Y0rhDaJqAXQ KSHS80Rm+ob1CkN8BWqPmpBGJJSb7/AosGPxF6DQ= Date: Fri, 6 Nov 2020 11:51:18 +0100 From: Marek =?UTF-8?B?QmVow7pu?= To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Michael Turquette , Stephen Boyd , Gregory CLEMENT , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Terry Zhou , Konstantin Porotchkin Subject: Re: [PATCH] clk: mvebu: a3700: fix the XTAL MODE pin to MPP1_9 Message-ID: <20201106115118.43eab492@kernel.org> In-Reply-To: <20201106100039.11385-1-pali@kernel.org> References: <20201106100039.11385-1-pali@kernel.org> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Also, this is how A3720 WTMI code and ATF determines XTAL clock rate. No reason for kernel to do it differently. Reviewed-by: Marek Beh=C3=BAn On Fri, 6 Nov 2020 11:00:39 +0100 Pali Roh=C3=A1r wrote: > From: Terry Zhou >=20 > There is an error in the current code that the XTAL MODE > pin was set to NB MPP1_31 which should be NB MPP1_9. > The latch register of NB MPP1_9 has different offset of 0x8. >=20 > Signed-off-by: Terry Zhou > [pali: Fix pin name in commit message] > Signed-off-by: Pali Roh=C3=A1r > Fixes: 7ea8250406a6 ("clk: mvebu: Add the xtal clock for Armada 3700 SoC") > Cc: stable@vger.kernel.org >=20 > --- > This patch is present in Marvell SDK and also in Marvell's kernel fork: > https://github.com/MarvellEmbeddedProcessors/linux-marvell/commit/80d4cec= 4cef8282e5ac3aaf98ce3e68fb299a134 >=20 > Konstantin Porotchkin wrote on Github that Gregory Clement was notified > about this patch, but as this patch is still not in mainline kernel I'm > sending it again for review. >=20 > In original commit message (only in commit message, not code) was > specified MPP9 pin on South Bridge, but correct is North Bridge. > --- > drivers/clk/mvebu/armada-37xx-xtal.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/clk/mvebu/armada-37xx-xtal.c b/drivers/clk/mvebu/arm= ada-37xx-xtal.c > index e9e306d4e9af..41271351cf1f 100644 > --- a/drivers/clk/mvebu/armada-37xx-xtal.c > +++ b/drivers/clk/mvebu/armada-37xx-xtal.c > @@ -13,8 +13,8 @@ > #include > #include > =20 > -#define NB_GPIO1_LATCH 0xC > -#define XTAL_MODE BIT(31) > +#define NB_GPIO1_LATCH 0x8 > +#define XTAL_MODE BIT(9) > =20 > static int armada_3700_xtal_clock_probe(struct platform_device *pdev) > {