Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3694071pxb; Mon, 24 Jan 2022 15:33:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1NiNPXdh/jU9OCSFE94+X4FDmZhorTs4pq3FD2/Z7VgWDk1P5uNuPA0+VhmLFV5ZkvLPY X-Received: by 2002:a17:902:c40b:b0:14b:1cfd:aa6e with SMTP id k11-20020a170902c40b00b0014b1cfdaa6emr15549855plk.94.1643067234430; Mon, 24 Jan 2022 15:33:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067234; cv=none; d=google.com; s=arc-20160816; b=kYdxZiVPutVXktMQPAsWpk59+K3jmC7LLAKoJ9Y6zRry8slfhj3vQ8vfG5VaDgJmKi 6J/2AWa63AJoKBXGsXo9FwICv85uMNxbhGxIaO76ztVjA2z+zp5z4te8YnIEP5thvxQV z3Xk0QOYEC2vKUCwHMy7RJ5UoQMgBf8FR0/5VUBXcTa36E1lYut1BXtKysufD3u7fBFE 3LZ+xMNAAZ4rEhosGcMd39FJaRo/Ox+xQUb8Qu6fG8rJKgwOU80NtC8+jttpsayNW19g fgcssK18U+5nRb6lAx2WBMGTHmjYuq2C7jGbhY3cQlzEuTKC5SN7Nd4TrC+jSyAtcY8c P1vg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=S8Y/1AfRy2ixgFY2usaMecR7fHMyjSDs4IUT0XMUVeA=; b=y1fjfFuiRc9vyHt+YKsUcEu1hAq1BC/Zuwl5VRBRHweeCbO3MARzL5Ul7IA5VcVvoR 2TC/LaF01Fp3/WEXnTqvEh0810WHhZzCZtAeJJfh7MFbAVasOWwo8wSPwBNoRoOc9Aeb 40VMkACo3iInBpSPlD45lJJYzw+jpxn6h8+2iS6uWO6evYZp1z6TBJ7PHrbLht+0SIlg AxedF9mk1uyJkI3urGKk7by+MwNd0EiY59F5kMwN/lCLAWa6eoWatjpq7HsYp7hpu3O5 kYxofqbj+bY0cRyKTCtoC322PfZpBZsfMAKAa3Vqw7D6Q0Ca9wS2nSBjbeoNNUaK1BdI bI0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N9Od5PFs; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 1si14311408pgy.765.2022.01.24.15.33.27; Mon, 24 Jan 2022 15:33:54 -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=@linuxfoundation.org header.s=korg header.b=N9Od5PFs; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1850265AbiAXX1o (ORCPT + 99 others); Mon, 24 Jan 2022 18:27:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1587671AbiAXW30 (ORCPT ); Mon, 24 Jan 2022 17:29:26 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9071C0E531A; Mon, 24 Jan 2022 12:54:57 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7DE24B81218; Mon, 24 Jan 2022 20:54:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC4CCC340E5; Mon, 24 Jan 2022 20:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057696; bh=50brnauWdiAtjqcwyntiqDSwqdYnjzoEqcJ97b19AFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N9Od5PFscBQCk+um7p7rx3UDs4zAPiZKH37J+81aqIfBRMneAqgeIus6HMqJ7d9ZC OzAUF4+tAG/mInb/obeKSCMya2bWVcDliquVc3PaEodWV94bziKuzrtdP8oncvN8gt oWmqdbMMr7DfsmY2KnthOUMZ850o2PrcA6KhlCP0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Riedmueller , Han Xu , Miquel Raynal Subject: [PATCH 5.16 0016/1039] mtd: rawnand: gpmi: Remove explicit default gpmi clock setting for i.MX6 Date: Mon, 24 Jan 2022 19:30:05 +0100 Message-Id: <20220124184125.688761738@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stefan Riedmueller commit aa1baa0e6c1aa4872e481dce4fc7fd6f3dd8496b upstream. 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 Acked-by: Han Xu Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20211102202022.15551-1-ceggers@arri.de Signed-off-by: Greg Kroah-Hartman --- drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 9 --------- 1 file changed, 9 deletions(-) --- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c @@ -1052,15 +1052,6 @@ static int gpmi_get_clks(struct gpmi_nan 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: