From patchwork Fri Jan 15 09:49:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heikki Krogerus X-Patchwork-Id: 363867 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0FD33C433DB for ; Fri, 15 Jan 2021 09:51:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BE99A23403 for ; Fri, 15 Jan 2021 09:51:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729116AbhAOJuz (ORCPT ); Fri, 15 Jan 2021 04:50:55 -0500 Received: from mga18.intel.com ([134.134.136.126]:51113 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726829AbhAOJuz (ORCPT ); Fri, 15 Jan 2021 04:50:55 -0500 IronPort-SDR: WcKDESq7H4ynFERcAiuFJDutXHrOgSR8bdXsDVoPCUJQpMhFsa8h4ZzzVe6XbSTsE9zaba2fE0 9DHx4/LDSPng== X-IronPort-AV: E=McAfee;i="6000,8403,9864"; a="166195715" X-IronPort-AV: E=Sophos;i="5.79,349,1602572400"; d="scan'208";a="166195715" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jan 2021 01:49:17 -0800 IronPort-SDR: ogNTLClcTE7XycGsagNh8CZ8d+3nIpa8dtTrJhgV+fBOcf75Yt0rJ05O8A2nv8KbMmNHmn3h0S J/oi4N1lmU/Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,349,1602572400"; d="scan'208";a="465538723" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 15 Jan 2021 01:49:15 -0800 From: Heikki Krogerus To: Greg KH Cc: Felipe Balbi , "Rafael J. Wysocki" , Andy Shevchenko , Daniel Scally , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH v3 0/4] Remove one more platform_device_add_properties() call Date: Fri, 15 Jan 2021 12:49:10 +0300 Message-Id: <20210115094914.88401-1-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Hi, I'm now clearing the dev_fwnode(dev)->secondary pointer in device_remove_software_node() as requested by Daniel and Andy. Thanks guys, it's much better now. I also took the liberty of including one more PCI ID patch where I add PCI ID for the Alder Lake-P variant. I hope that is OK. Andy, I dropped your Tested-by tag because of the change I made to the first patch. If you have time to retest these, I would much appreciate. v2 cover letter: Hi Felipe, Rafael, This is the second version of this series. There are no real changes, but I added the Tiger Lake ID patch to this series in hope that it will make your life a bit easier, assuming that Rafael will still pick these. The original over letter: I originally introduced these as part of my series where I was proposing PM ops for software nodes [1], but since that still needs work, I'm sending these two separately. So basically I'm only modifying dwc3-pci.c so it registers a software node directly at this point. That will remove one more user of platform_device_add_properties(). [1] https://lore.kernel.org/lkml/20201029105941.63410-1-heikki.krogerus@linux.intel.com/ thanks, Heikki Krogerus (4): software node: Introduce device_add_software_node() usb: dwc3: pci: Register a software node for the dwc3 platform device usb: dwc3: pci: ID for Tiger Lake CPU usb: dwc3: pci: add support for the Intel Alder Lake-P drivers/base/swnode.c | 71 ++++++++++++++++++++++++++++++++----- drivers/usb/dwc3/dwc3-pci.c | 69 ++++++++++++++++++++++------------- include/linux/property.h | 3 ++ 3 files changed, 110 insertions(+), 33 deletions(-) Acked-by: Felipe Balbi