From patchwork Tue Feb 4 18:17:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Towle X-Patchwork-Id: 3585191 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5BC8B9F2E9 for ; Wed, 5 Feb 2014 08:52:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9805720170 for ; Wed, 5 Feb 2014 08:52:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B64AE20163 for ; Wed, 5 Feb 2014 08:52:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750799AbaBEIww (ORCPT ); Wed, 5 Feb 2014 03:52:52 -0500 Received: from 82-68-191-81.dsl.posilan.com ([82.68.191.81]:49531 "EHLO xk120" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750789AbaBEIww (ORCPT ); Wed, 5 Feb 2014 03:52:52 -0500 X-Greylist: delayed 52504 seconds by postgrey-1.27 at vger.kernel.org; Wed, 05 Feb 2014 03:52:51 EST Received: from william by xk120 with local (Exim 4.80) (envelope-from ) id 1WAkZ2-0007Rs-Ku; Tue, 04 Feb 2014 18:17:40 +0000 From: William Towle To: linux-kernel@lists.codethink.co.uk, linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, laurent.pinchart+renesas@ideasonboard.com, horms+renesas@verge.net.au, magnus.damm@gmail.com, mturquette@linaro.org Cc: William Towle Subject: [PATCH 1/3] clk: rcar-h2: fix sd0/sd1 divisor table Date: Tue, 4 Feb 2014 18:17:36 +0000 Message-Id: <1391537858-28593-2-git-send-email-william.towle@codethink.co.uk> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1391537858-28593-1-git-send-email-william.towle@codethink.co.uk> References: <1391537858-28593-1-git-send-email-william.towle@codethink.co.uk> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The clk_div_table for cpg_sd01_div_table[] concurs with the manual but not with values found in the device itself (which are also the same as the ones in arch/arm/mach-shmobile/clock-r8a7790.c). Update the clk-rcar-gen2.c driver to have the same table as the one used by the mach-shmobile driver which work once further issues are fixed in the clk-rcar-gen2.c driver. Part of the fix for the following error where the driver reports the output as 1MHz but is really 97.5MHz: sh_mobile_sdhi ee100000.sd: mmc0 base at 0xee100000 clock rate 1 MHz [ben.dooks@codethink.co.uk: updated patch description] Signed-off-by: William Towle Reviewed-by: Ben Dooks --- drivers/clk/shmobile/clk-rcar-gen2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/shmobile/clk-rcar-gen2.c b/drivers/clk/shmobile/clk-rcar-gen2.c index a59ec21..df4a1e6 100644 --- a/drivers/clk/shmobile/clk-rcar-gen2.c +++ b/drivers/clk/shmobile/clk-rcar-gen2.c @@ -170,6 +170,8 @@ static const struct clk_div_table cpg_sdh_div_table[] = { }; static const struct clk_div_table cpg_sd01_div_table[] = { + { 0, 2 }, { 1, 3 }, { 2, 4 }, { 3, 6 }, + { 4, 8 }, { 5, 12 }, { 6, 16 }, { 7, 18 }, { 8, 24 }, { 10, 36 }, { 11, 48 }, { 12, 10 }, { 0, 0 }, };