Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751826AbaK1OqS (ORCPT ); Fri, 28 Nov 2014 09:46:18 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:42108 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751386AbaK1OqQ (ORCPT ); Fri, 28 Nov 2014 09:46:16 -0500 Date: Fri, 28 Nov 2014 14:45:58 +0000 From: Mark Brown To: Ulf Hansson Cc: NeilBrown , Chris Ball , "devicetree@vger.kernel.org" , linux-mmc , "linux-kernel@vger.kernel.org" , GTA04 owners , Doug Anderson , Olof Johansson , Arnd Bergmann Message-ID: <20141128144558.GN7712@sirena.org.uk> References: <20141108000919.5629.55381.stgit@notabene.brown> <20141108001411.5629.25179.stgit@notabene.brown> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h73OigHGubxJv9Jx" Content-Disposition: inline In-Reply-To: X-Cookie: Celebrity voices impersonated. User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH 1/2] mmc: core: allow a reset gpio to be configured. X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --h73OigHGubxJv9Jx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Nov 28, 2014 at 12:56:33PM +0100, Ulf Hansson wrote: > On 8 November 2014 at 01:14, NeilBrown wrote: > > If the regulator supplying an SDIO device is shared > > with another device, the turning the regulator 'on' and 'off' > > will not actually cycle power and so will not reset > > the device. > > This is particularly a problem for some wi2si wireless modules which > > have a BT module on chip and can share power lines. > > Without the power-cycle, subsequent reset commands fail. > > So allow a 'reset' gpio to be specified. If provided, the > > line is asserted during power-up. > There have been several attempts to fix similar issues as this patch > does. The latest one I posted a few month ago, which wasn't accepted. > http://comments.gmane.org/gmane.linux.power-management.general/46635 Note also that if the issue is about needing to take different actions depending on if the power actually got pulled you can request notification from the regulator API when things actually happen. --h73OigHGubxJv9Jx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJUeIqlAAoJECTWi3JdVIfQPKcH/1dJqUWpSHTA5HKz0w05Y7GY WAlWW21PWs6zAQUY1NC3Aoa/z5R5KA1QB/FS0LKAxmnWOncn5N0+9Pp7tpllhNSt Nl8/kgFvx37OrWzfHoQy5J+zY87man/mwc8FKZAjLo7+yuQwMibZIO8JYpA/w5Aa iEE+JakEuU8Q1EQjji/jspzkxNuBXbPgE+mleh225zIaWDS/jjeVRoYyXtMizgwU U4qZ6gd2e2SOEeQVPaipDM1r3+4tnZtC2OX7oRqxphNUxDrbBa1tkKP1xdpA+urV YhL6DaNsm9S0dTDSGZZTld0dP8V3T4UWtpMnNo6sdVmrtfe4PrIJ0hGmt4jJFwY= =2Zhc -----END PGP SIGNATURE----- --h73OigHGubxJv9Jx-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/