Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp632774pxb; Wed, 29 Sep 2021 06:39:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwze4hDdO5zWyjqyIBV/iCg5Q+rrVdx0PgEuJwzOuFIzTPzVBr469R5qOtx9cVagGM3Wirv X-Received: by 2002:a17:90b:1d84:: with SMTP id pf4mr6656334pjb.85.1632922775532; Wed, 29 Sep 2021 06:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632922775; cv=none; d=google.com; s=arc-20160816; b=Vb0LNUm25yPPQ7+tZo7o/pvMJf9/a7UfLTZVJ49WlsM+N6xZpk94p1SLLzjL3/EaFu TDKZ83zWcbrzfjkl6SvR1QcmwNQcztlYEgI8SU0hcNp8ZP6Mw12NjBmUqI7KbWZj+/89 iszTiMZA8RD4EPb7VBjeiwGD2H29rjwgWmX3dy2XTOKqIkYdIgk/vF47/xRbCwfRoC+b iGWyv+oOU6c4P+oAQxBEfumpaZK1+zJYkGmxe17YKps9aciPOcQgpxQBUVt5/ziLt59Q AsMZP3kDThBYniIBuvnPTdZNKdmfuAwqhjpTRCauxWSqAeH9WxMQIzJONqCJcEUjZQoz sJ6Q== 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=LzB3FDZL0H4BSu4tEo/k4hhmNPCY2QBfRSYhWCe8wks=; b=xHjVi4PlyzPkkSr0oCRZGjx1qpD41BSEX1zUFdQHqMXoGCWllJ0NcIrJDReXLy7LVl 4R4Pmi5yngLr7XThZux5KHmxR486SrIZLKB9M3BJJkKphyAYvLppDVRlfTAXq7bL3gXh NcbKSuEYQxLQTCRlUbtKCHAD6T/BDiCQrGzxX9Axs+p7NV6svgiwPW/RJSb4FOlkZt6x uIpamzCh8vAEkFS9J7pgXjkglgVvqFkUhn1gjBG+YRGS/mAx3T5C3cQRAMR/jJ9J3nS5 thlB0ZfkOU4BzPM4aNB8TTJZnf/e8HR3gYnzdIOOtAH/IM83BU0TZZ2dQrqDcdKEuaO1 YEBQ== 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 q22si2921540pgk.179.2021.09.29.06.39.17; Wed, 29 Sep 2021 06:39:35 -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 S1344311AbhI2NjQ (ORCPT + 99 others); Wed, 29 Sep 2021 09:39:16 -0400 Received: from mga18.intel.com ([134.134.136.126]:59006 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344291AbhI2NjL (ORCPT ); Wed, 29 Sep 2021 09:39:11 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10122"; a="212025192" X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="212025192" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 06:37:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="617514196" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 29 Sep 2021 06:37:26 -0700 From: Heikki Krogerus To: Greg Kroah-Hartman , "Rafael J. Wysocki" Cc: Bjorn Helgaas , Andy Shevchenko , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH 1/2] PCI: Use software node API with additional device properties Date: Wed, 29 Sep 2021 16:37:28 +0300 Message-Id: <20210929133729.9427-2-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210929133729.9427-1-heikki.krogerus@linux.intel.com> References: <20210929133729.9427-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 Using device_create_managed_software_node() to inject the properties in quirk_huawei_pcie_sva() instead of with the old device_add_properties() API. Signed-off-by: Heikki Krogerus --- 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