Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp537792pxb; Thu, 30 Sep 2021 11:18:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEdjVhnt6qhrPaUR2pxwPK3hbjQ+cCMg+GMX4/y96xU9RyTtgX+Z3zOFUkpqYL+6iGi5ns X-Received: by 2002:a17:90a:f013:: with SMTP id bt19mr14905482pjb.98.1633025898973; Thu, 30 Sep 2021 11:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633025898; cv=none; d=google.com; s=arc-20160816; b=obMBl8AAfLgHml5HZ+kaQSZ0ctz1iYRTKbf6IKofX4zQiSGwiQlUmVfr9Lx+S3KWiC WhzQxdkyVUi7jCDXp4iyg6JalHkmcq0+hTu8HDq27Io2V7rpSVV8lDH4gglHMHx6yB5C E+Y2F4dxP8i11ZQAUtKOTkP0G/nVk9s7QwMw2NCJ1lrGu4RBWH3jX6ZmARTiwGRe2v54 MImpxoEV63Xtb/OFprRhusrMGLl37fJQ78byRNqD4Q84c4VItLLA/PrOkVwK/DlGA5zx Ul8f5pGjWP5sSVTZkZ4ljaJ/suggPBSszl8P9YLAvYFAF0mxvuEvOjc24l93aEDCN/Jx NoQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=NPx+b8xLlo5M8UvDAAObWDeq1qObmxHzcusvfcDCvW0=; b=K8AlsdOTUaR1MEyedQfzN+9hn1uDb9uaildaIa7Wa2+kBdaUeiQ0+iK3ttUvnUWgn2 BQEIuMK2hiIwXwtRPbkuWkCIlnyCgbDa/b0U0V9b/FL53Ingd6xYbbow8rGhfL12ef+Z 9iqOjokR2iP6CulYLy5ugcQq161uXc92pgDYznm9tEwpLNf9axegcXkAQfzQ6C21Rhqw YtIGA6qMHSO6vbEW0ZM0o2LsJgxmQfBNaZQ7tq5UpbXVGhyAIgxXConMVvGdJdN0Gd4W oh4D5ZUtVbswVJdV9RQTmRQQjJnOlr/pMZvNMLscpBah60eNcUpSvjzEfHyECF/VdkOV jdEw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ls18si5262856pjb.140.2021.09.30.11.18.04; Thu, 30 Sep 2021 11:18:18 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350670AbhI3MOn (ORCPT + 99 others); Thu, 30 Sep 2021 08:14:43 -0400 Received: from mga04.intel.com ([192.55.52.120]:38148 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348818AbhI3MOf (ORCPT ); Thu, 30 Sep 2021 08:14:35 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10122"; a="223283954" X-IronPort-AV: E=Sophos;i="5.85,336,1624345200"; d="scan'208";a="223283954" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2021 05:12:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,336,1624345200"; d="scan'208";a="618097814" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 30 Sep 2021 05:12:43 -0700 From: Heikki Krogerus To: Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Bjorn Helgaas , Andy Shevchenko , Zhangfei Gao , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v2 1/2] PCI: Convert to device_create_managed_software_node() Date: Thu, 30 Sep 2021 15:12:45 +0300 Message-Id: <20210930121246.22833-2-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210930121246.22833-1-heikki.krogerus@linux.intel.com> References: <20210930121246.22833-1-heikki.krogerus@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In quirk_huawei_pcie_sva(), use device_create_managed_software_node() instead of device_add_properties() to set the "dma-can-stall" property. Reviewed-by: Andy Shevchenko Acked-by: Zhangfei Gao Signed-off-by: Heikki Krogerus --- Hi, The commit message now says what Bjorn requested, except I left out the claim that the patch fixes a lifetime issue. There shouldn't be any functional impact. thanks, --- drivers/pci/quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index b6b4c803bdc94..fe5eedba47908 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -1850,7 +1850,7 @@ static void quirk_huawei_pcie_sva(struct pci_dev *pdev) * can set it directly. */ if (!pdev->dev.of_node && - device_add_properties(&pdev->dev, properties)) + device_create_managed_software_node(&pdev->dev, properties, NULL)) pci_warn(pdev, "could not add stall property"); } DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_HUAWEI, 0xa250, quirk_huawei_pcie_sva); -- 2.33.0