Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1404618pxj; Fri, 21 May 2021 13:26:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyj/KGdHrBGGFDmSV8kpQxC+vy5ZwWckKW8hJM8JLQyhDtDlIbR6E806yCq5fBj1VLbxTPO X-Received: by 2002:a5d:87c4:: with SMTP id q4mr542393ios.141.1621628798071; Fri, 21 May 2021 13:26:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621628798; cv=none; d=google.com; s=arc-20160816; b=ffkDwNcDSJZcpFTgQ1LEOrzXy/d5n3jj+Qmp1r8iDF/Z+PLzHGfCA9VXUGlmeH7HrL TnznpmEXa2EVdu88JJJ8+yxiXOUhnmpdUTKHKf9guiweTN0VS9cq/w1/qmIy7aKVATno g3QIxMQgqgA6aOj71Z+lWz8rpLYnu9qTRiV/84N1rL7Vu3F3pYVFOCVJtT7O7Ray+Ia+ Q9NXsvvjpIzemD9sPMgJUw2/tXV13asxMYUoYdDI8F07BQ+uNUjiQ6Iyj86XBP/Ne5IO 3UegdsD73ShllMWPy2yMTxeP4cfktHZ9hszcOIr9vXQGu+ffPCcaj9nH1VrMi6sOoJo4 2gww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=55jK2hW3Q1UDg4CxhHuVx3ZhYtkWghRVoTKNLFgwR6k=; b=hEXIAKja5SbBkfjXseznRQR87KAfn0yOKg6LAtx2W/6581USMJMi7IGVrh/9fQ5FQy fjGje1X7wBsK8PVWGi8ZXEszAcAfS9i0OqU9xVQKwK/CgIXpcKPIl9xs+pqrpADggSep Ng9aEbJC6DpIo48MZckmcpv+fIBTLDBbt+EC+/e3yKlwUruMrnBMDkNibqPt3QfXg579 mc0yKeGG6rL/8Wtiv7x7OSKFDF2Oso0YhJiIuhqy+qhlAoPoNeCztblfXNJ0vyt9G/T9 ovvYbv/h7iM4cAE7EBJ4aSbmo+LIzKGbQl+Xk+rDrccfigWLLlgb3cbPMumlFBDMNU/W g3hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iz450FZH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si6787527jan.21.2021.05.21.13.26.25; Fri, 21 May 2021 13:26:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=iz450FZH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234740AbhEUSHk (ORCPT + 99 others); Fri, 21 May 2021 14:07:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:57340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238505AbhEUSHj (ORCPT ); Fri, 21 May 2021 14:07:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 15A51613CB; Fri, 21 May 2021 18:06:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621620375; bh=PGlP4iraJhEmtFARuI90AqejPX1/fQS9paNMLEY2w+Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iz450FZH/5bpTdyYLCWpyUOLw72CFhgN2ndPP3/YgWcYOR8Jkfl95UxlVx/K+Av6g f5ijoFD/NawtnO+gJA2BAiHN2iZROdpHLjIyjMrHUXwB+/hR6E53cP3Qk/wowOSo+B a4bUrLbrIfYkcP4jIqjDPr38Ofe7e4S+HAie+dPE= Date: Fri, 21 May 2021 20:06:13 +0200 From: Greg Kroah-Hartman To: Thierry Reding Cc: Chunfeng Yun , Liam Girdwood , Mark Brown , Matthias Brugger , Paul Cercueil , Lee Jones , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v2 3/3] Revert "usb: common: usb-conn-gpio: Make VBUS supply optional" Message-ID: References: <1621406386-18838-1-git-send-email-chunfeng.yun@mediatek.com> <1621406386-18838-3-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 21, 2021 at 03:20:23PM +0200, Thierry Reding wrote: > On Wed, May 19, 2021 at 02:39:46PM +0800, Chunfeng Yun wrote: > > Vbus is already an optional supply, if the vbus-supply is not > > provided in DTS, will use a dummy regulator, > > That statement is not entirely correct. The dummy regulator is > substituted only if the supply is in fact not optional. The idea behind > that is to allow DTS files that don't specify all required regulators to > get away with it, based on the assumption that the supply is one of > those always-on supplies that are often not described in DTS. > > > the warning log is as below: > > "supply vbus not found, using dummy regulator" > > And the reason why we get that warning is to point out that the DTS has > a bug and that it should be fixed (by adding a proper regulator to take > the place of the dummy). > > > This reverts commit 4ddf1ac79e5f082451cd549283d2eb7559ab6ca9. > > But if you read the description of that commit, the purpose of that > patch was in fact to make the supply completely optional in the case > where we already have the VBUS supply specified for the USB port that > the connector is parented to. > > So in that case the DTS doesn't have the bug because the VBUS supply is > already specified for the USB port and therefore it doesn't have to be > specified in the USB connector again. In fact, specifying it twice can > lead to a situation where the USB port may not be able to switch the > VBUS supply on or off because the setting might conflict with that of > the USB connector. > > So unless there's a real reason why this is needed, I don't think this > should be applied. I've dropped this from my tree now, thanks. greg k-h