Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp614678pxj; Thu, 13 May 2021 12:37:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMsSK2OAGIetkHFo7azmEUjbqxQi9tFWpIOB7WDVOeOTSdUTw9FDBjEMPJsVYTWd2LZOu3 X-Received: by 2002:a17:906:b1cc:: with SMTP id bv12mr44624872ejb.407.1620934639096; Thu, 13 May 2021 12:37:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620934639; cv=none; d=google.com; s=arc-20160816; b=0+HkBe7W6yZ31YiHQbgcAeWNhXAtMtKU1ONpyyf4aMBQI5cUv4cCNkowIbzJlyPJQY PbEJ9CpaN3KkyPYDdZPBClQ6a7q7Eg6mKUlAD3E53h9f04tzDY0OUQvvp+BDFcGKs/QT uHwxqOdQID5kTrEQIQmOpEGT7BIjvKSmluBafRJsm68oo0DGdLG1G5wSNUZcecGkM5l9 gMfcB7JkVpwNKIrzEeVsq0tKpFa+HSpjXxkM7/4+5sufHln9X64AJb/gLwFPHdBXW1Dc rlRTVXwPITATUNxlzbanjYRrdyT2YJoI+qyXllCqbh+BtX16vXZBxe3f4/hZlYX3a70+ aG4g== 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=BRGb3aHnIo1dW03TeZTAj22XCuRnE1fSH6TDH6xIyjc=; b=cXyeaAOW+RmkHILXFIeoOdpsOR9XuaOZAyUy+ANsNopqFhHU9YEEfdt2aSBdPtBgby pwGGmneqYvjVuvIIVGriia2awtbeohLb7DFYUsRIe/nGYJfknZ/rNCZ8+8f+ONf3MsY9 lhPqcdBPixvzMYHF/UxpbuEXSO7lXSQWlkg9rpB2y8ZmQAXz+VMKNZ5/H4sSP4ydLvyn RMa0Lf6IylquB4OOisY5xodJpQ53Tr1GkcmtKoTserQ/kpDRcaouJ7FbCPkASpLFjmUk 9UG8C6ZYtylom1Q8ufLdHjwbpe3YGx9HuK9fEOScc3nj4XxfCvC4dXLiyqOIYHQEkbKd Ircw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ThIx22U0; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si4640380ejh.110.2021.05.13.12.36.55; Thu, 13 May 2021 12:37:19 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ThIx22U0; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233573AbhEMNCV (ORCPT + 99 others); Thu, 13 May 2021 09:02:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:52850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232807AbhEMNCN (ORCPT ); Thu, 13 May 2021 09:02:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0E87F61264; Thu, 13 May 2021 13:01:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620910863; bh=hrJGgRMOGw+xsZEDwcg+4tkyQZO/1AY6HJA091YVM6U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ThIx22U0furBY8A1UwOam6GZ9wDOuWbAQNwkKrTs5degWPKIo7aqO8TQdMi+9Rddg 4h+wfRLldlMXkAxXShyEjJidmqGMrwmRRCIYdrehKnAzYgXGNjPbSbXifROi/XfIlX sbVRo0iHtr0ZTOvGZ17nVq6Wtj70qm0tcx4BkFQU= Date: Thu, 13 May 2021 15:01:01 +0200 From: Greg Kroah-Hartman To: Badhri Jagan Sridharan Cc: Guenter Roeck , Heikki Krogerus , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Tso Subject: Re: [PATCH] usb: typec: tcpm: Fix SINK_DISCOVERY current limit for Rp-default Message-ID: References: <20210510211756.3346954-1-badhri@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210510211756.3346954-1-badhri@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 10, 2021 at 02:17:56PM -0700, Badhri Jagan Sridharan wrote: > This is a regression introduced by > <1373fefc6243cc96b3565f0ffffadfac4ccfb977> > "Allow slow charging loops to comply to pSnkStby". > > When Source advertises Rp-default, tcpm would request 500mA when in > SINK_DISCOVERY, Type-C spec advises the sink to follow BC1.2 current > limits when Rp-default is advertised. > [12750.503381] Requesting mux state 1, usb-role 2, orientation 1 > [12750.503837] state change SNK_ATTACHED -> SNK_STARTUP [rev3 NONE_AMS] > [12751.003891] state change SNK_STARTUP -> SNK_DISCOVERY > [12751.003900] Setting voltage/current limit 5000 mV 500 mA > > This patch restores the behavior where the tcpm would request 0mA when > Rp-default is advertised by the source. > [ ? 73.174252] Requesting mux state 1, usb-role 2, orientation 1 > [ ? 73.174749] state change SNK_ATTACHED -> SNK_STARTUP [rev3 NONE_AMS] > [ ? 73.674800] state change SNK_STARTUP -> SNK_DISCOVERY > [ ? 73.674808] Setting voltage/current limit 5000 mV 0 mA > > During SNK_DISCOVERY, Cap the current limit to PD_P_SNK_STDBY_MW / 5 only > for slow_charger_loop case. > > Fixes: 1373fefc6243 ("Allow slow charging loops to comply to pSnkStby") Your string here was incorrect, I'll fix it up this time, but please be more careful in the future as it will get caught by our scripts. thanks, greg k-h