Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp737973pxj; Thu, 13 May 2021 16:01:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwx/GO0dgzt27iu+L1meOKYUXv7PnzZW1iHwzsLXLOAdgNfLwXKoMUs08sZ80CIJDYO3Q2Y X-Received: by 2002:a17:906:c40f:: with SMTP id u15mr45371330ejz.11.1620946917198; Thu, 13 May 2021 16:01:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620946917; cv=none; d=google.com; s=arc-20160816; b=NBb1egYOiknOoxFO/fHlgPgzcl4pRh7PHvC7vdZA6sbkgzbWsB6jGMylIjsgoTjghQ XevMNiwFinUksIwsyzRJI5cFc8hgsMVbHfhPwmscNWE/5T/DUpGMSTFOPVzEQCQWWKxW d/ZhcxKM6MQ+Ob4Ej1A492yCajPvBvOImhAhu3kSSX54NRi2fyZguB+/yd4G9A7fWWUK Cg4aHNBmSNCG5JoXTFZkB73Pw0iTw3/G965B5jXOH3oNt9tfAd0b5fdFQCN/LTDjeCGb OYzrsGCDwKePsYNK/Ru8WRzD/Cwn+C2HosGza8/w2fmHbUpvYsJz7PpuctyFABuB7n+4 7Q0w== 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=LTxS73qpgw8wyOGx/jay0u9L/v5jsZImh4qhHGmYKZE=; b=QLqQk/xUoC4bNx894e+yVrO8PwHpP1c5uUHKnZgzQ4rnNQO6C5lIOYtUJR8V2zHwXn Jp5dWTmxb3/K/4i+CmrQTVBk8wKvTWhFqLRKy743W/Ty3ZZfH+gbGJCXydjY+qI6H9ap YdUugSt6RZkbdfKLIb9i8UxIv/uy6vfFNPq9X7w/PaTfdd6ogkm9Z5rBss1QpE1zWLKn FHoG5wqbSma6lXQlUa85iZse7rMsQVJMj/TBHhAAVnOu+5wcNbKvqSOV4iZuG45eMzY3 s8y8JWys+1s13SfGAw9zw3a2iVGZU5XwYNWDBcAs6nkDkjwiryrG8BBuu3gFCi8M6wUo SanA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tklR2Nvp; 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 p5si4637839edt.116.2021.05.13.16.01.32; Thu, 13 May 2021 16:01:57 -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=@google.com header.s=20161025 header.b=tklR2Nvp; 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 S231544AbhEMSBd (ORCPT + 99 others); Thu, 13 May 2021 14:01:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231447AbhEMSBc (ORCPT ); Thu, 13 May 2021 14:01:32 -0400 Received: from mail-vs1-xe31.google.com (mail-vs1-xe31.google.com [IPv6:2607:f8b0:4864:20::e31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71D39C061574 for ; Thu, 13 May 2021 11:00:22 -0700 (PDT) Received: by mail-vs1-xe31.google.com with SMTP id 66so14065806vsk.9 for ; Thu, 13 May 2021 11:00:22 -0700 (PDT) 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=LTxS73qpgw8wyOGx/jay0u9L/v5jsZImh4qhHGmYKZE=; b=tklR2NvpwQw+STERlujGQIte3lDGnRI6uPOx0826wTpa8L8G31Ug6E15953WQ6n6M0 TVSmARbFPEwwLv2qPGshTDhs1/5GxN4tTgsbamFHOBCFJXVSA2Ms8YervLbIT4xx55sN 8OjYEAzWROaDdGzT083Q2p6/EUpV8xGaUsTIdQiHVNWwEoagQA0glRoo8ESHtr3/IMQ6 k25XbMf+bjGnjrkGlsruFYotJuDv3dXice6pgkIWouXap/VXBpsAqoWfizqDZdcJXm4y 49iq2IfFK4hO3ZE0t0cdWmRNRGSupk791amSN4Bi66XVSnIpbOEnI7+9m3V6jaTc8Jfk lWRA== 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=LTxS73qpgw8wyOGx/jay0u9L/v5jsZImh4qhHGmYKZE=; b=kdgDuE38KOmhL8RjVMEEMsjTPQNJ+uxA0W7QQYNSDSOO7ONG4B317peuZUKwI0foNk SHDGOeUcX4XyfGi6MI954Spv9VTagC1EOYR2zy6s+NE1jcsFO7tsUbQqSPJZtdwkjUcl 6k/rn6yi169WBsyLacH2K7tZQX1s637g8KT/VJNlLtIT1mDShmEChKe9ujwDPnQnknT1 kEYMEiU4V3FhXBDdfTRdLSPDJslu7D5xGuLo7V7LxlVgZZvezCV0ma9RR/ikv3Ai7rLb 1GGlySAxLalBtQwOIPf9u2X8FAhFY+gUBUabX8/zZ7X7waoOa3X+gcJMdtAkf3x7wsS6 5ZZA== X-Gm-Message-State: AOAM5329aAcH0LfzTb/o/P3clhE+X3JaVj8Goj4TKmbNHiYR55zf0Eu/ Akm/tC+cynzYaqXzJGgUhROxlhYdfcDvyi4BZFNy0g== X-Received: by 2002:a67:6307:: with SMTP id x7mr37421491vsb.12.1620928821530; Thu, 13 May 2021 11:00:21 -0700 (PDT) MIME-Version: 1.0 References: <20210510211756.3346954-1-badhri@google.com> In-Reply-To: From: Badhri Jagan Sridharan Date: Thu, 13 May 2021 10:59:45 -0700 Message-ID: Subject: Re: [PATCH] usb: typec: tcpm: Fix SINK_DISCOVERY current limit for Rp-default To: Greg Kroah-Hartman Cc: Guenter Roeck , Heikki Krogerus , USB , LKML , Kyle Tso Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Apologies Greg ! Will pay more attention to the "fixes" string next time. Thanks for fixing it up ! -Badhri On Thu, May 13, 2021 at 6:01 AM Greg Kroah-Hartman wrote: > > 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