Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp672259rdb; Thu, 22 Feb 2024 16:23:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVH/CZnhdGDNDr+BbDQtZUVJGnGL9XIwD6pqHpSxTMlDzrA/uE0KE5gzaFXJYEvmOsxoTDOStIXiLQBqS/KVkDr73sKMFlmxDywu67CtQ== X-Google-Smtp-Source: AGHT+IE+ludBaG6RrMsJ035sy2+QIeSi8jT5vJX/TzfcACoxnsUzoh6GUGrrIvEyc32CgHIRH92v X-Received: by 2002:a17:90a:b103:b0:29a:3989:cb07 with SMTP id z3-20020a17090ab10300b0029a3989cb07mr372516pjq.26.1708647832024; Thu, 22 Feb 2024 16:23:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708647832; cv=pass; d=google.com; s=arc-20160816; b=waRu//mRXlFroQaAPepVeW7nnhhHKkGjrZ5L7IS3UGuc/Zsza1tmdv02rnEpG2MHBv MBW7mhE1Jx5ywt5ogPmSEDUN2YxWYIbhoLmZU4ymzTdK2tl/1ha+Fc7Jy3+uWDaXk4F7 JLiovlOoDGnRSnk7K+NFqatK2819hc+j3QsxaflN7sS2HVfosydScPVkcubhMbom0Pmh w0aDYi9Xp/A6avabQ6zmHcg8CXUlus4miIrrS2xILpQ6gsJLmMLuqfNiCbOn4WoiD2Bm QUCkkjIagOWCrUzcaCdCVb2pGMrZxck7mkBhpq3QMsg00Gmi5ovUBlt3OabPPQynQoMa +qEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=TNFUvLDAx6+Y/ghPILwTUhweF7IT0DZ57bOGUDCjGfY=; fh=sqxMjX7I+fvIbrBvCUyyeMadhqfXk020xqzaZ5aBfq8=; b=KIW/2C5TTYxnLbsnd2GgpmCZzdOOO0J0zfERu9Ma1GtEhQ+7mSanlxIiSqdRvpzTTz VATTOJNpXxwSq+BvKjwT55u/t3bhJhY4ROT8a0ezGPAtLErjpAw76nsteyFi26Xcxp5a kyXP3r0xPPNj9jwQXbhn9WyCypJKxpL1TfQguPO3FsmOnt6xssyTqsnnd061zYYaX/x0 sl69nFXlHo9tFTQbUWqN7QTWb93hEzWPNsdzOo+/sdF7xnlgQWBpVAI+PHJ6u8hVczpj vey1frhBuGGjR0mV10WDZrBTExBf1vDb5pYH0eicTMZGczPJWX1rCALzvcC7xFSXPtU+ aL4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=rdhAHPR+; arc=pass (i=1 spf=pass spfdomain=flex--rdbabiera.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-77567-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77567-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b22-20020a17090a8c9600b0029962d0c910si152564pjo.62.2024.02.22.16.23.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 16:23:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77567-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=rdhAHPR+; arc=pass (i=1 spf=pass spfdomain=flex--rdbabiera.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-77567-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77567-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B052A2863D8 for ; Fri, 23 Feb 2024 00:23:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4DA179C1; Fri, 23 Feb 2024 00:23:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="rdhAHPR+" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A20A86FB9 for ; Fri, 23 Feb 2024 00:23:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708647789; cv=none; b=RbkLqCM5YUKVFlcs8St/ZMs0L0proenBvKRWGSG682Ah5ja0X/RyXDqbVaxKgodnZPsWyphQz5xbGM4LSquNR++eyAz0oigRpS7BF3LVd5GQIQVeDUJ1hsDC+EDC5lXuHW7ZLePEkWyBidrhegr03XjgSRCYQQORLq6Xk1+GtBw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708647789; c=relaxed/simple; bh=CxCr4JSQNzDwayBhtWB2bC8U7458ZX3yAc4cBM+FFmg=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=icV7cks5CLnvbjWPn+lPtIV2mDCuz03Y8BxhuHjEFw1P275EKreKbO/t/CCmoOfckjn5kg6FWpftxj4llrBrziZRhU+AGfan1XtpwauHf3ZJ/oIWLb0FBRRFOXZdY05I4bdW4l3iZkRHy70rlSL6IyG791b9hlmy436z9RsSdUk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--rdbabiera.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=rdhAHPR+; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--rdbabiera.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dc74ac7d015so405743276.0 for ; Thu, 22 Feb 2024 16:23:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708647786; x=1709252586; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=TNFUvLDAx6+Y/ghPILwTUhweF7IT0DZ57bOGUDCjGfY=; b=rdhAHPR+EM9+BxnsE2Pc1/rwOL2llGg4jv/uNzic0MyJKsEmVu3gq0oILg/wN+WBzj sqpykYYaejRKsgD5X3b2AvNFeOnE0WQWmuy+sBgK+lSsUCM7H7FHvOX0F1qiIRWwspjR P3bBfZ3pS/4OWqvQKeAiY/ezoYkUOSIUGv06NES08kIRBUNs3B2WwiAeIQ+zO6OHFUTX UbLHRsefOzlAg26HBq0j6Ug4r42JVhrEORvBlLyDAj1CKc5vPj4nYZURsheWA4Au0uuy ++eTgrzJ53DQ5YcsE4xtqzGY2vxT3e5pZKXo28Zh+zI1aOVCwVyU5lW6PIgk2Oi4k2Fm KS9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708647786; x=1709252586; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TNFUvLDAx6+Y/ghPILwTUhweF7IT0DZ57bOGUDCjGfY=; b=jD9+B+pvJNUGmO4OWoHZoqOhVXIWT7S/xtHIudodngqNP8PlIy/UKdVSDD5TzHMEhO h8wB/hDeBQXx063Tsno/w9YNc4AbXvZRs2IHQIKraSiJwxCtuYldK0w8Y+BvUTMKyWtb CPmnBfJ9/W/WGxlMD9sbSHxKhZ8SrjYYdES3FegYr2csmwdwvaBWOjxvAt3htCtRHePj NY+R5Ilyr9jZfY1f+GXwUdWyQsWj4PpkxsjPDgKcUnbQnukHklBZwpUY6dlZBQBHLswe vAT5kOy9Eph8rYDsb7KQ5tNeUW6Zg5IpsJuFk95hEygbUSNvwqdxoJMsDZ3pmawTw1LC KMrw== X-Forwarded-Encrypted: i=1; AJvYcCWybkkGxRSeIO3ESO2pI/PG4YEoLq0i27vzF8jbvIRB9IYGVUXDB7MzT08jupdjxwQsTtkmeebzcxMSKvhzwixALqKgs9vOFyLX1BUe X-Gm-Message-State: AOJu0YxVBpcSqwXid/w5JWByXwE0ZfaW5gOcoBu9/HUv6NFGmjZe4qlH gl8dxU/WwtLP2shZ7dZIZCW55KPssC0ra5fmB20+/grhCiz894ZisEficW1L+5X0a8bnghN4hr1 Xt/4VaFZmYLDrAg== X-Received: from rdbabiera.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:18a8]) (user=rdbabiera job=sendgmr) by 2002:a05:6902:100e:b0:dcc:79ab:e522 with SMTP id w14-20020a056902100e00b00dcc79abe522mr27282ybt.11.1708647786666; Thu, 22 Feb 2024 16:23:06 -0800 (PST) Date: Fri, 23 Feb 2024 00:23:03 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Developer-Key: i=rdbabiera@google.com; a=openpgp; fpr=639A331F1A21D691815CE090416E17CA2BBBD5C8 X-Developer-Signature: v=1; a=openpgp-sha256; l=1181; i=rdbabiera@google.com; h=from:subject; bh=CxCr4JSQNzDwayBhtWB2bC8U7458ZX3yAc4cBM+FFmg=; b=owGbwMvMwCFW0bfok0KS4TbG02pJDKnXn6Y5B8U8mSf7ZdG27kNlq+Rynnce+hR+tI39/uLbp T07j1Ve6ihlYRDjYJAVU2TR9c8zuHEldcsczhpjmDmsTCBDGLg4BWAiqkaMDFd4byxmW/1r3eok 9WQT/tl2G5jb0rZxCnvVadUviWP5psvwh19DmD02JKL47bqjk/8d61kbt8dmwsbgFbw/PqwPyYk L4AAA X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Message-ID: <20240223002302.3937235-2-rdbabiera@google.com> Subject: [PATCH v1] usb: typec: altmodes/displayport: send configure message on sop' From: RD Babiera To: rdbabiera@google.com, heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org Cc: badhri@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" When the port is setting the pin configuration when no configuration is chosen, the DisplayPort driver will not send Configure to the cable plug if it's available. Add transition to DP_STATE_CONFIGURE_PRIME. Fixes: 71ba4fe56656 ("usb: typec: altmodes/displayport: add SOP' support") Signed-off-by: RD Babiera --- drivers/usb/typec/altmodes/displayport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/typec/altmodes/displayport.c b/drivers/usb/typec/altmodes/displayport.c index 5a80776c7255..867f9796f8a8 100644 --- a/drivers/usb/typec/altmodes/displayport.c +++ b/drivers/usb/typec/altmodes/displayport.c @@ -164,7 +164,8 @@ static int dp_altmode_status_update(struct dp_altmode *dp) } else if (!(con & DP_CONF_CURRENTLY(dp->data.conf))) { ret = dp_altmode_configure(dp, con); if (!ret) { - dp->state = DP_STATE_CONFIGURE; + dp->state = dp->plug_prime ? DP_STATE_CONFIGURE_PRIME : + DP_STATE_CONFIGURE; if (dp->hpd != hpd) { dp->hpd = hpd; dp->pending_hpd = true; base-commit: 3bf0514dc6f36f81ee11b1becd977cb87b4c90c6 -- 2.44.0.rc0.258.g7320e95886-goog