Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp964346pxu; Fri, 11 Dec 2020 20:32:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJy7stBoi0YY7MsMYNepHEKShOZyt/Yd7QTYdr/Rxwh6svBvlw01ij//PL3Nf9eBJj4VrlJL X-Received: by 2002:a05:6402:37b:: with SMTP id s27mr14782844edw.266.1607747552251; Fri, 11 Dec 2020 20:32:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607747552; cv=none; d=google.com; s=arc-20160816; b=ApJtP482IQND9G0XZ+hREXQix1QP4hjD69aEcHIUX1j8EfCF8OBXGxEBUxSRRLsypD KQwa2mXtDfOLYvpXkrm5xcqUXdTO8U5k7lgpbPupF8w1mAs7Qvt9Qn77Ww/radZyxPXW xjSHYQI1B+5eTWD0qIqC/oUV0m1FR5NBsj9XyfPi2MKnuxYuX6/R2D0pjwDMxtNxehw7 JA+O99OnP8+EiUAF9513I/sK/lIAT8FEE4zm8prl/burAlZkXSTX1hBrgXGR1POz1JCp sv1X66a6cks8l/LlqKmhpn8R1W/KDSpinJPtssXc/UqKUpQf0DqZPOQC3cduy52eBQj9 +qgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PCX++NcovFvmuiZAkYM9TG027ENLPf2SyX4C3UG/YXE=; b=EM+vsAXrF/6aiKaOlvBeGuaOJuVSZA02vQUAMLyon9wimONRDo4Qv+HHNPo2O7bxM5 gkAdskEWHae35MnNCcXkNHvhtdQqMsmEAnAVwbERaXNiBG6kvLiavVj/ay0cMbKHLpg4 RltXme86QpPdxD08Gg9VCfBuGPIzaRZGPLFsXF9FYWN0hI3RY4zxUCYHnkiCf/QETy1J 6PH5GLOAyTJ+3AT3FwgT+1gWYUU9aMxTHcYWycqpyT6vZ0L36uU4D4pSqiDO8jxuU7iy SD//ZJuIGZOsd3xKH7DJC0dovt2mtlKWzBN9H43B64Zefg/3Da7yceWWM4JviJk8Fn4K FxJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UT8xK2wk; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v17si356047edr.428.2020.12.11.20.31.55; Fri, 11 Dec 2020 20:32:32 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=UT8xK2wk; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732545AbgLKEsq (ORCPT + 99 others); Thu, 10 Dec 2020 23:48:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729717AbgLKEsW (ORCPT ); Thu, 10 Dec 2020 23:48:22 -0500 Received: from mail-vs1-xe42.google.com (mail-vs1-xe42.google.com [IPv6:2607:f8b0:4864:20::e42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A29C0613CF for ; Thu, 10 Dec 2020 20:47:42 -0800 (PST) Received: by mail-vs1-xe42.google.com with SMTP id b23so4143713vsp.9 for ; Thu, 10 Dec 2020 20:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PCX++NcovFvmuiZAkYM9TG027ENLPf2SyX4C3UG/YXE=; b=UT8xK2wkBb30KnXY24s4al02jyc+2CbeUlsT5ixozhRHyoYvz3HB9+HXc3oL8dAEsQ FWIYNimr7jZMgzI/AIjks8hb17xxQI8WSv+7RmI/j08inNNwZyPka8WnqrhR+HrOG/sM 2pUAXovJaHfIJJzX9W9cRCMFxmZH8HDRNlIhc8iG/KUKr9FFmUtJ7hH0VSbj+zICsMW+ flO95g9tZWKWKBDGIiXy65M81Eio2IwQJi1vOaLf3MTIOmPN7vAr5MPv8VoNp7iQCbtg ATxuWG8aaAaJl6zuvqByRtJ9Zxd8ibzem6SLjP3c/w+JqD+YWfbJ3DxB7Hfk+sMHTdHY OGrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PCX++NcovFvmuiZAkYM9TG027ENLPf2SyX4C3UG/YXE=; b=Sby5v8OOcnzMn+5B/ZGK4AOJyOhbDXSIImztm2AhA26CFq2DZ894K/imt+IsCjyUQA oA8vck2Te0UBZEi8nUHy5NG140jCCFashMxgOSfeokc81lhYOx41jYMd3ixCRp1tbyig pG6wAKLgCzPetSoirEyEgiwjYs/HXBQ66fSUHjXkF24qq5Ntzm/S/Crq0Xpei1OpR3rY j9P7OK8dh+SPprj65xEA5sknH+v+++lfaneMgAN/SIYvLZ4jqoJloCONr6AthcG49QtY sW3Pqpu+y47gkmNeN6PZCWJkEJJEEUg92oQHRNTIUeXblJ5GaMr6geaSpeA7qzTmA5bT Tiww== X-Gm-Message-State: AOAM530sDOd2eeShzDUeqfzfU9oFpyAc6NSyzM5oM0K20mDtsW4KbGwu CsN0bJ4h9fh41+fdRh+eNLV9gw9fFqMSzYMvv4cw2g== X-Received: by 2002:a67:6b46:: with SMTP id g67mr30004vsc.60.1607662061190; Thu, 10 Dec 2020 20:47:41 -0800 (PST) MIME-Version: 1.0 References: <20201210160521.3417426-1-gregkh@linuxfoundation.org> <20201210160521.3417426-6-gregkh@linuxfoundation.org> <20201210174548.GF107395@roeck-us.net> In-Reply-To: From: Badhri Jagan Sridharan Date: Thu, 10 Dec 2020 20:47:04 -0800 Message-ID: Subject: Re: [PATCH 5/5] USB: typec: tcpci: Add Bleed discharge to POWER_CONTROL definition To: Guenter Roeck Cc: Greg Kroah-Hartman , Heikki Krogerus , USB , LKML , Kyle Tso , Will McVicker Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, I have a patch ready to enable BLEED_DISCHARGE in tcpci code. I will send that in once you merge this patch to usb-next. Thanks, Badhri On Thu, Dec 10, 2020 at 10:56 AM Badhri Jagan Sridharan wrote: > > Hi Guenter, > > Yes I will send a follow up patch to update tcpci_maxim.c. > > Thanks, > Badhri > > > On Thu, Dec 10, 2020 at 9:45 AM Guenter Roeck wrote: > > > > On Thu, Dec 10, 2020 at 05:05:21PM +0100, Greg Kroah-Hartman wrote: > > > From: Badhri Jagan Sridharan > > > > > > "Table 4-19. POWER_CONTROL Register Definition" from tcpci spec > > > defines BIT(3) as the control bit for bleed discharge. > > > > > > Cc: Guenter Roeck > > > Cc: Heikki Krogerus > > > Cc: Kyle Tso > > > Signed-off-by: Badhri Jagan Sridharan > > > Signed-off-by: Will McVicker > > > Signed-off-by: Greg Kroah-Hartman > > > > Just wondering - is that going to be used in a follow-up commit ? > > > > Reviewed-by: Guenter Roeck > > > > Guenter > > > > > --- > > > drivers/usb/typec/tcpm/tcpci.h | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/usb/typec/tcpm/tcpci.h b/drivers/usb/typec/tcpm/tcpci.h > > > index 116a69c85e38..c3c7d07d9b4e 100644 > > > --- a/drivers/usb/typec/tcpm/tcpci.h > > > +++ b/drivers/usb/typec/tcpm/tcpci.h > > > @@ -72,6 +72,7 @@ > > > > > > #define TCPC_POWER_CTRL 0x1c > > > #define TCPC_POWER_CTRL_VCONN_ENABLE BIT(0) > > > +#define TCPC_POWER_CTRL_BLEED_DISCHARGE BIT(3) > > > #define TCPC_POWER_CTRL_AUTO_DISCHARGE BIT(4) > > > #define TCPC_FAST_ROLE_SWAP_EN BIT(7) > > > > > > -- > > > 2.29.2 > > >