Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp492007pxb; Tue, 14 Sep 2021 02:10:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZWjS0mBaaS6K3bbxjySi/LGhHQigL2DyQDb8VY6XCxgU78Aqd5KfhoFyMidcmzJlJz2hI X-Received: by 2002:a92:a307:: with SMTP id a7mr5071422ili.308.1631610624698; Tue, 14 Sep 2021 02:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631610624; cv=none; d=google.com; s=arc-20160816; b=ntIoEcDhMooqJ4zY62nOdBI65xbpjYduLoppd+G0KKgu6UkuO3UYDsn9P+uEhXq7r8 iWR3+G3gXEJe9aR6Gn1ppdCC3B9bWInFrcpWSrt1IRTh/WGJ2aEAFeUinoNpXwKc1FR3 IW2fgReVyyI3cvBmrmbMN9OKgRGJpgoXYlj4nWIrpVXHKnZTis7JDnP6HAqJup1wXOry dqJCo/A1iNxUdZM3U2fpImbCBL79Ruc1FqA3YbV/36ipKWSD8m12S5aveMvK3Z9VRUHf oVEDa/tv0CHScMj3Q20c5ZJdkyHoSU5xK+kQCvyYCaSkvx3WPoKjq2nU3Ni4hpDSd0m3 8jHw== 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=28uRr5ZUsfo9TCXa/JzRy2VM1b0vMY5YySjn8TtfOXw=; b=ZZQH0w49PEttEv7nOy6O+gUN0B3WgkHlkHJO4WNGxpz2P35Xp/3lI5EScK+APWLbF8 4hh591SMTVkiRl9MjYAezYhstWSsEPH1D/mCa4bhb4GXV1hSJDF7ski+SZcgOUL/+a1b RPzBcnouT7VhaIlJjpR7N20vNMTzKqaqXp1MVwAAZJhcLgSv5d0wdYBgtMQ9FCZp9A26 5FuB0vJywOOsS7joUNyARAJHXhPuOwBkRokcaDeJ0fqwSx375x2/2FRlmnp03068nxz8 4iDq+LKKwq+nh1NamKXv/xzpI6185tLVmH589+JB6Zo11ytEVd+hzYFvZZlggZKsCPOp 1INg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gDIWrQO8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q2si8949663jae.22.2021.09.14.02.10.12; Tue, 14 Sep 2021 02:10:24 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gDIWrQO8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231586AbhINJJd (ORCPT + 99 others); Tue, 14 Sep 2021 05:09:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:42888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbhINJJc (ORCPT ); Tue, 14 Sep 2021 05:09:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 60FA660E97; Tue, 14 Sep 2021 09:08:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631610496; bh=3NSSJD/hUlD51TGtARk9UEMG5P8iV1pAjCtLdqOmFqE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gDIWrQO8/RKpruPUxvwf/Sj9HEmQ7iwkPPA6M9FqXUGB+8QJ3m/jVdYkjUiWlL1cv /ucrJIbWnYYZFyexK97osyzDFyf+r7FVOtpGYN6+CpxxFU1ibIc8IIDwlYKdgtxlMU kMCEu2P/DItYWd9idJzG9NBbp+PHXZ/8Mju1OvLE= Date: Tue, 14 Sep 2021 11:08:13 +0200 From: Greg KH To: Bixuan Cui Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, will@kernel.org, rafael@kernel.org, robin.murphy@arm.com, joro@8bytes.org, jean-philippe@linaro.org, Jonathan.Cameron@huawei.com, thunder.leizhen@huawei.com, maz@kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH -next v3 1/2] platform-msi: Save the msg context to desc in platform_msi_write_msg() Message-ID: References: <20210828063916.39633-1-cuibixuan@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210828063916.39633-1-cuibixuan@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 28, 2021 at 02:39:14PM +0800, Bixuan Cui wrote: > 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 > Acked-by: Greg Kroah-Hartman