Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8072494ybi; Thu, 6 Jun 2019 06:18:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5WUMQQWZGGHqCkm8mFNexA5KE4pAQzc6ieIrD/+WSJhGc2VeCVIY06euNHk1Sv7srBAWq X-Received: by 2002:aa7:8394:: with SMTP id u20mr42461463pfm.252.1559827124859; Thu, 06 Jun 2019 06:18:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559827124; cv=none; d=google.com; s=arc-20160816; b=QougwPBdq6xn6t78FBsnUTHyNYG2aB8aXRCo2QCyOXis4u9qMQqqiuX0AxlyJSN/Ef Hj3sankOCGQTymOdxMHFY8zDetivsgWQAd463Tvz3ofhmwA1qll8Czs82ehSxFqH4BTJ or/uL5C3WRmJ0STlaK15eDeORtudeR4i2YC0cSo/MDCCHRYbGZXolIvcKyQ0cwhB3OPS lH5noqFcL3cx0KrbIwA+SJ7HcprpdNR0xXB2BFtFh0WSPcdtEebYxPGbDWBwC+oWzK8+ 7kwe4lMMmZsZlE2fDH5g8zHMTn8hDb39RZCVcBx60PGQcFAQbcrxR0ojfRlT7CWOOcSB XKKA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gC+ZXsHRcWtHYzdK1j60t3pkjqy8wBUzUphatxKsJ/E=; b=UVrPQNApUdQzjwac3uEsTZVEpPA1soh8MjYUuOX1l5EBl53Cg9b/9VOK/O9UANjfXW VXUXitmXLxjPQBbDke7/atqHS5SYCP1MpydoSUmp1MpjZoJSYtDCVLJ0O9Fm4B49rJB4 /8j9Iwm+hipZTksZz0gM3tw6PPKeurBdESeHA7MLlM9l8ExRFXfhwT13ODo+Mze5bg0O TQ6GZwowIB6nrXS42wuOFSKZP4/yJBU1vTuevi9uwhhpXKqL+9G5VzqbPN6ElSozrVy/ xFhM7tt8IQFGXyzfK+eO5lajnzeUIdmlwIjmLsVCPHc5YDq5Qk2e+gvvEN3GwuhKYnPH 9yWQ== 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 az8si1735946plb.219.2019.06.06.06.18.28; Thu, 06 Jun 2019 06:18:44 -0700 (PDT) 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 S1727391AbfFFNPE (ORCPT + 99 others); Thu, 6 Jun 2019 09:15:04 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:50690 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfFFNPE (ORCPT ); Thu, 6 Jun 2019 09:15:04 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id C7E538027A; Thu, 6 Jun 2019 15:14:52 +0200 (CEST) Date: Thu, 6 Jun 2019 15:15:02 +0200 From: Pavel Machek To: pavel@ucw.cz Cc: linux-kernel@vger.kernel.org, Andrea Merello , Ulf Hansson , Sasha Levin Subject: Re: [PATCH 4.19 163/276] mmc: core: make pwrseq_emmc (partially) support sleepy GPIO controllers Message-ID: <20190606131502.GF27432@amd> References: <20190530030523.133519668@linuxfoundation.org> <20190530030535.648236068@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Mjqg7Yu+0hL22rav" Content-Disposition: inline In-Reply-To: <20190530030535.648236068@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Mjqg7Yu+0hL22rav Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! (stable removed from cc list) > static void mmc_pwrseq_emmc_reset(struct mmc_host *host) > { > struct mmc_pwrseq_emmc *pwrseq =3D to_pwrseq_emmc(host->pwrseq); > =20 > - __mmc_pwrseq_emmc_reset(pwrseq); > + gpiod_set_value_cansleep(pwrseq->reset_gpio, 1); > + udelay(1); > + gpiod_set_value_cansleep(pwrseq->reset_gpio, 0); > + udelay(200); > } > =20 If we can sleep here, does it make sense to use *sleep() here? Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --Mjqg7Yu+0hL22rav Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlz5EdYACgkQMOfwapXb+vI73QCcD0/77UA1q37UoIEdouGVsb1F apYAnjysBsjTTVLIGvh1hy1Eoe4h/vGX =xIuN -----END PGP SIGNATURE----- --Mjqg7Yu+0hL22rav--