Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp4105032rdg; Wed, 18 Oct 2023 15:29:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGV5qM8AX8AlYDoP5CrxyPHtKQGHw7hK84jsrPe2tdTgqjt7FVmg1EPCr2sdisrZshKJKtB X-Received: by 2002:a17:902:e809:b0:1ca:8468:f05e with SMTP id u9-20020a170902e80900b001ca8468f05emr774091plg.29.1697668197722; Wed, 18 Oct 2023 15:29:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697668197; cv=none; d=google.com; s=arc-20160816; b=WGS/av1W9sFhRSsYlVKw2gg/UCgTvWCp0ihOl+E9KzCIwTqmuLeTsJSq+gDHMoxwxy l753cRsXyOKh8T0+dR/RZcfFX06Pk7DfaOpfAAmrU5TP3IoeX3jnv3ghRz+y+9/llzRI mQys+T8kSEPeaTQLBeaEdFHt6h/aYxSHPfV1dzJEnqMTZw44Ws57wfnpiGY128SouGpM rEp/GpIiwYCBjfYM6W9p82K5RuMqzWzwOJHMxF5rnV3P1LEKOZRvjLj8u2H6i01qaQQp lgLa+uRJHbeF9m84O6tGriemhuDFrxKLgaqJolt8bh3k5jm+pk0VPDiS+LHdkmQewjU9 7LNg== 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=MlEhPotc9YVtJuw6c5D3IvfNe+8QoING9f1FrC2gg/U=; fh=q0MOLvabdZk6xksHwV1cLEY1ZuctjeFt2PDK/cmSsOo=; b=dis+rB5EzSytBs8tIAfaWag4wE9pnEyqp2Qp/xundIU9cT3rf6BE0y6r7itPLmkQFf d1JLRE2QdeaNZLxt8EFNTKNpqxm7dq+QGUEP5xl4PGvpbecHy7U92OUuJmysf8c6iCPn 9nDY5PYTJ7ppmF+zjovGTd/WkTNPYzSRKpFcRnLf4APbgQ9mOzb6rfuEctUfoXPLESyh ZGDOAsgUD4d4u3Yo0PLjZc+tdITOMZVRqf0TyTTF933afSn8+CBLw914aSm7pbDirg4A K5YyirG/adtbSX5/FOMDASJvJfjEaK06DUVE6gGa1+LEQd88aXiKyIrNR82ZfS7VHQi2 Qi6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JT3ODgYe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id i19-20020a170902eb5300b001c60de17b5esi805021pli.118.2023.10.18.15.29.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 15:29:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JT3ODgYe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 61F878158302; Wed, 18 Oct 2023 15:29:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231892AbjJRW3U (ORCPT + 99 others); Wed, 18 Oct 2023 18:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230051AbjJRW3U (ORCPT ); Wed, 18 Oct 2023 18:29:20 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9020D115 for ; Wed, 18 Oct 2023 15:29:18 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1c0ecb9a075so51297775ad.2 for ; Wed, 18 Oct 2023 15:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1697668158; x=1698272958; darn=vger.kernel.org; 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=MlEhPotc9YVtJuw6c5D3IvfNe+8QoING9f1FrC2gg/U=; b=JT3ODgYecULnjYpL8MERlDIjflhc1CPn9eeq2YXXsPQID82x6RcvoccyBhciNM/qt0 KBaQivWvSMJ/5rYdwMHBuIiQDdqNZyPnIP/vYt9qKmwwfH/8CAlJNw7r3R+1XtDqI+Cy Gj4Gl+bU+jQI8wDOkfVlSM2uoLG/O1p+4Uacs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697668158; x=1698272958; 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=MlEhPotc9YVtJuw6c5D3IvfNe+8QoING9f1FrC2gg/U=; b=duZ2JDxMUlXU5isj3xcsICUiCmD64yYQ+2H6WlSpx+aRESugB8Vc5xVrbbzqoZ9Csh vctcdXLdQTiQRte9q4Ll+XV/iUTTTe5G/EUd6esJ6zX1oD5cyWYJcus1tO1FkxrdPdeZ YD7iNPpTFvuZyOuv+Wz9+JerkCljzn+YRQ9AZmqfwu/Exl7rvnTUGQ5dE/VJy5nRwTU5 b2PtV+K3oiAjFCGlZrS3DlPZ0sE+oJBCBvd750j7JbkPXU79dNP0OFDIpmJ77d7Vc7jR jg37tvMjd7nddgAr1tfGeqqA8EPQdBUXBqntu6F8XThcqnceGpR3J8ajG+3465Fe8Gsn T9Sg== X-Gm-Message-State: AOJu0YyALSbHrqFh4+gb3xOQv44IYs2NNpidHkYzxDQHs+mkEVpq3+cu KTDdP3VhI3GuVbssz8O7tmBt1Q== X-Received: by 2002:a17:902:dac8:b0:1ca:64f:35ff with SMTP id q8-20020a170902dac800b001ca064f35ffmr877478plx.48.1697668158080; Wed, 18 Oct 2023 15:29:18 -0700 (PDT) Received: from chromium.org (77.62.105.34.bc.googleusercontent.com. [34.105.62.77]) by smtp.gmail.com with ESMTPSA id d4-20020a170902cec400b001bf6ea340a9sm425908plg.159.2023.10.18.15.29.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 15:29:17 -0700 (PDT) Date: Wed, 18 Oct 2023 22:29:16 +0000 From: Prashant Malani To: RD Babiera Cc: heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, badhri@google.com, stable@vger.kernel.org Subject: Re: [PATCH v2] usb: typec: altmodes/displayport: verify compatible source/sink role combination Message-ID: References: <20231018203408.202845-2-rdbabiera@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231018203408.202845-2-rdbabiera@google.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 18 Oct 2023 15:29:53 -0700 (PDT) Hi RD, On Oct 18 20:34, RD Babiera wrote: > DisplayPort Alt Mode CTS test 10.3.8 states that both sides of the > connection shall be compatible with one another such that the connection > is not Source to Source or Sink to Sink. > > The DisplayPort driver currently checks for a compatible pin configuration > that resolves into a source and sink combination. The CTS test is designed > to send a Discover Modes message that has a compatible pin configuration > but advertises the same port capability as the device; the current check > fails this. > > Verify that the port and port partner resolve into a valid source and sink > combination before checking for a compatible pin configuration. > > --- > Changes since v1: > * Fixed styling errors > * Added DP_CAP_IS_UFP_D and DP_CAP_IS_DFP_D as macros to typec_dp.h > --- > FWIW, Reviewed-by: Prashant Malani > Fixes: 0e3bb7d6894d ("usb: typec: Add driver for DisplayPort alternate mode") > Cc: stable@vger.kernel.org > Signed-off-by: RD Babiera BR, -Prashant