From patchwork Thu Sep 8 13:29:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 604690 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 34220C38145 for ; Thu, 8 Sep 2022 13:29:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232494AbiIHN3b (ORCPT ); Thu, 8 Sep 2022 09:29:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232545AbiIHN3H (ORCPT ); Thu, 8 Sep 2022 09:29:07 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40A59129526; Thu, 8 Sep 2022 06:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662643744; x=1694179744; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=cb/38D5XgcJUt79hNwgcMMzRjj8ed28v6JTWv2P9Fig=; b=ffm5Ke5mTn4foac7NX99JA/F6oZ1MVEWVQQ2eztpYs5my0LPLbocS4R4 9sBHSVuvRTF1jVoZd3nf6TpVhjDEdJWbn+0KzNZRmMAQeT4utvRHLqKUI taJT3I6+UbIOj5oSnL0Wu+Y94t4Fi3rN+7r/1+YIPQQcxxf1HQh6qHISK 5QOLm3K57SdApa7Jb45FFtc4XVsl2yl9AbpLenKhQejfSCuvGWzqivZn2 O5/SYLFv3tt5Vh4ukwVUqoItSf7EE56ojdKsxxOVzqnKl44Is7n5aTduW yB2Lru7rKB9hTISFMBvRaUaiwCxzA+RVU6xzywuwFm+sNjBvJU+Kxz70u g==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="361130140" X-IronPort-AV: E=Sophos;i="5.93,300,1654585200"; d="scan'208";a="361130140" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2022 06:29:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,300,1654585200"; d="scan'208";a="740671478" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga004.jf.intel.com with ESMTP; 08 Sep 2022 06:28:56 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id A4E43235; Thu, 8 Sep 2022 16:29:12 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Hans de Goede , "Rafael J. Wysocki" , Ard Biesheuvel , Mark Brown , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, linux-i2c@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, devel@acpica.org Cc: "Rafael J. Wysocki" , Len Brown , Elie Morisse , Nehal Shah , Shyam Sundar S K , Khalil Blaiech , Andy Gross , Bjorn Andersson , Konrad Dybcio , Will Deacon , Mark Rutland , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Robert Moore , Wolfram Sang Subject: [PATCH v2 0/8] ACPI: unify _UID handling as integer Date: Thu, 8 Sep 2022 16:29:02 +0300 Message-Id: <20220908132910.62122-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Mailer: git-send-email 2.35.1 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org This series is about unification on how we handle ACPI _UID when it's known to be an integer-in-the-string. The idea of merging either all via ACPI tree, or taking ACPI stuff for the v6.1 while the rest may be picked up later on by respective maintainers separately (currently all depends on Wolfram, other patches have got the tags from the maintainers). Partially compile-tested (x86-64). Changelog v2: - rebased pxa2xx patch to be applied against current Linux kernel code - fixed uninitialized variable adev in use (mlxbf) - dropped unneeded temporary variable adev (qcom_l2_pmu) - changed type for ret in patch 8 (Hans) - swapped conditions to check ret == 0 first (Ard) - added tags (Mark, Ard, Hans) Andy Shevchenko (8): ACPI: utils: Add acpi_dev_uid_to_integer() helper to get _UID as integer ACPI: LPSS: Refactor _UID handling to use acpi_dev_uid_to_integer() ACPI: x86: Refactor _UID handling to use acpi_dev_uid_to_integer() i2c: amd-mp2-plat: Refactor _UID handling to use acpi_dev_uid_to_integer() i2c: mlxbf: Refactor _UID handling to use acpi_dev_uid_to_integer() perf: qcom_l2_pmu: Refactor _UID handling to use acpi_dev_uid_to_integer() spi: pxa2xx: Refactor _UID handling to use acpi_dev_uid_to_integer() efi/dev-path-parser: Refactor _UID handling to use acpi_dev_uid_to_integer() drivers/acpi/acpi_lpss.c | 15 ++++++----- drivers/acpi/utils.c | 24 ++++++++++++++++++ drivers/acpi/x86/utils.c | 14 ++++++++--- drivers/firmware/efi/dev-path-parser.c | 10 +++++--- drivers/i2c/busses/i2c-amd-mp2-plat.c | 27 +++++++------------- drivers/i2c/busses/i2c-mlxbf.c | 20 +++++---------- drivers/perf/qcom_l2_pmu.c | 8 +++--- drivers/spi/spi-pxa2xx.c | 35 +++++++------------------- include/acpi/acpi_bus.h | 1 + include/linux/acpi.h | 5 ++++ 10 files changed, 81 insertions(+), 78 deletions(-)