Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5873016rwb; Tue, 17 Jan 2023 20:46:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXsHIilug5qtHelQwv79ZNH6+7OfOftofdN35R4ssnXl/v4+MJ3oszrcO/BQwqwM84uDZXHO X-Received: by 2002:a05:6402:3583:b0:49d:fd6d:925d with SMTP id y3-20020a056402358300b0049dfd6d925dmr7644877edc.23.1674017174595; Tue, 17 Jan 2023 20:46:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674017174; cv=none; d=google.com; s=arc-20160816; b=cU3BMv0AINvCAw232fPfNvkpPshCnPeUf5w70kgc3QSrEOEVEnWXJ/PjgBWppejvX7 xoSEvTiDA5auEqif+Jonezc0u0lj11gL8WeY3cHrN/8VRyiWPtlimewqgTQI+EOT3P11 ox3wE39elTkcAj/sforcfDCHFH3WJ908DzM50l1ZLJhdulTZB81Ng+77Vc5ru5VxbUWB 7XRZjimkQwe4Hy8KPyz7058Kr57P+LOyneYypNoqO27l/+MRGABal9husLir+/6PAbmG 2WVCQ+YymrK4A7h0RfFCXWQAhNte0L0aH8Wh54vzBLwrtM6vpQuoCY8/9d8Z725bp3DC UulQ== 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:dkim-signature; bh=ekepBrhxl/81ZRjhtoKyLZ9/J5n/6wX9lCeCLJRBaSE=; b=eaKY9IWv6iqal9Ci95LeNYgjTKxZUHDGcAoAr5GPr7hkQixQHn2O7MMrqoyruqrQo3 Gbntcede9nQI5AyLzxC+yTKz9liyIKyGhIAcVd8H1iGba4J4xaE70m3DoYx7jZl3/tYy hSQ4g5Xc6/HNc7S7zv68fwoF+VoPysa1BuhkVPNoZqeQgSYsjjoaxjnUue2fsqY7m2YN KUnXBdnM22eKQykdlUjrNL4Cm2XfrSB/hGvYWRillo3XdrTJNNODPA0iBAOx3qMJGavB 3A0aeee77T0Ag2ODU0Cy0LVH/10ySkP602lbhE+fVxFqgjxp8CqgqEw903CdLP9j4CUn KS5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=YQ5PyRSx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go20-20020a1709070d9400b00855da26bccasi12964156ejc.974.2023.01.17.20.46.03; Tue, 17 Jan 2023 20:46:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=YQ5PyRSx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229572AbjAREeq (ORCPT + 46 others); Tue, 17 Jan 2023 23:34:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjAREem (ORCPT ); Tue, 17 Jan 2023 23:34:42 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA092539A5 for ; Tue, 17 Jan 2023 20:34:41 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id dw9so33155532pjb.5 for ; Tue, 17 Jan 2023 20:34:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ekepBrhxl/81ZRjhtoKyLZ9/J5n/6wX9lCeCLJRBaSE=; b=YQ5PyRSx66ogTt9Tp2mO1vQ2MrDl2Q5uaq6ppSXcklktAEngikxSoLX51hsoXwaThi C+U2ULT5tBnfQkCocHuubK7A8KB8d93I29dfVwGhzr4+UQFjZC4rw1M4vIyr8SFxNZhS 8sikRHGq81Yi+atqwIFU4pJA+t3/GouDFOzud1ORWdMMLWGcgHhF8sUSbqQYZvz52icN Cp5YvrjQO3GBdfhhMkQnkulD12S+a37LcQ13p+RumJaqpIyaoO9hrOu+Zu3Gsl8brQym CkrJt+v30vgfViPI8y0nUDlAteY9WBqSQP7zZXZ6LRfLnYbrhtpcaYW2DMrNzTo4QeSG bgpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ekepBrhxl/81ZRjhtoKyLZ9/J5n/6wX9lCeCLJRBaSE=; b=a5Z0bRVu1On8rZjflIXerkR0vD3gsRKHUSQ9Vog7tusdsoGZ2kdsV2L/crgLH/Ldbg g84qv2ZdUleyerCd5FW7YrdXLUYvEpIgVAC8P+I2UGo+4K6RF/uJdvlgjaV0tq/e6LNG Z+h7C/viPTcijYNYL68iz3rZK0mAm7rrCStPZv9Lp9Pcjm+EkYrXVD6VP3YsAo8DRwNf B2EwsWonHOzAPZcNlUNeEkN1r4AKm6x83IRxfzofZ2AfYUuPeqohH8uavuNgnkzZG4R1 WF6EAcfp9REcvpPXW1yDy6lhtOJzOuT5lYvCZNmthQnHAge0eVW3EyqBsgm3GZDXaGlY V1Jw== X-Gm-Message-State: AFqh2kp9EbyVdqHH1jF02C/1RZcdjKVHypZH0zyd8S4nV4UOt3kvPLrM 6k0q7CkGkByAsS1vcYDsn0vSZg== X-Received: by 2002:a05:6a20:c183:b0:b8:ca86:f3ab with SMTP id bg3-20020a056a20c18300b000b8ca86f3abmr495506pzb.2.1674016480682; Tue, 17 Jan 2023 20:34:40 -0800 (PST) Received: from google.com ([2620:15c:9d:2:f51a:aa8f:95e9:9c5]) by smtp.gmail.com with ESMTPSA id x73-20020a62864c000000b0058d8f23af26sm5960782pfd.157.2023.01.17.20.34.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Jan 2023 20:34:39 -0800 (PST) Date: Tue, 17 Jan 2023 20:34:34 -0800 From: Benson Leung To: Prashant Malani Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, bleung@chromium.org, stable@vger.kernel.org, Heikki Krogerus Subject: Re: [PATCH] usb: typec: altmodes/displayport: Update active state Message-ID: References: <20230118031514.1278139-1-pmalani@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Vjp3LjpA+ox3SLFy" Content-Disposition: inline In-Reply-To: <20230118031514.1278139-1-pmalani@chromium.org> X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Vjp3LjpA+ox3SLFy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Prashant, On Wed, Jan 18, 2023 at 03:15:15AM +0000, Prashant Malani wrote: > Update the altmode "active" state when we receive Acks for Enter and > Exit Mode commands. Having the right state is necessary to change Pin > Assignments using the 'pin_assignment" sysfs file. >=20 > Fixes: 0e3bb7d6894d ("usb: typec: Add driver for DisplayPort alternate mo= de") > Cc: stable@vger.kernel.org > Cc: Heikki Krogerus > Signed-off-by: Prashant Malani Reviewed-by: Benson Leung > --- > drivers/usb/typec/altmodes/displayport.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/drivers/usb/typec/altmodes/displayport.c b/drivers/usb/typec= /altmodes/displayport.c > index 06fb4732f8cd..bc1c556944d6 100644 > --- a/drivers/usb/typec/altmodes/displayport.c > +++ b/drivers/usb/typec/altmodes/displayport.c > @@ -277,9 +277,11 @@ static int dp_altmode_vdm(struct typec_altmode *alt, > case CMDT_RSP_ACK: > switch (cmd) { > case CMD_ENTER_MODE: > + typec_altmode_update_active(alt, true); > dp->state =3D DP_STATE_UPDATE; > break; > case CMD_EXIT_MODE: > + typec_altmode_update_active(alt, false); > dp->data.status =3D 0; > dp->data.conf =3D 0; > break; > --=20 > 2.39.0.314.g84b9a713c41-goog >=20 --=20 Benson Leung Staff Software Engineer Chrome OS Kernel Google Inc. bleung@google.com Chromium OS Project bleung@chromium.org --Vjp3LjpA+ox3SLFy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQCtZK6p/AktxXfkOlzbaomhzOwwgUCY8d22AAKCRBzbaomhzOw woPJAP9ZTCTrrDZa2Ve5dXDZPWih4kCSyO5wiZh1+UeRL/JQFwEA4tGtERuBhDXJ NLBK6pJtLyLmVo/1vXVSeeqS1hjyjAY= =Ih/e -----END PGP SIGNATURE----- --Vjp3LjpA+ox3SLFy--