Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1954003pxb; Fri, 27 Aug 2021 23:44:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMzqEAztivbAhrtVn3kw/6wUEqyXSxQs6co5Qd8OpIfwQM/6mCti0lveRKs+1yDm447Irb X-Received: by 2002:a92:1944:: with SMTP id e4mr9108357ilm.186.1630133076795; Fri, 27 Aug 2021 23:44:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630133076; cv=none; d=google.com; s=arc-20160816; b=e9Aj9iIC3tmxUSc+8wMHNNPmq/UdOrQHjt69n7pjqmVLB5vDQNGcsHkQGKjevbbKFx WfHFG8JxJs9TJJxojMRarPbBuTHUa5blHpQfBS6lLJgCLLimUD20NVpxVkK4TA39sGmC RlWj6tlTPFWjO+tbMARuMeQC3Id8GMJ2kKv6xDbxvaFcwIW3mXvMsp1KOiDklpN1ptPf crWnVmOeNG6MdjCMGPrDu03yIwEsgeFKeRriYcBnw3I8oR2tcgt869RaqFp5kMEsTUw0 iu0tFaKb+pfhsAELeNCFJFVzb0TMB7ow/8CGIjktr0xJXrMDazSX0xs07tmOGzIdhsBu St+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=QopaWaOIxs8v/IS0SXfjxYGU12AvrudZkqYb9C7iBX0=; b=tWq0Y+jfJS9jtorJqdcJjCUfyHuzGeltFOwEqzqQQ7+rbg3x1glnDKpjENu803kEZm dvyhow7tQmVcAp+5uggxDerHDonklvxiDV38GPvLgLm58rpHkMzNk1Q5rZT1zAl1Famj BWCjdj/ku66a3rpF0M/uBJhD6LX9SsV6ffvjvtCNmn3qgnD9ZHzXWn/n92DZZRSrD5gT Uv7IylKLqkEyGsBX8gD0J/H52e3PtCrpxwvbqquT0ZCTynpj1J7OcRQPEVdIMiBeIkJ8 81wWLsBCSECFzG2x2Hb2viGukhzHUPbShvy359KzAVY/DauAFgfDqoFSc6Kwd5d9lRy8 vDLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si8157306ilc.131.2021.08.27.23.44.09; Fri, 27 Aug 2021 23:44:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233317AbhH1Gnm (ORCPT + 99 others); Sat, 28 Aug 2021 02:43:42 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:9377 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232788AbhH1Gnm (ORCPT ); Sat, 28 Aug 2021 02:43:42 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GxRk618NRz8vwr; Sat, 28 Aug 2021 14:38:38 +0800 (CST) Received: from dggpemm500004.china.huawei.com (7.185.36.219) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 28 Aug 2021 14:42:49 +0800 Received: from huawei.com (10.174.28.241) by dggpemm500004.china.huawei.com (7.185.36.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 28 Aug 2021 14:42:48 +0800 From: Bixuan Cui To: , CC: , , , , , , , , , Subject: [PATCH -next v3 1/2] platform-msi: Save the msg context to desc in platform_msi_write_msg() Date: Sat, 28 Aug 2021 14:39:14 +0800 Message-ID: <20210828063916.39633-1-cuibixuan@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.28.241] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500004.china.huawei.com (7.185.36.219) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Save the msg context to desc when the msi interrupt is requested. The drivers can use it in special scenarios(such as resume). Signed-off-by: Bixuan Cui --- drivers/base/platform-msi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/base/platform-msi.c b/drivers/base/platform-msi.c index 3d6c8f9caf43..60962a224fcc 100644 --- a/drivers/base/platform-msi.c +++ b/drivers/base/platform-msi.c @@ -90,6 +90,9 @@ static void platform_msi_write_msg(struct irq_data *data, struct msi_msg *msg) priv_data = desc->platform.msi_priv_data; + desc->msg.address_lo = msg->address_lo; + desc->msg.address_hi = msg->address_hi; + desc->msg.data = msg->data; priv_data->write_msg(desc, msg); } -- 2.17.1