From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423294AbbEOVWn (ORCPT ); Fri, 15 May 2015 17:22:43 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:38485 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422770AbbEOVWl (ORCPT ); Fri, 15 May 2015 17:22:41 -0400 From: Pali =?utf-8?q?Roh=C3=A1r?= To: Arnd Bergmann Subject: Re: [PATCH 1/2] mmc: omap_hsmmc: Add support for slot-name property in DT Date: Fri, 15 May 2015 23:22:37 +0200 User-Agent: KMail/1.13.7 (Linux/3.13.0-53-generic; KDE/4.14.2; x86_64; ; ) Cc: =?utf-8?q?Beno=C3=AEt_Cousson?= , Tony Lindgren , Ulf Hansson , linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org References: <1431724489-32359-1-git-send-email-pali.rohar@gmail.com> <1431724489-32359-2-git-send-email-pali.rohar@gmail.com> <2523437.y90mKuWhc3@wuerfel> In-Reply-To: <2523437.y90mKuWhc3@wuerfel> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3560218.aGnm4gBWPX"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201505152322.37739@pali> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart3560218.aGnm4gBWPX Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Friday 15 May 2015 23:19:44 Arnd Bergmann wrote: > On Friday 15 May 2015 23:14:48 Pali Roh=C3=A1r wrote: > > diff --git a/drivers/mmc/host/omap_hsmmc.c > > b/drivers/mmc/host/omap_hsmmc.c index 9df2b68..f6073dd 100644 > > --- a/drivers/mmc/host/omap_hsmmc.c > > +++ b/drivers/mmc/host/omap_hsmmc.c > > @@ -1901,6 +1901,8 @@ static struct omap_hsmmc_platform_data > > *of_get_hsmmc_pdata(struct device *dev) > >=20 > > if (of_find_property(np, "ti,needs-special-hs-handling", > > NULL)) > > =20 > > pdata->features |=3D HSMMC_HAS_HSPE_SUPPORT; > >=20 > > + of_property_read_string(np, "slot-name", &pdata->name); > > + > >=20 > > return pdata; > > =20 > > } >=20 > This property needs to be documented in > Documentation/devicetree/bindings/mmc/mmc.txt and preferably the > implementation moved into mmc_of_parse. >=20 > We should not have an interface like this specific to one driver. >=20 > Arnd Interface is already present for platform data code (which do not use=20 DT). So "pdata->name" is not DT specific... =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart3560218.aGnm4gBWPX Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlVWY50ACgkQi/DJPQPkQ1JuqQCfTpymZYvKrlSduC1eKQZLNIVw q+IAoJiwJhZ1CmcnZyKA9L+A1mKBKM4/ =O7Rl -----END PGP SIGNATURE----- --nextPart3560218.aGnm4gBWPX--