From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09457C3A59B for ; Mon, 2 Sep 2019 07:19:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CC2D1214AE for ; Mon, 2 Sep 2019 07:19:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cvDvC5Yt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC2D1214AE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:References:In-Reply-To:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Bm2VFSywtjLAusGfXx1Al2YkRn4OBFxHEaHGbLVO0HU=; b=cvDvC5Yt20u4JnNwInoCGiDK/ 5aw24PLhDTIRVB4CofNQloEnFvey/KcmsxJDAxvcXjfoaHk3pGr0xSudTfPEPpscHj4voFgdAEmir vHlD6koQOmnV+aw1j6B0D+TmdqtPh12IEsEqVayIRiwDjteLSySFG/qF3oULAhEpnviVztgdcxUjc zoWqcO3M4odQM8fepR/QpMhFseChF60/7T9ciEdSs/D/8iMW5jv7pSjahvD/W8BbiyWaFWi5QcTxj XYmYW5eL6MN44G6+LQRvvDXzaNgXyI7Lw9h8cnG+N5WkEckb9nk+hHCcbdcy4Ii8AuBw/Ea7dsnw5 +h5MU3eRA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i4gcA-0001FA-UK; Mon, 02 Sep 2019 07:19:02 +0000 Received: from mail-out.m-online.net ([212.18.0.9]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i4gc6-0001BL-Hl for linux-arm-kernel@lists.infradead.org; Mon, 02 Sep 2019 07:19:00 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46MLzf3gM2z1rLFL; Mon, 2 Sep 2019 09:18:52 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46MLzc4myWz1qqkT; Mon, 2 Sep 2019 09:18:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id iRjT9HkWJF2O; Mon, 2 Sep 2019 09:18:51 +0200 (CEST) X-Auth-Info: 1fofoDkj/sSISQ7mkFsrw3FNiILFdTXV4XFMgUK3HCY= Received: from jawa (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 2 Sep 2019 09:18:51 +0200 (CEST) Date: Mon, 2 Sep 2019 09:18:44 +0200 From: Lukasz Majewski To: Alexander Sverdlin Subject: Re: [PATCH] spi: ep93xx: Repair SPI CS lookup tables Message-ID: <20190902091844.7151e0c7@jawa> In-Reply-To: <20190831180402.10008-1-alexander.sverdlin@gmail.com> References: <20190831180402.10008-1-alexander.sverdlin@gmail.com> Organization: denx.de X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190902_001858_892302_4097DDB3 X-CRM114-Status: GOOD ( 18.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hartley Sweeten , Linus Walleij , Russell King , stable@vger.kernel.org, linux-spi@vger.kernel.org, linux-gpio@vger.kernel.org, Mark Brown , linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============5184780899301279412==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============5184780899301279412== Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/.E1ugfHjC1jx=p6Oc2PH0Ak"; protocol="application/pgp-signature" --Sig_/.E1ugfHjC1jx=p6Oc2PH0Ak Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 31 Aug 2019 20:04:02 +0200 Alexander Sverdlin wrote: > The actual device name of the SPI controller being registered on > EP93xx is "spi0" (as seen by gpiod_find_lookup_table()). This patch > fixes all relevant lookup tables and the following failure (seen on > EDB9302): >=20 > ep93xx-spi ep93xx-spi.0: failed to register SPI master > ep93xx-spi: probe of ep93xx-spi.0 failed with error -22 >=20 > Fixes: 1dfbf334f1236 ("spi: ep93xx: Convert to use CS GPIO > descriptors") Cc: stable@vger.kernel.org > Signed-off-by: Alexander Sverdlin > --- > arch/arm/mach-ep93xx/edb93xx.c | 2 +- > arch/arm/mach-ep93xx/simone.c | 2 +- > arch/arm/mach-ep93xx/ts72xx.c | 4 ++-- > arch/arm/mach-ep93xx/vision_ep9307.c | 2 +- > 4 files changed, 5 insertions(+), 5 deletions(-) >=20 > diff --git a/arch/arm/mach-ep93xx/edb93xx.c > b/arch/arm/mach-ep93xx/edb93xx.c index 1f0da76a39de..7b7280c21ee0 > 100644 --- a/arch/arm/mach-ep93xx/edb93xx.c > +++ b/arch/arm/mach-ep93xx/edb93xx.c > @@ -103,7 +103,7 @@ static struct spi_board_info > edb93xx_spi_board_info[] __initdata =3D { }; > =20 > static struct gpiod_lookup_table edb93xx_spi_cs_gpio_table =3D { > - .dev_id =3D "ep93xx-spi.0", > + .dev_id =3D "spi0", > .table =3D { > GPIO_LOOKUP("A", 6, "cs", GPIO_ACTIVE_LOW), > { }, > diff --git a/arch/arm/mach-ep93xx/simone.c > b/arch/arm/mach-ep93xx/simone.c index e2658e22bba1..8a53b74dc4b2 > 100644 --- a/arch/arm/mach-ep93xx/simone.c > +++ b/arch/arm/mach-ep93xx/simone.c > @@ -73,7 +73,7 @@ static struct spi_board_info simone_spi_devices[] > __initdata =3D { > * v1.3 parts will still work, since the signal on SFRMOUT is > automatic. */ > static struct gpiod_lookup_table simone_spi_cs_gpio_table =3D { > - .dev_id =3D "ep93xx-spi.0", > + .dev_id =3D "spi0", > .table =3D { > GPIO_LOOKUP("A", 1, "cs", GPIO_ACTIVE_LOW), > { }, > diff --git a/arch/arm/mach-ep93xx/ts72xx.c > b/arch/arm/mach-ep93xx/ts72xx.c index 582e06e104fd..e0e1b11032f1 > 100644 --- a/arch/arm/mach-ep93xx/ts72xx.c > +++ b/arch/arm/mach-ep93xx/ts72xx.c > @@ -267,7 +267,7 @@ static struct spi_board_info bk3_spi_board_info[] > __initdata =3D { > * goes through CPLD > */ > static struct gpiod_lookup_table bk3_spi_cs_gpio_table =3D { > - .dev_id =3D "ep93xx-spi.0", > + .dev_id =3D "spi0", > .table =3D { > GPIO_LOOKUP("F", 3, "cs", GPIO_ACTIVE_LOW), > { }, > @@ -316,7 +316,7 @@ static struct spi_board_info ts72xx_spi_devices[] > __initdata =3D { }; > =20 > static struct gpiod_lookup_table ts72xx_spi_cs_gpio_table =3D { > - .dev_id =3D "ep93xx-spi.0", > + .dev_id =3D "spi0", > .table =3D { > /* DIO_17 */ > GPIO_LOOKUP("F", 2, "cs", GPIO_ACTIVE_LOW), > diff --git a/arch/arm/mach-ep93xx/vision_ep9307.c > b/arch/arm/mach-ep93xx/vision_ep9307.c index > a88a1d807b32..cbcba3136d74 100644 --- > a/arch/arm/mach-ep93xx/vision_ep9307.c +++ > b/arch/arm/mach-ep93xx/vision_ep9307.c @@ -242,7 +242,7 @@ static > struct spi_board_info vision_spi_board_info[] __initdata =3D { }; > =20 > static struct gpiod_lookup_table vision_spi_cs_gpio_table =3D { > - .dev_id =3D "ep93xx-spi.0", > + .dev_id =3D "spi0", > .table =3D { > GPIO_LOOKUP_IDX("A", 6, "cs", 0, GPIO_ACTIVE_LOW), > GPIO_LOOKUP_IDX("A", 7, "cs", 1, GPIO_ACTIVE_LOW), Reviewed-by: Lukasz Majewski Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --Sig_/.E1ugfHjC1jx=p6Oc2PH0Ak Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAl1swlQACgkQAR8vZIA0 zr3+WQf/XIsR1DvcVHYrv/AqG2VMK2nHuEmL7pQRG+F6npsf4ZtJA1itjJFaJTfK Fto3DNWJT/AILpKyWiitz37tEjWWTBrlnFauCTmIWQImCw3BYVhMLUs/I3Nabup5 OnBaFb2mBMJaCc0kLFL+mWxq3tU0fBwJKYA0zbsPQf/0gIUL6s/ywpdwql87uLfW H+0B4xofjPQavzt/wy5K0yo4lYO9g8UxOSJn8e0CSJh6u9NVzqidcmmBSCw1vSC5 6D0di0GiJp9nQLxO+DrEnvy6F6ia3Up3CqQqk36mhZaFIHb4jQtTAAvupvRPFCxF BgI8cjOVEkbIIwl6J8C91BOwOdQpmg== =8uiE -----END PGP SIGNATURE----- --Sig_/.E1ugfHjC1jx=p6Oc2PH0Ak-- --===============5184780899301279412== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============5184780899301279412==--