Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4680638pxb; Tue, 2 Nov 2021 13:55:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJaTUeG9hGM+qqXBknvbX5O5GHWYbIFoWmLm6SNglwLtrbHqyila3/5+NeUaavZNYrMPNg X-Received: by 2002:a05:6e02:bf4:: with SMTP id d20mr27434848ilu.146.1635886531965; Tue, 02 Nov 2021 13:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635886531; cv=none; d=google.com; s=arc-20160816; b=bWrq2h4QXOrch/E4rkH18VHAiPCImtvLZVuVNGREkRBD6xMo7Zll4R5wXvi0QdEvsg hxNvn7nYwfLMIGdFqoml55yyKBSpjeZqfCw/u229Q+AWb2bmQ4tSBV81RlsigreTjFwT 5IhSAZ18DT1WzNvPK3DOk1tyAAd9dB3Sca4Zu719YMzaiSyrpD6PowvlQHg/FW5GFPb3 C3xel6mAyDBzCFRbmWGP7eGBC09+L2/6HFX6CsVodLV0sN8qt9fUiINT4bAgGPFX5ZGv 1vcxQu6K9LWmPWL2l67g1J5ZpV7+Ws4YGFSqk7CiQB+3v5yhkgaWGL2RVyDJdPCp4TOS lJUw== 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 :message-id:date:subject:cc:to:from; bh=PQ2XAntdqGhuTdlrxEb3Rnq9Zs8GRbvYN6YF3psg7Fc=; b=HY9Kgb2nc305nQZJCUsgr4PAny2ADm7RXdBMfy+hyPSa/J7TOHpm5VmmTf2rb1xvY1 /C+Od9ITf97K5ECIa0nQB+47mQit9O6VrkjAZWFcHhi73cbRJFOWz9uTsrwZPky3GoIy hpFMyWllD9jkKNx17XSuDYLDsknhiDT9Av4b+wS9R2uiMGjbuAiG3d92FJnE0Lm8LZOV VRgzul6/gslADtnmX/gfdJGN5horJJYqY2GermIYNdUbYpgeWKkh/HY9OlqrLZXjbCjL SZS/9oTz9ranoAAME+LycWY9KRtP0vWTjAln/VBNLIZGfajoa5IWKoVxf0wuiR51kjxM KQww== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k4si25316ilv.55.2021.11.02.13.55.19; Tue, 02 Nov 2021 13:55:31 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231240AbhKBUzX (ORCPT + 99 others); Tue, 2 Nov 2021 16:55:23 -0400 Received: from mailout05.rmx.de ([94.199.90.90]:53954 "EHLO mailout05.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230061AbhKBUzW (ORCPT ); Tue, 2 Nov 2021 16:55:22 -0400 X-Greylist: delayed 1890 seconds by postgrey-1.27 at vger.kernel.org; Tue, 02 Nov 2021 16:55:20 EDT Received: from kdin01.retarus.com (kdin01.dmz1.retloc [172.19.17.48]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout05.rmx.de (Postfix) with ESMTPS id 4HkLrn26B9z9tv3; Tue, 2 Nov 2021 21:21:13 +0100 (CET) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin01.retarus.com (Postfix) with ESMTPS id 4HkLrL1hc1z2xhq; Tue, 2 Nov 2021 21:20:50 +0100 (CET) Received: from N95HX1G2.arri.de (192.168.54.19) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.498.0; Tue, 2 Nov 2021 21:20:49 +0100 From: Christian Eggers To: Michael Trimarchi , Miquel Raynal , Stefan Riedmueller , Han Xu , Greg Ungerer CC: Sascha Hauer , Christian Hemp , Boris Brezillon , Richard Weinberger , Vignesh Raghavendra , , , Stefan Riedmueller , Subject: [PATCH 1/2] mtd: rawnand: gpmi: Remove explicit default gpmi clock setting for i.MX6 Date: Tue, 2 Nov 2021 21:20:21 +0100 Message-ID: <20211102202022.15551-1-ceggers@arri.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.54.19] X-RMX-ID: 20211102-212050-vNRqcPQyngmv-0@out01.hq X-RMX-SOURCE: 217.111.95.66 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Riedmueller There is no need to explicitly set the default gpmi clock rate during boot for the i.MX 6 since this is done during nand_detect anyway. Signed-off-by: Stefan Riedmueller Cc: stable@vger.kernel.org --- @stable: This patch fixes a bug because this (superfluous) call to clk_set_rate() misses the required clock gating. The resulting clock glitches can prevent the system from booting. Changelog: ----------- RFC --> v1 - Cc: stable@vger.kernel.org drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c index 4d08e4ab5c1b..a1f7000f033e 100644 --- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c @@ -1034,15 +1034,6 @@ static int gpmi_get_clks(struct gpmi_nand_data *this) r->clock[i] = clk; } - if (GPMI_IS_MX6(this)) - /* - * Set the default value for the gpmi clock. - * - * If you want to use the ONFI nand which is in the - * Synchronous Mode, you should change the clock as you need. - */ - clk_set_rate(r->clock[0], 22000000); - return 0; err_clock: -- Christian Eggers Embedded software developer Arnold & Richter Cine Technik GmbH & Co. Betriebs KG Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRA 57918 Persoenlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRB 54477 Geschaeftsfuehrer: Dr. Michael Neuhaeuser; Stephan Schenk; Walter Trauninger; Markus Zeiler