Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3034031pxk; Mon, 7 Sep 2020 00:46:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg18eVSHiGj6tss965LBZGQUMhbAEG7xEdAQljw2n1P+i4J2NOpYgd4jGMMjVNINSVuX8f X-Received: by 2002:a17:906:37c1:: with SMTP id o1mr19730756ejc.279.1599464783648; Mon, 07 Sep 2020 00:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599464783; cv=none; d=google.com; s=arc-20160816; b=brdLlZRSHYxWBHBHCtbb2sT+YN8TqlAgt0w4n9tUnKcZn5tv6UOXUK4nfle/GryfGA GFGHWR2u1Zv7Dnl/WnSsptQqYMhMz6L/yx9Hw05eaE9BZBhxrxdTn0zzh5Se3rUIFmWN KzUxWOjIt8BoEq/8L8HCAzt7ZiA81rpDf9haSyHFRW/txmw7k9Xqbd6zT0M6+y/EL0Iq ooWEL9+YTQJq4t0PhYW+5LWcdBqosPYt5zvGWSIEEEPhW+4Q/dfwLBjYEHKMbeoZVcKh Y1XxH8iXrBcKsgZ9YVF7fpJnx4hy7wMgZLfj+6asliGhymmAXWR9dqxDjHJaO55drBOd up4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=QYqdHOk7DVdt2nnG15lwBd//8DmneefPtiGeRfDf5Mg=; b=Wzvrlwa/v+FIgwEVwewqQL3P2ZKynoiSNhj66mNDAiT6Nu3b2/qd6BVksTWXO3siox MeVkYeAhqaX/uWtmO/lQoeh/wb6lN8BJmd5A3V7lpHGeCs9ijSTGbqvjriJILGZz+yf+ DSq2rMn1pxB0AdGpVDVuncU6ccHnT9+FarTn423WvmnwR3HWGQnbDAUcx0CnH77zha8D LWIN8LS31SngQAc2E3A74uR7Ks/ils4a4sTDA0Xxm+jVaaWAuzeCcXn8j+fuqn1pDGyZ 3clBbyCzVIkTX8Cn6OnNI4MRQErUf6mIx4cSK2hpHrgouo5DAered/6HzNbYtF59nDyY Cx8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Odqr7TZC; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si9172222eja.581.2020.09.07.00.45.47; Mon, 07 Sep 2020 00:46:23 -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=@kernel.org header.s=default header.b=Odqr7TZC; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727041AbgIGHpJ (ORCPT + 99 others); Mon, 7 Sep 2020 03:45:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:54468 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726896AbgIGHpD (ORCPT ); Mon, 7 Sep 2020 03:45:03 -0400 Received: from saruman (91-155-214-58.elisa-laajakaista.fi [91.155.214.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 40560207C3; Mon, 7 Sep 2020 07:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599464702; bh=GvP6mhCj1aRy77o0gWFMzh619d1ltTMeuCvkmXTYlmU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Odqr7TZCi5Km3/tYsZ1ZKJkh4HJyBSOCmukqCkAlAW+0gRPwoKKCideVa8E7fYDTA E7bwPnK2RV0VvGi/GwX86dW1w3DOTaQNeJo/6PRf8venAAjueO1+Q+qgmCVFEi8O6s w+VbCBJMKw9NxalfgdyF+vHZnDL8wICHbBGgusRE= From: Felipe Balbi To: Mike Looijmans , Mark Brown Cc: Vincent Whitchurch , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, lgirdwood@gmail.com Subject: Re: [PATCH v3] usb: dwc3: Add support for VBUS power control In-Reply-To: References: <20200619142512.19824-1-mike.looijmans@topic.nl> <20200723075612.tn5dbkhes2chohwh@axis.com> <20200723110523.GA4759@sirena.org.uk> <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.2698920d-90ba-4c46-abda-83e18e2093c8@emailsignatures365.codetwo.com> <1b153bce-a66a-45ee-a5c6-963ea6fb1c82.0d2bd5fa-15cc-4b27-b94e-83614f9e5b38.ac9c2a67-d7df-4f70-81b3-db983bbfb4db@emailsignatures365.codetwo.com> <20200727102317.GA6275@sirena.org.uk> Date: Mon, 07 Sep 2020 10:44:55 +0300 Message-ID: <87a6y21154.fsf@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Mike Looijmans writes: > Met vriendelijke groet / kind regards, > > Mike Looijmans > System Expert > > > TOPIC Embedded Products B.V. > Materiaalweg 4, 5681 RJ Best > The Netherlands > > T: +31 (0) 499 33 69 69 > E: mike.looijmans@topicproducts.com > W: www.topicproducts.com > > Please consider the environment before printing this e-mail > On 27-07-2020 12:23, Mark Brown wrote: >> On Sun, Jul 26, 2020 at 09:10:39AM +0200, Mike Looijmans wrote: >>> On 23-07-2020 13:05, Mark Brown wrote: >>=20 >>>> Does the device actually support running without power so that's a thi= ng >>>> that can happen? _get_optional() should only ever be used for supplies >>>> that may be physically absent. >>=20 >>> It's the 5V VBUS power for the USB "plug" that's being controlled here.= It >>> must turned on when the controller is in "host" mode. Some boards arran= ge >>> this in hardware through the PHY, and some just don't have any control = at >>> all and have it permanently on or off. On a board where the 5V is contr= olled >>> using a GPIO line or an I2C chip, this patch is required to make it wor= k. >>=20 >> That sounds like the driver should not be using _get_optional() then. >>=20 > > Making it mandatory would break most (read: all except Topic's) existing= =20 > boards as they won't have it in their devicetree. I'm perfectly okay with= =20 > that, but others might disagree. you're perfectly okay with break all existing users of the driver? That's a bit harsh =2D-=20 balbi --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJFBAEBCAAvFiEElLzh7wn96CXwjh2IzL64meEamQYFAl9V5PcRHGJhbGJpQGtl cm5lbC5vcmcACgkQzL64meEamQYGJg//UoDK4AFFB+hwyzIO9lg3Jf/bQb4hjUEs i8AxmSTRBajNyw2tkKHYMyLZev3kW7XS5E/LGNHZEoc+BP8qqF9gggIugXKuQJ1Y NON5XhiIgyBak2hEqRlzL6KX0QT+UmseJqs6nZctD3STrpT0oNtsh+oehuVTKBmV vfj1lZU+gJxfZR8spkjPuiV8OXW7sWT7SIQQeQGJQyF60HfIKnMyIrV4cLG3lS5X EniYqukV5ubijrc4eV7+xhLwN8j0QA2JED4ooP/+CBpraEzdNo8dlU20kf9EkJft ReL04i3B+zOF7FX16TQ6Kg4tiVDQg3Otzns0o70moYzD7hltrstxlpQD84RF0r2O O9QHVEah1FSxcQGy7EiLB35sh6z69TiWFf+K+R8H5Ri/x4YkmYImWA+Eej1dqbq6 DCzgVYgjLG+3wnNjTOrw0TZctCWLcoceXYAUhOVDxJ3Ds/LJKKFENY/z3S5qXrh8 4Ds8+7Rt6WXcbd6SmxGWHU02iQMvcWzu3kR/MVtimrdONGg1lE5yhqjkO69/YCTL d8n/A6FsR87q5owSXvCBbgf5QM6fJgYg/CjG5pwqxiYERk/D/LBujr6S2KVULmE/ +HdutgXWcvhp8BJCWRNAnGZb3NrfhlzS4RNteb1HNjy8846J2742BijtjPZFyvu9 TOu3It4R4rY= =CBCD -----END PGP SIGNATURE----- --=-=-=--