From patchwork Tue Jun 25 09:35:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1952021 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W7fpP5shrz20X1 for ; Tue, 25 Jun 2024 19:35:57 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sM2ad-000248-QG; Tue, 25 Jun 2024 09:35:51 +0000 Received: from mail-pg1-f180.google.com ([209.85.215.180]) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sM2ab-0001zf-UY for kernel-team@lists.ubuntu.com; Tue, 25 Jun 2024 09:35:50 +0000 Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-7178727da84so2463786a12.0 for ; Tue, 25 Jun 2024 02:35:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719308147; x=1719912947; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FWUZYalmvMflnX+PUb7F+CW6xF8Evl9yhs5poW4hzMM=; b=SWh5UIb8MyVz00wcFliO27Rjqan2F00Yb9qG79qVUGd3mHPQ2pVssgR6IjFKNGqv3h pbdFdrbp3aK4oWXKOUO2tYBwyATpS5+4yvaWNuq+Vusiw4TZOkiq/vf4UaeEZjl7awEL aayDXzry9rNwXgvQMV7PoALtQgmSpuZ5u4KZlh7GotLJGwwlVv3uttn1ut0ak/3lkXcJ zsSurmU7lABZOjVRhVCfsBFBw1MrNXwXQ3FBOnvziwtJHh5E6ki9Aru6swj4nWYNZuGn UfqCWYUWExoKGlsLd6mb0zJXcL8Jqaa8O/Ufq8jES1m6+M5sRkseJ+/VNy11hnLvVI2U Crvg== X-Gm-Message-State: AOJu0YwAG3oEJoMzAAZydM1l3KD8Lwdkjt3vIGnR2Pc/lfMCBkSxpbbw HdUkGx6JLPYMYCP0QmUio+FRVx9QPO/e/ZAZCm86xRH1RweXj5PvKlBGSiYf X-Google-Smtp-Source: AGHT+IE4aWT/nkgvocKjhx4oOYKDG5fj3O43RlABXfAMj85BhCVEc/nk33DfeM22p1ur3XTxDUFqMg== X-Received: by 2002:a17:90a:610:b0:2c3:1937:3042 with SMTP id 98e67ed59e1d1-2c8504c7eedmr6650979a91.5.1719308147307; Tue, 25 Jun 2024 02:35:47 -0700 (PDT) Received: from localhost.localdomain (125-229-129-140.hinet-ip.hinet.net. [125.229.129.140]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c819db9803sm8176683a91.45.2024.06.25.02.35.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jun 2024 02:35:46 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 5/7][Unstable] UBUNTU: SAUCE: mei: vsc: Enhance SPI transfer of IVSC rom Date: Tue, 25 Jun 2024 17:35:18 +0800 Message-ID: <20240625093520.3804382-6-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240625093520.3804382-1-vicamo.yang@canonical.com> References: <20240625093520.3804382-1-vicamo.yang@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.215.180; envelope-from=vicamo@gmail.com; helo=mail-pg1-f180.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Wentong Wu BugLink: https://bugs.launchpad.net/bugs/2067364 Constructing the SPI transfer command as per the specific request. Fixes: 566f5ca97680 ("mei: Add transport driver for IVSC device") Cc: stable@vger.kernel.org # for 6.8+ Signed-off-by: Wentong Wu Tested-by: Jason Chen (cherry picked from https://lore.kernel.org/all/20240624014223.4171341-3-wentong.wu@intel.com/) Signed-off-by: You-Sheng Yang --- drivers/misc/mei/vsc-tp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mei/vsc-tp.c b/drivers/misc/mei/vsc-tp.c index 5f3195636e53..fed156919fda 100644 --- a/drivers/misc/mei/vsc-tp.c +++ b/drivers/misc/mei/vsc-tp.c @@ -331,7 +331,7 @@ int vsc_tp_rom_xfer(struct vsc_tp *tp, const void *obuf, void *ibuf, size_t len) return ret; } - ret = vsc_tp_dev_xfer(tp, tp->tx_buf, tp->rx_buf, len); + ret = vsc_tp_dev_xfer(tp, tp->tx_buf, ibuf ? tp->rx_buf : ibuf, len); if (ret) return ret;