Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3211928pxu; Mon, 19 Oct 2020 06:52:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZeCi44CZ8D2psppykM9I9qRqjUL8JHpBP41hbLW77vPKQf7NfFl6u7kFGo7wtPmi/jp3K X-Received: by 2002:aa7:c643:: with SMTP id z3mr18563779edr.104.1603115552065; Mon, 19 Oct 2020 06:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603115552; cv=none; d=google.com; s=arc-20160816; b=RxSItw1vZfhuVVjK0HlYbZ0Gisllm9BRWJYpFPZPr4WtxlQyLSVMZx23dw6VGqnW+7 HxMxXM6de57wAIjVfTrE1uSHS7UXlGWcnX/1PMLGoFnlpI+Bo4migX5Vt4gVgdFGmvPG F40Q4EgtHNsKvCP/C8e+Z83EokPSWPdeU89riPUizvvn+N62TRTI5VIaGe98sa1mEZef b8wvPEG5WpWxFpvKFlLFW5vwfwPVQISVt4sVkgs58oQvIgK6Ix8/cm9zOGxU+R4LQsA7 z94GU59sbQR9Kaojskh8d0vml6dSoormS7OXkZFS26n0DM4/UxOH1+27p6EBCzSupi9n OhuQ== 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=HhmVUR/tvNNAH/GNqMIm6AXDyUb4dgPMCs/xTGFk6yw=; b=qSdvGcr1j5DTDrNZA73DwhYjI1EQcxUckh2oV3cvYpL2zHmsjarTHPYaxIZ2Tw/oJX pUT/qKIvFhaivBgqSA1qfqN5CgmwiVfG3q/NJbOMBEwjmxyW87SCLlKFBqQFqX/HCjAP 5C3GLxR4FsuNLw/3O+Ur5VnQcL4reLvqnKqwGRChfQRwl7rpzURmi73aS19i2IHau3/6 J7AYQIYAk8AhChNcifuZSn3k5PtHTlswsNOPm/DgASEl8BoZC+VaSC6A5Q06ZwzKYyNH wesUipbgq36flvmbNc6CezmGuJRKpgYYpZOUAywvakrU3iuKkZcvYJNk+ZHV7IMVjvA/ k5VQ== 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 g24si7576078edq.128.2020.10.19.06.52.09; Mon, 19 Oct 2020 06:52:32 -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; 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 S1728839AbgJSNuR (ORCPT + 99 others); Mon, 19 Oct 2020 09:50:17 -0400 Received: from mga18.intel.com ([134.134.136.126]:16870 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728277AbgJSNuQ (ORCPT ); Mon, 19 Oct 2020 09:50:16 -0400 IronPort-SDR: zROtJJ/qlHkLW+zbpT8SPUYgCMBYGM9NUL1MG51/B78xQzHGueQpeItNy9CubQzwpuylyk/ByP TZx5TG+06vUw== X-IronPort-AV: E=McAfee;i="6000,8403,9778"; a="154820950" X-IronPort-AV: E=Sophos;i="5.77,394,1596524400"; d="scan'208";a="154820950" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2020 06:50:15 -0700 IronPort-SDR: +pykw250Fmb+Dshcu2KrEc924MczhvYpVBiKHpy/hpTZKJrn9+57nDSjxRW0A/Hg+iWit9nTr5 gaWpYacS+kLA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,394,1596524400"; d="scan'208";a="422186200" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 19 Oct 2020 06:50:11 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Mon, 19 Oct 2020 16:50:10 +0300 Date: Mon, 19 Oct 2020 16:50:10 +0300 From: Heikki Krogerus To: Badhri Jagan Sridharan Cc: Guenter Roeck , Greg Kroah-Hartman , Rob Herring , Lee Jones , Mark Brown , Maxime Ripard , Alexandre Belloni , Thierry Reding , Prashant Malani , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Amelie Delaunay Subject: Re: [PATCH v10 15/15] usb: typec: tcpci_maxim: Enable auto discharge disconnect Message-ID: <20201019135010.GI1667571@kuha.fi.intel.com> References: <20201008061556.1402293-1-badhri@google.com> <20201008061556.1402293-16-badhri@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201008061556.1402293-16-badhri@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 07, 2020 at 11:15:56PM -0700, Badhri Jagan Sridharan wrote: > Enable auto discharge disconnect for Maxim TCPC. > > Signed-off-by: Badhri Jagan Sridharan Reviewed-by: Heikki Krogerus > --- > Changes since v1: > - Changing patch version to v6 to fix version number confusion. > > Changes since v6: > - Rebase on usb-next. > > Changes since v7: > - Heikki's suggestion: > Moved the actual write of TCPC_VBUS_SINK_DISCONNECT_THRES > register to tcpci code. > > Changes since v8: > - Moved the logic to program the default values of > TCPC_VBUS_SINK_DISCONNECT_THRESH into the tcpci code. > > Changes since v9: > - none. > --- > drivers/usb/typec/tcpm/tcpci_maxim.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/usb/typec/tcpm/tcpci_maxim.c b/drivers/usb/typec/tcpm/tcpci_maxim.c > index 43dcad95e897..55dea33387ec 100644 > --- a/drivers/usb/typec/tcpm/tcpci_maxim.c > +++ b/drivers/usb/typec/tcpm/tcpci_maxim.c > @@ -441,6 +441,7 @@ static int max_tcpci_probe(struct i2c_client *client, const struct i2c_device_id > chip->data.TX_BUF_BYTE_x_hidden = true; > chip->data.init = tcpci_init; > chip->data.frs_sourcing_vbus = max_tcpci_frs_sourcing_vbus; > + chip->data.auto_discharge_disconnect = true; > > max_tcpci_init_regs(chip); > chip->tcpci = tcpci_register_port(chip->dev, &chip->data); > -- > 2.28.0.806.g8561365e88-goog -- heikki