From patchwork Tue Apr 23 20:25:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: RD Babiera X-Patchwork-Id: 13640627 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (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 799785B1E3 for ; Tue, 23 Apr 2024 20:25:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713903960; cv=none; b=n8prT/7rZRce9+XddwkhxYrIOcnaIPWBEMlD3Z8Sl4XSjGnoTz6LmPPKRfU+Mpmjq5wIFBYWFl8axr7wqL1nmB3oB0pNXZP8zMyaysJ18RFIjQcTsAEhtoAS9dBVZTCVMH3jI3Ir7EvLdAQSkngp0JEp4pdhxl1BsmgYtmTC1zA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713903960; c=relaxed/simple; bh=mVN4QTxRncoFspcOfajOTu25xYOyAK9fT8THCDI2+yo=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=lpa83LpJTmpgIvEvBmBYDwdDxFHPXISxu8xllCqsp61+elOUNW/85SxFPgM09SYqb+Mpr5fawkeIfPDIAA8iaA0DzJrqatD4GtkjvU+StupZKTGzivdTM0yfcgHisYZLiH9g1MpICiB+wKRIFGrZq+ltSJ2Mu6Klalfttq5Abww= 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=ntqkJfPK; arc=none smtp.client-ip=209.85.216.73 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ntqkJfPK" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-2a5c5e69461so7615077a91.2 for ; Tue, 23 Apr 2024 13:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713903959; x=1714508759; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=Q5jHQxcUdXp+dPIr3rm5L14wko30Jw0n6PWHbtrT/PM=; b=ntqkJfPKB6pLaQfT/MTEyodfasL5Ly7Q4Qzxm/QvjIGw8Zrm3jzvBu2Cxb8t3+GtlE QyrJsyDXGNOMCgMmRAuZ/tKgkeXAwVprLsaA1tvExGnuX6CK1PpltHHrNsMR/PZ1pcIs qot3QBguDiH0h9Jjka2F9OTul6cKWjiVT0sK4zpXohVBXUClDHTWAY2Za2g3lOXEqN/E HbILLLmCXOfxPWmtIWIwb4XFgS2cz7KSCNGAlgM2uqfEKhpRVHYzbFYc8ns3xLpZ5muP fGp14QU2Qsi9g15Gans9PRyq+iK7IbDOLiQBmqqF36ULQmDOP1+0xP5ufj+czOlYT/Md 4FYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713903959; x=1714508759; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Q5jHQxcUdXp+dPIr3rm5L14wko30Jw0n6PWHbtrT/PM=; b=SC+QNyuqNuuEHiu+ab+N680SUL3k4rPZCWwMX1bn8jyJf3D6bJEPYh2+6N/EQJBv6b v30AthBh5VmHvOQ7O2k5Vy0Qe9gaaWVqo3DwRCzmWXcOL/NrNDwSGR6LZUdRoM5ZbMAt 3FK3sKjYHL2GXJzFL6OMg/X8jcVpjU+cOacqbHQBGhglrI5AAo/1uoP71O8AkHaCnFDU pCTciZDQXGyTpIpk0NeaXJRCKtah3V7Vk/tvup0JUT8okbm4PNQ4j+1wZv6wBi7/dfoz mr8W1IfAndlWg5GI53y0Cz9megKm+6F5o06TPc5r6PB6fbL/KT0LQ6qYoQu3be+i6w+P uUpg== X-Forwarded-Encrypted: i=1; AJvYcCU/fc3HcqlskwY60DCpKtTqcBk2g5OizE3U6skKKo2MElgO+3t7kPKeDMdN6ifFwnUBy9X7ZvXoXFxOcUGz7eoR3oEg3TkXp79F X-Gm-Message-State: AOJu0YyjV/9Roh41yzffvVe29S3fv3d22z9Q4VxqD+Sz7G5FoCaHCluj 1BVrjX8sR94XNkV9whM3+AMoYu2GgxSL8fk/V3pMDtXdSgSayQ9yxbh2tEcTi5h/RnHaU1RboDk 66Z7UatyRagKj0w== X-Google-Smtp-Source: AGHT+IFSwYF7KVY14eFqT9xqEPyFY3dW4hnO21Aieew4SoQwwj26IVFV/FKcEY+uLqJatQ7GWmqG2DBXk1RDeHY= X-Received: from rdbabiera.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:18a8]) (user=rdbabiera job=sendgmr) by 2002:a17:90a:77c6:b0:2ae:f76e:2473 with SMTP id e6-20020a17090a77c600b002aef76e2473mr2111pjs.2.1713903958621; Tue, 23 Apr 2024 13:25:58 -0700 (PDT) Date: Tue, 23 Apr 2024 20:25:46 +0000 Precedence: bulk X-Mailing-List: linux-usb@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=1060; i=rdbabiera@google.com; h=from:subject; bh=mVN4QTxRncoFspcOfajOTu25xYOyAK9fT8THCDI2+yo=; b=owGbwMvMwCFW0bfok0KS4TbG02pJDGkakl6c68+oBdb6FqwJ3KNp8uWHdY1PxUPbmG3nbT/7n Hp2cO2FjlIWBjEOBlkxRRZd/zyDG1dSt8zhrDGGmcPKBDKEgYtTACZy2I3hf1zg5KLWpMXCkbw/ As/Y+6aZFt247zd3iSJXv9dMH/ef7IwMx7+JfPhjouictfR457uLDscmuOx5ZJyh/mjBVNVPPGG 93AA= X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog Message-ID: <20240423202546.3374218-2-rdbabiera@google.com> Subject: [PATCH v1] usb: typec: tcpm: queue correct sop type in tcpm_queue_vdm_unlocked From: RD Babiera To: heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org Cc: badhri@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, RD Babiera , stable@vger.kernel.org tcpm_queue_vdm_unlocked queues VDMs over SOP regardless of input parameter tx_sop_type. Fix tcpm_queue_vdm() call. Fixes: 7e7877c55eb1 ("usb: typec: tcpm: add alt mode enter/exit/vdm support for sop'") Cc: stable@vger.kernel.org Signed-off-by: RD Babiera Reviewed-by: Heikki Krogerus --- Patch applies starting at 6.9 tree. --- drivers/usb/typec/tcpm/tcpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 684e9f5f97eb4b7831298ffad140d5c1d426ff27 diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c index c26fb70c3ec6..3f38e7c7d13f 100644 --- a/drivers/usb/typec/tcpm/tcpm.c +++ b/drivers/usb/typec/tcpm/tcpm.c @@ -1565,7 +1565,7 @@ static void tcpm_queue_vdm_unlocked(struct tcpm_port *port, const u32 header, const u32 *data, int cnt, enum tcpm_transmit_type tx_sop_type) { mutex_lock(&port->lock); - tcpm_queue_vdm(port, header, data, cnt, TCPC_TX_SOP); + tcpm_queue_vdm(port, header, data, cnt, tx_sop_type); mutex_unlock(&port->lock); }