From patchwork Fri Sep 8 18:42:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniy Paltsev X-Patchwork-Id: 811797 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fM43M7TK"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="Jp7KQBCx"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xpmSK1NDfz9s82 for ; Sat, 9 Sep 2017 04:44:01 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=g64glq/Aj0gZ9afV9+nP1M2mvFMX642pyKFRLj3xkrQ=; b=fM4 3M7TK3zFAEIbEKIe4Y9z28R3vM6b5T5RlYMv2KlXscawnSA7vdvvJA3REnLQRINPdqgVfYK5Boo14 xEbtI2fGdJQMwnfHMJBxweWada+SCBKswFfE1aVvp7FL9dav1Qt3+RCisQqzSle6AyVTgZIighDXD 04hcsuSgP/UsQZKAm3zHJoO3R8IKxVQuVZ3MJFuaA8XO9MP5U/4A+sFoNH5CHpiDrmixlWwssGRVi SAOS+4MPbN3H4fnCJvpsC8tu/idmYHXFIKB/Hi1MZchul1RpOPNzm6GKb1upoP7WIP+VoxXeLICq2 UaGhENttwHbmEbESbKd5/E5SeGUhCWQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dqOFz-0004j6-DE; Fri, 08 Sep 2017 18:43:59 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dqOFF-00048I-4p for linux-snps-arc@bombadil.infradead.org; Fri, 08 Sep 2017 18:43:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=u5JLNcyn4HDOcA1+W+Elw9+pyFuV8Q2+2Olxu7VU7Fg=; b=Jp7KQBCxReQhy+9k0X/v2j9L2 iAv2ZuYbAtU2whW5Can+rZo2xyqJfzfwIAuW4Ro79xjzlkgMX+Bgyi5LjhGHibtr+GMnN+tygSRxR aJLLauywvB5cLT7Xi4YM4NeuA1o3IAEYVxznACeb87aZotMn+5n8MnBK/40dZy3Ud5F/ZIzUxUR8H XJopkmP3YzDjAkprfRvl0x3i/IUFAt/DD7ForBbCsSWlQZz0SfXhYrdmF4mJ0058ytDifFIOHzonx VAbJLbn/iuLkyZ+5elsB50y/gIME4TNU9NQu2seKroQ1YToAS+1W7UjByR0Y/qxE6KrEZibFg64lc WEznWe/Dg==; Received: from us01smtprelay-2.synopsys.com ([198.182.47.9] helo=smtprelay.synopsys.com) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dqOF5-0007Hx-0F for linux-snps-arc@lists.infradead.org; Fri, 08 Sep 2017 18:43:03 +0000 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 6BDE924E01CD; Fri, 8 Sep 2017 11:42:37 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 514C1AD4; Fri, 8 Sep 2017 11:42:37 -0700 (PDT) Received: from localhost.internal.synopsys.com (unknown [10.121.8.106]) by mailhost.synopsys.com (Postfix) with ESMTP id 74EADA9D; Fri, 8 Sep 2017 11:42:35 -0700 (PDT) From: Eugeniy Paltsev To: linux-snps-arc@lists.infradead.org Subject: [PATCH] ARC: HSDK: DTS: Temporary fix of sdio ciu frequency Date: Fri, 8 Sep 2017 21:42:33 +0300 Message-Id: <20170908184233.1779-1-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.9.3 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.47.9 listed in list.dnswl.org] X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Vineet Gupta , Alexey Brodkin , linux-kernel@vger.kernel.org, Rob Herring , Eugeniy Paltsev MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org DW sdio controller has external ciu clock devider controlled via register in SDIO IP. Due to its unexpected default value (it should devide by 1 but it devides by 8) SDIO IP uses wrong ciu clock and works unstable (see STAR 9001204800) So add temporary fix and change clock frequency from 100000000 to 12500000 Hz until we fix dw sdio driver itself. Signed-off-by: Eugeniy Paltsev --- arch/arc/boot/dts/hsdk.dts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts index 8412669..b922f3f 100644 --- a/arch/arc/boot/dts/hsdk.dts +++ b/arch/arc/boot/dts/hsdk.dts @@ -127,7 +127,17 @@ mmcclk_ciu: mmcclk-ciu { compatible = "fixed-clock"; - clock-frequency = <100000000>; + /* + * DW sdio controller has external ciu clock divider + * controlled via register in SDIO IP. Due to its + * unexpected default value (it should devide by 1 + * but it devides by 8) SDIO IP uses wrong clock and + * works unstable (see STAR 9001204800) + * So add temporary fix and change clock frequency + * from 100000000 to 12500000 Hz until we fix dw sdio + * driver itself. + */ + clock-frequency = <12500000>; #clock-cells = <0>; };