From patchwork Tue Aug 16 10:16:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heikki Krogerus X-Patchwork-Id: 597790 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58C39C32772 for ; Tue, 16 Aug 2022 10:49:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235134AbiHPKtY (ORCPT ); Tue, 16 Aug 2022 06:49:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235024AbiHPKsx (ORCPT ); Tue, 16 Aug 2022 06:48:53 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4AB0FC307; Tue, 16 Aug 2022 03:16:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660644981; x=1692180981; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xF5gG7Oy9lHphcE7lhSpuLFD+wByK3zXWrKkUkteKYw=; b=CNI4YNi9oNULA7+YtJtoXygH4UBw/+5u0CI7naJE7NDpfV1PpxrmGpdH DbU3bDVvjtdDltPug/ZeoS6d9Jnbv1hQzD0uFbU68HErZCh+PQOfbNsOs wA81qs1B3H/lNRd4DoEzmfnchpd2Fg2bhZFyEuukqciwMAVpS7vEZgBDk t4vuELddrpw4bYY2Un2Ct2JKNsbDxE/nHJA9nN9nTQ2tvAgyQpgEDap0w 6uzH4SrZXzeVZgw+JO1xPoUttKaVSZ/ZH9mJ8biWPR9xNCWh7IMgAS2rx z01axY+TgHoUt3CJnizAaYOWjzGdqx2Qy1I3doOItcDxJsIZXM5gJ5huK Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10440"; a="279141254" X-IronPort-AV: E=Sophos;i="5.93,240,1654585200"; d="scan'208";a="279141254" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2022 03:16:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,240,1654585200"; d="scan'208";a="749260741" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 16 Aug 2022 03:16:16 -0700 From: Heikki Krogerus To: "Rafael J. Wysocki" , Greg Kroah-Hartman Cc: Utkarsh Patel , rajmohan.mani@intel.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH 0/6] ACPI: New helper function acpi_dev_get_memory_resources() and a new ACPI ID Date: Tue, 16 Aug 2022 13:16:23 +0300 Message-Id: <20220816101629.69054-1-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Hi, The helper function returns all memory resources described for a device regardless of the ACPI descriptor type (as long as it's memory), but the first patch introduces new ACPI ID for the IOM controller on Intel Meteor Lake and also separately modifies the driver so that it can get the memory resource from Address Space Resource Descriptor. An alternative would have been to introduce that helper function first so we would not need to modify the driver when the new ID is added, but then the helper would also need to be applied to the stable kernel releases, and that does not feel necessary or appropriate in this case, at least not IMO. So that's why I'm proposing here that we first add the ID, and only after that introduce the helper, and only for mainline. That way the patch introducing the ID is the only that goes to the stable releases. If that's okay, and these don't have any other problems, I assume it's OK if Rafael takes all of these, including the ID? thanks, Heikki Krogerus (5): ACPI: resource: Filter out the non memory resources in is_memory() ACPI: resource: Add helper function acpi_dev_get_memory_resources() ACPI: APD: Use the helper acpi_dev_get_memory_resources() ACPI: LPSS: Use the helper acpi_dev_get_memory_resources() usb: typec: intel_pmc_mux: Use the helper acpi_dev_get_memory_resources() Utkarsh Patel (1): usb: typec: intel_pmc_mux: Add new ACPI ID for Meteor Lake IOM device drivers/acpi/acpi_apd.c | 9 +-------- drivers/acpi/acpi_lpss.c | 9 +-------- drivers/acpi/resource.c | 20 ++++++++++++++++++++ drivers/usb/typec/mux/intel_pmc_mux.c | 12 ++++-------- include/linux/acpi.h | 1 + 5 files changed, 27 insertions(+), 24 deletions(-)