Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4A902C77B73 for ; Tue, 2 May 2023 09:52:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3C711846A6; Tue, 2 May 2023 11:52:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1683021164; bh=7HxYuFfpnGMyr9bLNLP9BWDGv6pmRfSzBhvZoO+UWaE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=cGi+bjYWenzGwZGTRWgvpkibNGRiR0gGPmghNDTpU4RXybC9kryo3JJp5Ac6xaViE bkj4dHQm91IlrwMINNnQQTqPnPXjAryOfuYpJA6ztyBhwdV1xd4IXF0J1aqR4bWmls knhGj7XZLPl7sxwIJRZR2mNvfXsu6C89xv1/eY+zhdrb0+D5XkxFC5dcABgqKH8CpD Vi8oqpqy3GtgueHNVpFYF0InEwlWFHw1Dgr//OJ1IgwZJgYFBp9HsDERGxCr5sSpHV RwuUHE+39d/pUbtNWZ+WaUVsGp+QqX8wd5luI9Bv+8Toz2IRDIVCNNvgMH+vYs0n0J WRGObIGsny0Ng== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id C2D29846C2; Tue, 2 May 2023 11:52:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1683021163; bh=7HxYuFfpnGMyr9bLNLP9BWDGv6pmRfSzBhvZoO+UWaE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=xeunBe6pvRwSJq8evyPVhX8afF3dnTIK0UwhpDmwI7X5sCmqU5IbcqL/yH97bZOSV 4HnIyjzFS6lbfp4cF19pE97UMY4mxQ131iBsgVlWaTN36huuZgm34hsPuJcnybfnhx AH6cS9K58tYJaS3wDB7VJ+ITZppgn/05z4C9stKJHQ8pCKPjIEsk7QAdezYuy+wTGf +M4D4Ah26DuPbqhn/JSywAUPs1x5+hcTzRy/f91jL+riVmvxsqaari3mwqy8b+BQCp TwNUU+66ndSxJBxws4FLVZ7m1boILfiEXVW9FHdnVidre6NqNy9U1+RHtDNR8cgSj4 6PiBHtteVujKQ== Message-ID: Date: Tue, 2 May 2023 11:18:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] usb: ehci-mx6: replace regulator_set_enable with *_if_allowed To: Eugen Hristev , u-boot@lists.denx.de, tharvey@gateworks.com Cc: sjg@chromium.org References: <20230502065104.32242-1-eugen.hristev@collabora.com> Content-Language: en-US From: Marek Vasut In-Reply-To: <20230502065104.32242-1-eugen.hristev@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 5/2/23 08:51, Eugen Hristev wrote: > regulator_set_enable_if_allowed already handles cases when the > regulator is already enabled, or already disabled, and does not > treat these as errors. > With this change, the driver can work correctly even if the regulator > is already taken or already disabled by another consumer. Can that ever happen for Vbus supply (the 5V coming out of USB port) ? Can you elaborate how ?