Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1192938imm; Thu, 4 Oct 2018 09:32:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV63KcoRAJeMX9g1ZS8HS0W/FbxhW2HGczKObCXbSr9rDhLu92ijwBYqeEXzaTF5TjWpxH65A X-Received: by 2002:a63:cf4c:: with SMTP id b12-v6mr6407579pgj.418.1538670760634; Thu, 04 Oct 2018 09:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538670760; cv=none; d=google.com; s=arc-20160816; b=CwaPr8ksRrhGaOy4nHuL0kmO24uL7yUfFUZtc8vki+wHPOX2TAP7pnrJOfY6SM9c5o vyCuPm9fKYooyOTQX4idsaQr3bXcMPbROKUqzR3J6iPbTFir97Lel/FihMUXq7SIb7O/ GLljoedzO+kFRiqli0utl3MoFyvc31XA8+QryMOxhRkwXkGV1bydF1sYYWagoe8gaBot y1L512HLPV6EmsKBXFTuAPT14C05Iz0UNXpA4eKu7MswisbnzKxSPn95WZAmXW7lkoFa nflKE/AyelpPtdfSkU8giVn28FHNGrKgVXyGW5/5X4CXyalRMHHKxiyGyDefZDdlZMII 0u9w== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=goM2UEDFy+eMrY7Xb4e8ygyf6TlDEAko5V2GbqMZYQk=; b=PbWc+mq44p5HnHWE8uGrzE1q9hTW+dts5lx0HAsXi6b+mT4BUgJpb32WXVmaF4V5qP cwxyHevGaqkmd6VrsLvLxIeCzm5NJZ9SI98fCdO0NICkkoopmsLcEJHSajmsNQD9Igj9 3tqrRDWwrrh9kzvezRHXF2ldx/RReX5ZB++Lr1E7hLZC/duYJ3bJZLtUhWq4PyjNUcwx XB0zBTESFwsT76JAEfBxcEXI+UYHU/aTP4nmLqDQHbtGvDOCgmni+rMMmhmFLEY1n/QO YLKnyS83a3UdV2NvqY0pf2w+GILtPVesCm/U/A9d1iZE1VyQIZM9fwgLcnS314+RM7J5 01Cw== 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 b6-v6si4778326pgi.255.2018.10.04.09.32.23; Thu, 04 Oct 2018 09:32:40 -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; 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 S1727639AbeJDX0Q convert rfc822-to-8bit (ORCPT + 99 others); Thu, 4 Oct 2018 19:26:16 -0400 Received: from mail.bootlin.com ([62.4.15.54]:45949 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727415AbeJDX0Q (ORCPT ); Thu, 4 Oct 2018 19:26:16 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id DDFE920787; Thu, 4 Oct 2018 18:32:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LFbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.bootlin.com (Postfix) with ESMTPSA id AC15620719; Thu, 4 Oct 2018 18:32:12 +0200 (CEST) Date: Thu, 4 Oct 2018 18:20:04 +0200 From: Maxime Ripard To: Icenowy Zheng Cc: Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH] clk: sunxi-ng: enable so-said LDOs for A64 SoC's pll-mipi clock Message-ID: <20181004162004.dstnrzyaqryenfj3@flea> References: <20181002122911.22094-1-icenowy@aosc.io> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20181002122911.22094-1-icenowy@aosc.io> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Tue, Oct 02, 2018 at 08:29:11PM +0800, Icenowy Zheng wrote: > In the user manual of A64 SoC, the bit 22 and 23 of pll-mipi control > register is called "LDO{1,2}_EN", and according to the BSP source code > from Allwinner , the LDOs are enabled during the clock's enabling > process. > > The clock failed to generate output if the two LDOs are not enabled. > > Add the two bits to the clock's gate bits, so that the LDOs are enabled > when the PLL is enabled. > > Fixes: c6a0637460c2 ("clk: sunxi-ng: Add A64 clocks") > Signed-off-by: Icenowy Zheng > --- > As PLL-MIPI is not used before 4.20~5.0, I decide not to target this patch > on stable/mainline kernels. > > drivers/clk/sunxi-ng/ccu-sun50i-a64.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c > index 5f80eb018014..f7d297368eb2 100644 > --- a/drivers/clk/sunxi-ng/ccu-sun50i-a64.c > +++ b/drivers/clk/sunxi-ng/ccu-sun50i-a64.c > @@ -162,7 +162,7 @@ static SUNXI_CCU_NM_WITH_FRAC_GATE_LOCK(pll_gpu_clk, "pll-gpu", > #define SUN50I_A64_PLL_MIPI_REG 0x040 > > static struct ccu_nkm pll_mipi_clk = { > - .enable = BIT(31), > + .enable = BIT(31) | BIT(23) | BIT(22), Adding a comment on why those are needed in addition to the enable bit would be great :) Thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com