Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3479526rwb; Tue, 16 Aug 2022 03:58:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR5dZIonuPyddWeccLxYQbYp6fYNhoNcKFMrFqO++Ch03u2Yk7omKNlHc4ZRAe3W4o9Sexyn X-Received: by 2002:a05:6402:3287:b0:43d:bcda:bd20 with SMTP id f7-20020a056402328700b0043dbcdabd20mr18350542eda.414.1660647507582; Tue, 16 Aug 2022 03:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660647507; cv=none; d=google.com; s=arc-20160816; b=UlGBFVUgKcbamrHA6WgR/0T8Zc1/+xngUVcYX9KZ/J1uae2QJgSFkluzu0PTrFNvzK faEIXL1t67fhinbBhV/DPhiV6hv7sFpoiHYltGqLrhO1nyPxgbRJnL7+iL2auFg6YrxH WTZke+PxA2bPWUIIAFmAunfwwxhfKoEdd8X4X/ckfnHL9SorNyoOivA44VdfWu0D59qO DmuuCmGcjvZOCPmtojSTeo206j+0CeBwoaqs03KLJ6fL2H0idBHfx59SdrB7/Ti8UxsP 7QpP8WqqWqhE+2bOka0zh0bi/XiS5fbXvCcACMbMKWGFw8Yy/gb2HLx4R2jjeId3dFNE xzJQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=MZYQ6T0EtjQn0/yEBffa4HbFUQp1UrHKz6YlaojlkYk=; b=efWRcLiEGJ0wGNEqqg00AfqCLHjnt6jAcEAG2XDJc6sx571A0+hcGlw8CS+ZydZKUv FHQHCy0UsF3n85N0feNymLLXjtmbnrdTazDRj8Ep31u7RMAZOFjbv+sOwR447TpZ2P/+ LDL953+oRpuZleG8UzBaxNiEC651WQFM20RDNMqE2A4tqBCAWHhDxwdP/wy5DBxuvx9m LBiX3AabdEXaL3Und/aHa+/s+56v4stbmRtAXefQ8q/Xgk4erpH7fiNaNdA875buy+AB Ey68rjdAKDZVofwlbmpSTjgvppIXcvsHMCQZHi1vM34/1L9/iH7N/qQf/LeqX2n72eSZ rEJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CNI4YNi9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg3-20020a1709072cc300b0073872f387f1si2515361ejc.244.2022.08.16.03.57.57; Tue, 16 Aug 2022 03:58:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CNI4YNi9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235136AbiHPKtY (ORCPT + 99 others); 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.35.1