Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1709761pxb; Sat, 2 Apr 2022 00:05:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTM4vH4rAPsuq7YDw+aj1gb1anCzQoQBF0SAuBVnabDEyCipQs4osffTNjfTL8Fo//pgm/ X-Received: by 2002:a17:906:d10c:b0:6cd:4aa2:cd62 with SMTP id b12-20020a170906d10c00b006cd4aa2cd62mr2888066ejz.229.1648883152180; Sat, 02 Apr 2022 00:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648883152; cv=none; d=google.com; s=arc-20160816; b=xenxeP/+cB3kpRfQnjPoLz58jhJB45S09hUcR33phA3fwis+U81J7ktrzGOCCeD8zA puwDXwJcgmy97bFlVLPiWXscCu2bJxUtc1786yrOFnYmRao248mu1mUpKbpfZxXB6Xpf 6vJsZm5aSyZrO2rAHIbwUOUUYmscSRs0IB4Cn57BhCCyBuidfLxkLeU1fPRcSe+ROEB4 hMczfDPhjyvVXhVXE7utXMLG3F2W1EiXynQ1IlusR3u/DA2ngWQwuTQD1Nzjw39FwfXK 1zyQ62i139dfcTy2mvSm/jxwDxsP8gpzSaG87ypzFKIRCEEamXR9WVaxDEHCgOBTL/kf 3qtg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mKQOtqVNYZJ3dPI2vw2aXiz0akxT6IT8QV/I+mm3INk=; b=z54qmCSZ0z3unmEB3/wZX0L0yoVSTjKpu+/UpoT1kiM9i6SFRuBGHJMYqnQxiTh2rU DvqEew25SShE27RdS5n5nYAD+bJxZmwi43r/F+4kF7Za2nJMoL/NhKyBZ5E+eUHpbYA9 XJIBPHCvhrhoemxFlBs3JsKeKY1FtF2OJpP+fOrPBHIK5aIT/kvAmYMqfEr9u7vOFBiG CLKmGQ2i+FYfStO0texd7nznPBpic8cFIx8d6XVr08YphSPBXPv0uCeCuTVYBksVzAuv hNOK0CUo7+jc38SQZvntJDIiw90v957Bk9KYgvInizV44e4a/P23uKoMyfBTMonLHiql IxPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UuWT5bZo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i4-20020a1709061e4400b006e0660cefcbsi2873596ejj.356.2022.04.02.00.05.26; Sat, 02 Apr 2022 00:05:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UuWT5bZo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345104AbiDANvY (ORCPT + 99 others); Fri, 1 Apr 2022 09:51:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346471AbiDANvU (ORCPT ); Fri, 1 Apr 2022 09:51:20 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7027CA0E8; Fri, 1 Apr 2022 06:49:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648820969; x=1680356969; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=6sFUED6jomDpVrS/0BCwozH6u0xdut4xuWB/lq33NWs=; b=UuWT5bZoSV1IX33c1ceZHd8ws9Y13j2Xl2M18HGKM5whavdyTetaqTKL wR2QHpnr04hcyEIgCI1N4vpAR2XF5llZb3Tg4ye2oa6ZGA1WmsvbCkJgZ rgLoKMBoY16RR39L2WDFeN/5ZGX3xvWXIIVgQ2mznSsgBrv23Ew6cq542 9OzOhqyZ6xSiN8pzQm6TPgUvoTOtLVDFcApeuTTWcaFRYE60L7JI0kceg 4wSH8GteG0HsoAMK64LShvGcnrRKl1F/Nshp+ExQWZpZOkXxH6uAY9H7N 6JfGit9xM4Zd15pYiTenptmy6tfgoLCsjtDf1z1bqQqVv2ziVZFNoG89i w==; X-IronPort-AV: E=McAfee;i="6200,9189,10304"; a="240077425" X-IronPort-AV: E=Sophos;i="5.90,227,1643702400"; d="scan'208";a="240077425" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2022 06:49:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,227,1643702400"; d="scan'208";a="695896434" Received: from kuha.fi.intel.com ([10.237.72.185]) by fmsmga001.fm.intel.com with SMTP; 01 Apr 2022 06:49:26 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Fri, 01 Apr 2022 16:49:25 +0300 Date: Fri, 1 Apr 2022 16:49:25 +0300 From: Heikki Krogerus To: Sebastian Krzyszkowiak Cc: linux-usb@vger.kernel.org, Greg Kroah-Hartman , Sven Peter , Guido =?iso-8859-1?Q?G=FCnther?= , Angus Ainslie , Hector Martin , Bryan O'Donoghue , linux-kernel@vger.kernel.org, kernel@puri.sm Subject: Re: [PATCH 0/7] TPS6598x PD tracing and other improvements Message-ID: References: <20220317154518.4082046-1-sebastian.krzyszkowiak@puri.sm> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220317154518.4082046-1-sebastian.krzyszkowiak@puri.sm> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Mar 17, 2022 at 04:45:11PM +0100, Sebastian Krzyszkowiak wrote: > This is a series developed for the Librem 5 phone, which uses TPS65982 > as its USB-C controller. Implemented are Power Delivery sink contract > tracing and exporting negotiated power values as power supply properties, > fixes for data role swapping, status register caching and a debugfs entry > for querying customer use word of the firmware running on the controller. > > Angus Ainslie (3): > usb: typec: tipd: set the data role on tps IRQ > usb: typec: tipd: Add trace event for SINK PD contract > usb: typec: tipd: Provide POWER_SUPPLY_PROP_{CURRENT,VOLTAGE}_MAX > > Guido G?nther (2): > usb: typec: tipd: Only update power status on IRQ > usb: typec: tipd: Add debugfs entries for customer use word > > Sebastian Krzyszkowiak (2): > usb: typec: tipd: Provide POWER_SUPPLY_PROP_PRESENT > usb: typec: tipd: Fail probe when the controller is in BOOT mode > > drivers/usb/typec/tipd/core.c | 263 ++++++++++++++++++++++++++---- > drivers/usb/typec/tipd/tps6598x.h | 30 ++++ > drivers/usb/typec/tipd/trace.h | 38 +++++ > 3 files changed, 302 insertions(+), 29 deletions(-) These look pretty good to me. I'll see if I can test these on Monday - I finally have access to a machine again that actually has TI PD controller. But I will give my comments then in any case, if there is anything to comment. But related to patch 3/7, there is a series in works that would expose the PDOs in sysfs [1]. I was wondering have you guys noticed it, and would that actually work also in your case? [1] https://lore.kernel.org/linux-usb/20220203144657.16527-1-heikki.krogerus@linux.intel.com/ Br, -- heikki