Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2565788imu; Thu, 17 Jan 2019 17:10:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN5HC8VVl7h5cOhfGDMS9yDhvGF9CfkgKYLEswH9oQxw74uAZ7ff5F2zAtcFA94cXBTRHUUt X-Received: by 2002:a62:29c3:: with SMTP id p186mr17443053pfp.117.1547773857683; Thu, 17 Jan 2019 17:10:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547773857; cv=none; d=google.com; s=arc-20160816; b=y7QcDaH2tZjxVkYC0KePdJqWh47CYJjiXSNnM+GkwFc19+E3JA9itcA3duwohd+ADT 49DMH4ZfuQb9AR/NZfK/EwkENhzxNCCnpomPrJmmVZfxoH1Nq9MNXmJTLQFPU47VTTHG udAw/zZunrW7H8DznqE1RyByZg1J6aJNXSHhh5LUiFfZ9sEA/+cYQ3pN7zWva/LPahVF HAj7jtSnaWqSicyf7D+ZUItR7033Fv1JAPrqpkRxvCBt2M3ogJOnBbXy0oL1lFmoi7J9 lefMaWunIIcAsEPlt5yP2b53OVdYf330OFxra2ibo8f10vXCVR8TizrgL0B/lBVkozt5 Svdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=LdKmC0sOyR3V2mJtKk2VStVW2W3EwccGJghrjd+po30=; b=wnrvKr/+hQ4uwisIZCrVIoO8w6Neo+YNGEbDoY/oHdjmKe74DI4yNeBVMRYL9ZOk1E orERbKOP2OFnazWmOnJC3G5VNbR6/npBLaclf5D0aPzjv1Y11TTyZAjmjUI/5ffqgDY/ szuV/6nwbmUW/rCDvzp0EOmJegfq0qGnObxvp2QH88q9WK/8r6ddy7lkbrIf6AN2eTel ZtIOU/V2wuYpVEMFqXTgpdUlQZrWtYCDx10dG/vDUXlkurDlfG2LrNbyhE4l2m9qxKhC VeAKJGSeGDbxEH6ZYBznGdxhfJoBfpMClinGgaeD8o+CUcX3G0UP/XIVM+jJrlsGVRDB TlMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=xMnQQ4R7; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s35si3308093pgk.392.2019.01.17.17.10.39; Thu, 17 Jan 2019 17:10:57 -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; dkim=fail header.i=@crapouillou.net header.s=mail header.b=xMnQQ4R7; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727090AbfARBHV (ORCPT + 99 others); Thu, 17 Jan 2019 20:07:21 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:33358 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfARBHU (ORCPT ); Thu, 17 Jan 2019 20:07:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1547773638; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=LdKmC0sOyR3V2mJtKk2VStVW2W3EwccGJghrjd+po30=; b=xMnQQ4R7KuLpk2Pch64tLORPLEPzAbzc/74NPOr6Q58I4KDHyQKIAsOmUaA/FOEVOhmClP AUmWlALF0ITh/YudOx8GruETDwiKOyxEL44oicuNTdQ0dMFlAIWPnenhpEf87cs58rKER2 guDy0iWYulVghW66ZFfoqyA1EF+JMro= From: Paul Cercueil To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , James Hogan , Miquel Raynal , Harvey Hunt Cc: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Paul Cercueil Subject: [PATCH 6/8] mtd: rawnand: jz4780-bch: Don't set clock rate in driver Date: Thu, 17 Jan 2019 22:06:32 -0300 Message-Id: <20190118010634.27399-6-paul@crapouillou.net> In-Reply-To: <20190118010634.27399-1-paul@crapouillou.net> References: <20190118010634.27399-1-paul@crapouillou.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This should be done in devicetree. Besides, it prevents us from supporting other SoCs which don't use the same clock frequency for the BCH hardware. Signed-off-by: Paul Cercueil --- drivers/mtd/nand/raw/jz4780_bch.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/mtd/nand/raw/jz4780_bch.c b/drivers/mtd/nand/raw/jz4780_bch.c index 7e4e5e627603..161d3821e1c4 100644 --- a/drivers/mtd/nand/raw/jz4780_bch.c +++ b/drivers/mtd/nand/raw/jz4780_bch.c @@ -57,8 +57,6 @@ #define BCH_BHINT_UNCOR BIT(1) #define BCH_BHINT_ERR BIT(0) -#define BCH_CLK_RATE (200 * 1000 * 1000) - /* Timeout for BCH calculation/correction. */ #define BCH_TIMEOUT_US 100000 @@ -348,8 +346,6 @@ static int jz4780_bch_probe(struct platform_device *pdev) return PTR_ERR(bch->clk); } - clk_set_rate(bch->clk, BCH_CLK_RATE); - mutex_init(&bch->lock); bch->dev = dev; -- 2.11.0