Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp351613pxf; Thu, 11 Mar 2021 05:36:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyv3QK2GJapbETPOnxcPL/BqbMm5eeWBeQGrpDYJt9969SpWKCKzwFV5xvqBI8hkxvZBZ3R X-Received: by 2002:a17:906:bcfc:: with SMTP id op28mr3088380ejb.238.1615469761402; Thu, 11 Mar 2021 05:36:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615469761; cv=none; d=google.com; s=arc-20160816; b=fHN8IHGM0uF5dg4BCgxiOYt+lhOikEMAnilR4ezVcli748moqj8HsGNh8ZZ6uMtPPE EM5zRX6CeIlGeZBJlX7asDjACzSCNZ+RQcvtsZgJGCgHsER/3x1g/QTk496RajtnbsjG gvaWYPf18a7cZ4iIW8wzRpnouGam+X8PojphsiRRbrT6AlnWrpLSVCG3yE+sbmbrZyhP 2OYI/Z5dD6nIESma1bHYmRXEpSWF1k4yvmv82IVu3yPyghqKesBErnlsSBD8EaQR/AVL pocZMCWXyMM6p0UDm5glY7Z1WoUYBCPtJXVSAKpHSX78QX26sLBYzWeaeYKz6Pp9yth/ j2yg== 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:ironport-sdr :ironport-sdr; bh=zIdD7SWkwAw+VzDV7T7BJOMA9aAD19c/FXB14vZUryE=; b=sm+TA72gLj5oxluyXLJOHIFwLAdiq2PDimWrx8CSw1ugOkMUPMuPe7WTJHLIxoIPdE +wsp17mbYWbNcl3CrSTb3wvThVHY8miFu4b8oasXrMANE+AN6CQJHDn988eIKgnP5t8H yAhqbd8Bb81jEursm+B0Nh84AkD6sWrAhGr8IMmeZ+eqXu52BparfES1S9WUCG1fnaiu CYumIOR95Q5cFYH8aaY+wo68c5iVBe2RPaAOJJhhl4XJsX4VK6X/eo1ftSQO8VMhI6KN 74Q5zWw0njeiKCGTae5cK+4Pj9w0c6hD2orF0qB6fWIFGbN1f85jIsTAZ7FPoBJ0sxKU wDQA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb30si1872386ejc.218.2021.03.11.05.35.38; Thu, 11 Mar 2021 05:36:01 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233449AbhCKNeM (ORCPT + 99 others); Thu, 11 Mar 2021 08:34:12 -0500 Received: from mga18.intel.com ([134.134.136.126]:63661 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233141AbhCKNdk (ORCPT ); Thu, 11 Mar 2021 08:33:40 -0500 IronPort-SDR: j5rnmEWxdYfscKoQWBNQv/yPmvssziPkS4AMX2OAZ+xFvlwMF8zpT4eionkptcY0ZdKMPP9iGp KFHCpLJNKYpw== X-IronPort-AV: E=McAfee;i="6000,8403,9919"; a="176259745" X-IronPort-AV: E=Sophos;i="5.81,240,1610438400"; d="scan'208";a="176259745" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2021 05:33:40 -0800 IronPort-SDR: xB56w9PhDRnuDJ7f4Gg+yUIN1KI6NhLjx7ddXPmme6K+6CnoR3ZXXNPFSsBVclTvTijXxh3Le8 ZHKshZq4ZIKw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,240,1610438400"; d="scan'208";a="510015485" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 11 Mar 2021 05:33:36 -0800 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Thu, 11 Mar 2021 15:33:36 +0200 Date: Thu, 11 Mar 2021 15:33:36 +0200 From: Heikki Krogerus To: Badhri Jagan Sridharan Cc: Guenter Roeck , Greg Kroah-Hartman , Rob Herring , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Tso , devicetree@vger.kernel.org Subject: Re: [PATCH 3/4] usb: typec: tcpci_maxim: configure charging & data paths Message-ID: References: <20210311100313.3591254-1-badhri@google.com> <20210311100313.3591254-3-badhri@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210311100313.3591254-3-badhri@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Mar 11, 2021 at 02:03:12AM -0800, Badhri Jagan Sridharan wrote: > This change allows the driver to configure input current/voltage > limit for the charging path. The driver sets current_max and voltage_max > values of the power supply identified through chg-psy-name. > > The change also exposes the data_role and the orientation as a extcon > interface for configuring the USB data controller. This looks wrong to me. Why wouldn't you just register your device as a separate psy that supplies your charger (which is also a psy, right)? thanks, -- heikki