Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1327111pxx; Fri, 30 Oct 2020 07:35:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxj5c8Qv4aOPG2/p6LNMNSd16vBGpdn0CBCzWSD8iqZAJ3J8OYZ057KkiC0P8qcukRbrmF+ X-Received: by 2002:a17:906:e24a:: with SMTP id gq10mr2705140ejb.552.1604068530210; Fri, 30 Oct 2020 07:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604068530; cv=none; d=google.com; s=arc-20160816; b=BRZk5oDrsZN3VLprkGbchjbWyl0IaSlkOwmnfw9LLvCcd4Z07i2IWxe5d9VMOIiyP1 Tck88psC0SRKij4lbiWa0t6Hb1XAhMZIUx4Ow54hS7m4x0+EP+pccGdcFQkh2qqmvUTM x1D8Yvj14D+UTpAre8vcKvSF15d3CDr1YMaStVzfbaqPABsn5c8+YdlP88AeB6VWxpt8 3MJcKH2hbf14cvy7FJoiYDBIIzGDMSlP9RYa0bouiMb5d8Mu8Lu9Ag7cMvxhzA56CjFs ezi/HNuOYFHnHBowCA7+k5vYtdvIjNE5U9uldDvZg0DgT9+QGrHw1QxHzfOVVIOXmaJu MteA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bYyKtl/BCIG2zS65ml6hIY+RZudwlo2gn//QkQiQRYE=; b=rbppgYBPOiPyCRDm1R5tCEJ6JwjlKoXvbpAQ+AwVGSRqbfEj+BvUYAeI39o07Crg0C qSjUKTF/9p0ZfOffjhpzQGSdGSj9W6g78VgcyJzPsx9LXZ/FJcLgeqdfocu3KNjHAYLt iXfQzSPVMCorUy6+owz0XfZRSpB6NY8uK81mxRuWH4tyO2YhKCSHoWgtM02bgcEu7R+v ZXA1hdUqo3WUSVCX1q0pOzDxPVi5fHy0u62n8otxD5L1w4wAaU8zyEMv4K+7juUHOiS1 z5UJim9jf5DA3UUaoqQ/zt7biRU8XzsR84QuFle70SB8f1EFXmDoVkJVSTquAvqNYf1m L6Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lN74zVv+; 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 e20si4253987eja.480.2020.10.30.07.35.06; Fri, 30 Oct 2020 07:35:30 -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=lN74zVv+; 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 S1726713AbgJ3Ocg (ORCPT + 99 others); Fri, 30 Oct 2020 10:32:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:34208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbgJ3Ocg (ORCPT ); Fri, 30 Oct 2020 10:32:36 -0400 Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0ACE820637; Fri, 30 Oct 2020 14:32:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604068355; bh=H73aTFe9brejPhv93HXkvU3N5qlIm5iZsJBrgXyq5lE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lN74zVv+y0LBSHf4rqFdraGgS8IsYFsifgokwyPkvmhZM55UCiMlrIHfZCg1QVVgU o9cBQDDIypBFmI+kl3cU8EVY1agALeA8QRQln0r1KkgLuzHVsIyXbLhhl0zaPte5L3 xp79GoUiFbPxrvKlG0Qw73+iTpB9MyUMSFvjLnCw= Received: by mail-ot1-f44.google.com with SMTP id m22so5721796ots.4; Fri, 30 Oct 2020 07:32:35 -0700 (PDT) X-Gm-Message-State: AOAM532+AooKztQEgVi3e6L5o9Hxz8J87AWONyyFMDbMqyt8XAJsIdGa 24psNRFQ0Nny5Rc/s0mKzVb89byBC02pYDvrDg== X-Received: by 2002:a9d:62d1:: with SMTP id z17mr1974117otk.192.1604068354225; Fri, 30 Oct 2020 07:32:34 -0700 (PDT) MIME-Version: 1.0 References: <20201029095806.10648-1-amelie.delaunay@st.com> <20201029095806.10648-2-amelie.delaunay@st.com> <20201029154016.GA1917373@bogus> <860d5620-4fdf-6e01-9a04-3967d6fcfd6b@st.com> In-Reply-To: From: Rob Herring Date: Fri, 30 Oct 2020 09:32:23 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RESEND PATCH v3 1/4] dt-bindings: connector: add power-opmode optional property to usb-connector To: Jun Li Cc: Amelie DELAUNAY , Greg Kroah-Hartman , Maxime Coquelin , Alexandre Torgue , Russell King , Heikki Krogerus , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , lkml , Linux USB List , "moderated list:ARM/STM32 ARCHITECTURE" , linux-arm-kernel , Fabrice Gasnier Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 8:55 PM Jun Li wrote: > > Amelie DELAUNAY =E4=BA=8E2020=E5=B9=B410=E6=9C= =8830=E6=97=A5=E5=91=A8=E4=BA=94 =E4=B8=8A=E5=8D=8812:52=E5=86=99=E9=81=93= =EF=BC=9A > > > > > > > > On 10/29/20 4:40 PM, Rob Herring wrote: > > > On Thu, Oct 29, 2020 at 10:58:03AM +0100, Amelie Delaunay wrote: > > >> Power operation mode may depends on hardware design, so, add the opt= ional > > >> property power-opmode for usb-c connector to select the power operat= ion > > >> mode capability. > > >> > > >> Signed-off-by: Amelie Delaunay > > >> --- > > >> .../bindings/connector/usb-connector.yaml | 18 ++++++++++++++= ++++ > > >> 1 file changed, 18 insertions(+) > > >> > > >> diff --git a/Documentation/devicetree/bindings/connector/usb-connect= or.yaml b/Documentation/devicetree/bindings/connector/usb-connector.yaml > > >> index 728f82db073d..200d19c60fd5 100644 > > >> --- a/Documentation/devicetree/bindings/connector/usb-connector.yaml > > >> +++ b/Documentation/devicetree/bindings/connector/usb-connector.yaml > > >> @@ -93,6 +93,24 @@ properties: > > >> - device > > >> - dual > > >> > > >> + power-opmode: > > > > > > I've acked this version: > > > > > > https://lore.kernel.org/r/20201020093627.256885-2-badhri@google.com > > That is a different property only for FRS. > > > > > > > > frs is used for Fast Role Swap defined in USB PD spec. > > I understand it allows to get the same information but I'm wondering wh= y > > the property name is limited to -frs- in this case. What about a > > non-power delivery USB-C connector ? > > It's only for FRS, FRS is in the scope of power delivery. > > > > > Moreover, power-opmode property support is already merged in typec clas= s: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/comm= it/drivers/usb/typec/class.c?h=3Dv5.10-rc1&id=3D12f3467b0d28369d3add7a0deb6= 5fdac9b503c90 > > and stusb160x driver uses it :( > > > > So, do I need to modify stusb160x driver (and bindings) to take into > > account this USB PD specific property? > > Only Type-C w/o PD need this "power-opmode" property, so this > property is still required. Yet we have the same set of values. So there's something common... Rob