Received: by 10.223.176.5 with SMTP id f5csp675076wra; Sat, 27 Jan 2018 07:39:22 -0800 (PST) X-Google-Smtp-Source: AH8x224NLXEUb0HBRYSesicX2RPt3QeF7L8nK8q0F58o2c3n4mlcX1aM/L+DWBBvwUH6zIzK7bgH X-Received: by 10.101.89.75 with SMTP id g11mr8945048pgu.28.1517067562579; Sat, 27 Jan 2018 07:39:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517067562; cv=none; d=google.com; s=arc-20160816; b=t5bMUUd3nlThhrbMkizFp6rxbtISlBws/aiqQCF6jYIV2fi3urwopex1E5gEhXF3Gp 1axD1l+5VPq1h+2i4m40Ha3CC9gr9c3nZO9g8BRaWfnMrhMTMApSomktc96C+xh/MZJB 8ntmNiIfm8e/qHRge7xidIHJApDVgEqv0GItRiVf6Olp9fMOzu8Ssp+JvNqLk5OkklP4 x6IrpnPylv6AAAUmIoF1UMnKER6axn63B7/szPOjZxNGzBMYorfGJ8ekqKqBy5ttekwg xnlhzTqEVG3lnmpo5p5VXi7fnHxeB/SWRmdjkySTobLo75uFy4Z4BFOSn6nuO3C9hjxB XHrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=F/+2k3dyPBfenteUFFIpJ3Zx2eLlOXz7fubA2DA1Uic=; b=d87SpG9huLrVRNMXRPLyc8nPbgn46hosDTSVVq9VbYlhi/z3DWLOcNlUB+iHiZK5Hl EUDyYSY+MsMmKFH4Ku1ovqfvsOtL8N0IXa0QVoprMX/SnbsZZ/U4U7qwcre/sOBBJP3N nIQI+XXQz8LC69+OHRDceWweu5Dbmhly76Jy8wdPOUipiX15OhHOZvWeBHUqutT9YT8L dSsKAQ/0EtEXIA9reYJVniKSHKlMYHoBCPrWgGtpd8YP8GvsuteF1/ZtCZi8Ecw+C56B CYh1DmT5Z5HzPRauJwcIJvh0ZfYO905AXU5huwN52kVeIlTtCDC9tkaYx31fS9Ln1InX QVzQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g80si8246221pfk.205.2018.01.27.07.38.37; Sat, 27 Jan 2018 07:39:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753021AbeA0Phj (ORCPT + 99 others); Sat, 27 Jan 2018 10:37:39 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:54323 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751626AbeA0Phh (ORCPT ); Sat, 27 Jan 2018 10:37:37 -0500 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1efSXw-0004dm-9D; Sat, 27 Jan 2018 16:37:36 +0100 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1efSXt-00040a-1u; Sat, 27 Jan 2018 16:37:33 +0100 Date: Sat, 27 Jan 2018 16:37:33 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: =?iso-8859-1?Q?Beno=EEt_Th=E9baudeau?= Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King , Mark Rutland , Rob Herring , Fabio Estevam , Sascha Hauer , Shawn Guo , Michael Nazzareno Trimarchi Subject: Re: [PATCH] ARM: dts: imx25-pinfunc: Always set SION for SD CMD Message-ID: <20180127153733.7ziaq6frli3jemc7@pengutronix.de> References: <20180127000752.2879-1-benoit.thebaudeau.dev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180127000752.2879-1-benoit.thebaudeau.dev@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 27, 2018 at 01:07:52AM +0100, Beno?t Th?baudeau wrote: > The eSDHC does not work properly if the SION bit is not set for the > bidirectional CMD signal, whatever the eSDHC instance and the selected > pad. Therefore, setting SION is mandatory for all eSDHC CMD ports. Do > this for MX25_PAD_*__SD*_CMD in imx25-pinfunc.h in order to enforce this > behavior for all boards. > > This had already been done for eSDHC1, but not for eSDHC2. Also, define > MX25_PAD_FEC_MDC__SDHC2_CMD so that all the possible cases are covered > from now on. There is an inconsistency in the naming. The eSDHC1 CMD constants are named: MX25_PAD_SD1_CMD__SD1_CMD The reference calls this: CMD of instance: esdhc1. The register name is correct though. Not sure it's worth to fix this to use consistent naming (which would result in: MX25_PAD_SD1_CMD__ESDHC1_CMD which looks ugly, too). > Signed-off-by: Beno?t Th?baudeau > --- > arch/arm/boot/dts/imx25-pinfunc.h | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/boot/dts/imx25-pinfunc.h b/arch/arm/boot/dts/imx25-pinfunc.h > index 6c63dca1b9b8..6cc71f7e1baa 100644 > --- a/arch/arm/boot/dts/imx25-pinfunc.h > +++ b/arch/arm/boot/dts/imx25-pinfunc.h > @@ -236,7 +236,8 @@ > #define MX25_PAD_LD8__LD8 0x0e8 0x2e0 0x000 0x00 0x000 > #define MX25_PAD_LD8__UART4_RXD 0x0e8 0x2e0 0x570 0x02 0x000 > #define MX25_PAD_LD8__FEC_TX_ERR 0x0e8 0x2e0 0x000 0x05 0x000 > -#define MX25_PAD_LD8__SDHC2_CMD 0x0e8 0x2e0 0x4e0 0x06 0x000 > +/* The eSDHC cannot work if SION is not set for the bidirectional CMD signal. */ Maybe reference the more verbose comment for MX25_PAD_SD1_CMD__SD1_CMD here? > +#define MX25_PAD_LD8__SDHC2_CMD 0x0e8 0x2e0 0x4e0 0x16 0x000 > > #define MX25_PAD_LD9__LD9 0x0ec 0x2e4 0x000 0x00 0x000 > #define MX25_PAD_LD9__UART4_TXD 0x0ec 0x2e4 0x000 0x02 0x000 > @@ -316,7 +317,8 @@ > #define MX25_PAD_CSI_D5__CSPI3_RDY 0x12c 0x324 0x000 0x07 0x000 > > #define MX25_PAD_CSI_D6__CSI_D6 0x130 0x328 0x000 0x00 0x000 > -#define MX25_PAD_CSI_D6__SDHC2_CMD 0x130 0x328 0x4e0 0x02 0x001 > +/* The eSDHC cannot work if SION is not set for the bidirectional CMD signal. */ > +#define MX25_PAD_CSI_D6__SDHC2_CMD 0x130 0x328 0x4e0 0x12 0x001 > #define MX25_PAD_CSI_D6__SIM1_PD0 0x130 0x328 0x000 0x04 0x000 > #define MX25_PAD_CSI_D6__GPIO_1_31 0x130 0x328 0x000 0x05 0x000 > > @@ -496,6 +498,8 @@ > #define MX25_PAD_KPP_COL3__GPIO_3_4 0x1c4 0x3bc 0x000 0x05 0x000 > > #define MX25_PAD_FEC_MDC__FEC_MDC 0x1c8 0x3c0 0x000 0x00 0x000 > +/* The eSDHC cannot work if SION is not set for the bidirectional CMD signal. */ > +#define MX25_PAD_FEC_MDC__SDHC2_CMD 0x1c8 0x3c0 0x4e0 0x11 0x002 > #define MX25_PAD_FEC_MDC__AUD4_TXD 0x1c8 0x3c0 0x464 0x02 0x001 > #define MX25_PAD_FEC_MDC__GPIO_3_5 0x1c8 0x3c0 0x000 0x05 0x000 I double checked the numbers, and these seem all to be correct. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |