Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2810123imm; Mon, 10 Sep 2018 06:52:29 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb0MQh1Tz6mjnb+Der1eW89raf+AdTLDiEe99br55jEXAwTNrczUAtPuxf/+gSWU/3iGKGE X-Received: by 2002:a62:d113:: with SMTP id z19-v6mr23682371pfg.98.1536587549339; Mon, 10 Sep 2018 06:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536587549; cv=none; d=google.com; s=arc-20160816; b=l4hte7WQCFOe/YEM+belvxc2SP67xgRAARRQOcrmdT5VSrlTdFuRzjRa9EW0P5Qq64 rJmpXXQr0Hsj2FQwxoHnKY3EPHDHyIsNBPPagaTfaPD7htZ9w/8Gko8BHmMp6lu1K9Fj qkx/ADyIHSizPQE9vbltl6qZUH3RIXOLFJA7rX/5VhAxVuPQe2Y+dYMtKORgrHnNBNxj oC26y209WJvTC9cX98f1PHXlvod/IdrsAoka5+IZ4xuHoSGqpmzThkeiUyEYYGsc2w49 aQlqPH2kXihl8Pu387iYyu5tSx+siw5DNLIfY/aKppiHfF/kMD5mO89bdqtUsfY3+7MW ASDA== 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=wx9ido2nchQGGd/UEertavY5Rz0h3sv7UwHVSKcioEE=; b=h3U+bZCpcTyp2oMxstIvUQ59MXgCRKl4eCuz2D1Tz1tIip8bS/VHgO5rYFE0PRdG3g FjbaVU6lJS5QN/WfaPKyT/hox3cb2NJbKvvI/dMi6QLZpIWdTxjy9Lt8o8sSUXA9n0HT Mk9MeRQKxn1REIyvyU7GIW223ULfmRRhOMFLQrFNv2Mud4c4MpLWsSwqXjy/93VslrTZ oGvFcc++AcO5//uMmEEzhkGzw42hAaDMgYLxverbmazMb7h0PN1A5Nnmi9onxEJf/yzP hOhFRnamGAc7eSbVbygMXnFM3jc1MHEZKOUWmqcXWeO637vkxQvOVNV1ozhA16v5Xtmv Sbxw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y40-v6si16191416pla.229.2018.09.10.06.52.13; Mon, 10 Sep 2018 06:52:29 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728859AbeIJSoq (ORCPT + 99 others); Mon, 10 Sep 2018 14:44:46 -0400 Received: from mga05.intel.com ([192.55.52.43]:48451 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728174AbeIJSoq (ORCPT ); Mon, 10 Sep 2018 14:44:46 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Sep 2018 06:50:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,356,1531810800"; d="scan'208";a="88719916" Received: from kuha.fi.intel.com ([10.237.72.189]) by fmsmga001.fm.intel.com with SMTP; 10 Sep 2018 06:49:55 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 10 Sep 2018 16:49:54 +0300 Date: Mon, 10 Sep 2018 16:49:54 +0300 From: Heikki Krogerus To: Angus Ainslie Cc: groeck7@gmail.com, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] usb: typec: get the vbus source and charge values from the devicetree Message-ID: <20180910134954.GA22723@kuha.fi.intel.com> References: <20180906192644.24587-1-angus@akkea.ca> <20180909180531.28092-1-angus@akkea.ca> <20180910073529.GL25121@kuha.fi.intel.com> <18a1f08b114adb65baf55f202a28d85e@www.akkea.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18a1f08b114adb65baf55f202a28d85e@www.akkea.ca> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Angus, On Mon, Sep 10, 2018 at 07:11:43AM -0600, Angus Ainslie wrote: > They are tcpm specific but need to go into the connector sub-node to get > parsed correctly. Would something like below be better ? > > diff --git a/Documentation/devicetree/bindings/usb/typec-tcpci.txt > b/Documentation/devicetree/bindings/usb/typec-tcpci.txt > index 0dd1469e7318..ae0a3e97d9b6 100644 > --- a/Documentation/devicetree/bindings/usb/typec-tcpci.txt > +++ b/Documentation/devicetree/bindings/usb/typec-tcpci.txt > @@ -15,6 +15,12 @@ Required sub-node: > of connector node are specified in > Documentation/devicetree/bindings/connector/usb-connector.txt > > +Optional properties for usb-c-connector sub-node: > +- init-vbus-source: set the initalization value for vbus-source to true. > + If this property is not present the initial value will be false. > +- init-vbus-charge: set the initalization value for vbus-charge to true. > + If this property is not present the initial value will be false. In that file those are fine. I would prefer init-vbus-sink over init-vbus-charge, but it's up to you. Thanks, -- heikki