From patchwork Tue Jan 10 22:30:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 9508673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5194B601E9 for ; Tue, 10 Jan 2017 22:30:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42A032857E for ; Tue, 10 Jan 2017 22:30:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 354C7285B7; Tue, 10 Jan 2017 22:30:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AF862857E for ; Tue, 10 Jan 2017 22:30:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755682AbdAJWat (ORCPT ); Tue, 10 Jan 2017 17:30:49 -0500 Received: from www.zeus03.de ([194.117.254.33]:33972 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755664AbdAJWat (ORCPT ); Tue, 10 Jan 2017 17:30:49 -0500 Received: (qmail 26719 invoked from network); 10 Jan 2017 23:30:44 +0100 Received: from p54b33b05.dip0.t-ipconnect.de (HELO localhost) (l3s3148p1@84.179.59.5) by mail.zeus03.de with ESMTPSA (ECDHE-RSA-AES256-GCM-SHA384 encrypted, authenticated); 10 Jan 2017 23:30:44 +0100 Date: Tue, 10 Jan 2017 23:30:43 +0100 From: Wolfram Sang To: Niklas =?utf-8?Q?S=C3=B6derlund?= Cc: Simon Horman , Wolfram Sang , Ulf Hansson , Magnus Damm , linux-mmc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Ai Kyuse Subject: Re: [PATCH v8 6/6] mmc: sh_mobile_sdhi: Add tuning support Message-ID: <20170110223043.GA2710@katana> References: <1478182564-18762-1-git-send-email-horms+renesas@verge.net.au> <1478182564-18762-7-git-send-email-horms+renesas@verge.net.au> <20170110210848.GA25542@bigcity.dyn.berto.se> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170110210848.GA25542@bigcity.dyn.berto.se> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP > Oddly enough the error are only printed when I insert the SD card in the > mmc0 slot. I can insert/eject the card multiple times in mmc1 and no > error but the first insertion in mmc0 and boom. Only difference I can > see are the clock speed between mmc0 and mmc1. Can you try this patch? From: Wolfram Sang Date: Sun, 13 Nov 2016 11:10:09 +0100 Subject: [PATCH] pinctrl: pfc: r8a7795: WIP: hardcode TDSEL value Otherwise, AC-180M won't get probed with SDR50 and EMMY-W1 has more tuning errors with SDR104. Signed-off-by: Wolfram Sang --- drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c index 3f58bfd676ce94..3e3f7585efe8b3 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c @@ -5416,6 +5416,9 @@ static int r8a7795_pinmux_init(struct sh_pfc *pfc) pr_info("%s: R-Car H3 >= ES2.0\n", __func__); // FIXME Fixup r8a7795_pinmux_info for ES2.0 } + +#define TDSEL 0xe60603c0 + sh_pfc_write_reg(pfc, TDSEL, 32, 0xc3); return 0; }