Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp459057imu; Mon, 5 Nov 2018 03:50:52 -0800 (PST) X-Google-Smtp-Source: AJdET5deALmCqp9uIL/IND5aJ45uT7K//tr0fWiuu+X7yDWI/9INzLQ3vC/Et/metqYswSGGLbT+ X-Received: by 2002:a62:8749:: with SMTP id i70-v6mr6973713pfe.41.1541418652405; Mon, 05 Nov 2018 03:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541418652; cv=none; d=google.com; s=arc-20160816; b=WvriHW5OXVyvqN18BjUYHklpfXA0W/fcwuItIdFooPi1ISQbTUCcZ5g32lKjiTkIPe etfXSVG8qcS/B3wIYkKquMD8GTTRSoExVkIDgUH7b0sjcXSnLdLK/cEQHE+J/Dolj0KF uQoRS9bh8Ocv0Qjj4IgW2mDcBJygJDrCupxRKfoQoevo2Fqewa3YwvjCCa+/AQ0Hv4ku baOUzFiWbhzSiXy4qlmW4NGR2AEg9KY9i+M4NBheuBv8yeP+bsM8mOqiUQSW9kmNLsyk 4v94KShxuPML7PIiNESkV7evGchUyOlIqo6U5hZfnMWSEpSRwGAUsDAiD6oz9DODZdp8 iSxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id; bh=f3Ubvu2UBl1netA/Ic8s0edgTPrGZBjiT/WZzfIUigI=; b=aNnL3kV/zqOWa4evgFww9AIFvsIZ2MOihv1NaNIvAmryRUhOX0NJ9vrG10QTPPXoiB pTV5eazNJeezTwfKZP4NhBknRz6DjShu76m0pjcY0NNF1oyTwUKEDvk8qGOZ2hWLoI8h 8YTY826viTX6UJAwUanQsc+a1R0kTKzgAfm8vJT3kX5gOHRVCNznWFHa4r5FvlDPJZun hEUX3u7IriCrSX+58nMYicGN1rYcc1JrCE2MxQP+nQ5jQ7rV48wp6kaBVRN4SOKoH5Yx 688A+RxPa4bZJGndBPc0uUNfIEv43SoM8nSz2Aau1DYjA84pAjYSHeJ9xRYAujr7L3LN Eu9Q== 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 30-v6si22569125plb.342.2018.11.05.03.50.37; Mon, 05 Nov 2018 03:50:52 -0800 (PST) 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 S1728094AbeKEVJb (ORCPT + 99 others); Mon, 5 Nov 2018 16:09:31 -0500 Received: from hermes.aosc.io ([199.195.250.187]:56131 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbeKEVJb (ORCPT ); Mon, 5 Nov 2018 16:09:31 -0500 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 379AC66FD1; Mon, 5 Nov 2018 11:50:04 +0000 (UTC) Message-ID: Subject: Re: [PATCH] Revert "clk: sunxi-ng: sun50i: h6: Add 2x fixed post-divider to MMC module clocks" From: Icenowy Zheng To: Maxime Ripard , Chen-Yu Tsai , Stephen Boyd Cc: linux-sunxi@googlegroups.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Mon, 05 Nov 2018 19:49:59 +0800 In-Reply-To: <20181105105112.5631-1-icenowy@aosc.io> References: <20181105105112.5631-1-icenowy@aosc.io> Organization: Anthon Open-Source Community Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2018-11-05一的 18:51 +0800,Icenowy Zheng写道: > This reverts commit c2ff8383cc33c2d9c169e4daf1e37a434c3bb420. > > This commit seems to lead to eMMC instability on Pine H64 board, both > model A and model B. Sorry. Please ignore this revert patch. Commit 07bafc1e3536 ("mmc: sunxi: Use new timing mode for A64 eMMC controller") seems to fixed this issue on 4.20, so the issue only appear when apply this patch onto 4.19, which is not a valid supported situation. > > Signed-off-by: Icenowy Zheng > --- > drivers/clk/sunxi-ng/ccu-sun50i-h6.c | 43 +++++++++++++------------- > -- > 1 file changed, 20 insertions(+), 23 deletions(-) > > diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-h6.c > b/drivers/clk/sunxi-ng/ccu-sun50i-h6.c > index 2193e1495086..d425b47cef17 100644 > --- a/drivers/clk/sunxi-ng/ccu-sun50i-h6.c > +++ b/drivers/clk/sunxi-ng/ccu-sun50i-h6.c > @@ -408,29 +408,26 @@ static SUNXI_CCU_GATE(bus_nand_clk, "bus-nand", > "ahb3", 0x82c, BIT(0), 0); > > static const char * const mmc_parents[] = { "osc24M", "pll-periph0- > 2x", > "pll-periph1-2x" }; > -static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc0_clk, "mmc0", > mmc_parents, 0x830, > - 0, 4, /* M */ > - 8, 2, /* N */ > - 24, 3, /* mux */ > - BIT(31), /* gate */ > - 2, /* post-div > */ > - 0); > - > -static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc1_clk, "mmc1", > mmc_parents, 0x834, > - 0, 4, /* M */ > - 8, 2, /* N */ > - 24, 3, /* mux */ > - BIT(31), /* gate */ > - 2, /* post-div > */ > - 0); > - > -static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc2_clk, "mmc2", > mmc_parents, 0x838, > - 0, 4, /* M */ > - 8, 2, /* N */ > - 24, 3, /* mux */ > - BIT(31), /* gate */ > - 2, /* post-div > */ > - 0); > +static SUNXI_CCU_MP_WITH_MUX_GATE(mmc0_clk, "mmc0", mmc_parents, > 0x830, > + 0, 4, /* M */ > + 8, 2, /* N */ > + 24, 3, /* mux */ > + BIT(31),/* gate */ > + 0); > + > +static SUNXI_CCU_MP_WITH_MUX_GATE(mmc1_clk, "mmc1", mmc_parents, > 0x834, > + 0, 4, /* M */ > + 8, 2, /* N */ > + 24, 3, /* mux */ > + BIT(31),/* gate */ > + 0); > + > +static SUNXI_CCU_MP_WITH_MUX_GATE(mmc2_clk, "mmc2", mmc_parents, > 0x838, > + 0, 4, /* M */ > + 8, 2, /* N */ > + 24, 3, /* mux */ > + BIT(31),/* gate */ > + 0); > > static SUNXI_CCU_GATE(bus_mmc0_clk, "bus-mmc0", "ahb3", 0x84c, > BIT(0), 0); > static SUNXI_CCU_GATE(bus_mmc1_clk, "bus-mmc1", "ahb3", 0x84c, > BIT(1), 0);