From patchwork Tue May 28 19:29:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 799877 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 86C8DC25B78 for ; Tue, 28 May 2024 19:30:47 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B54A9A4D; Tue, 28 May 2024 21:30:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B54A9A4D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1716924644; bh=4ERwcxQsvUfNv1qgUK6eoCOJi5v1+dTD+vRdxYfmqls=; h=From:To:Cc:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=vOdLilmJ2crIhjt4FpEau4cK5lFH8GRt2B0/uMSJkVT8LVVwfOD+15zXr0TLNcojI 06jHf/yPMnUQ4JojMgJVyVAPxEWawX0CewxRkclpg4kASaRPG74bfM5/7xeEGFnyO0 Q6SqFHTr2wBUBTOiG5wavvWexIzPejDB71t9Q+T8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3EA5FF805AD; Tue, 28 May 2024 21:30:12 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 2F529F80579; Tue, 28 May 2024 21:30:12 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id B1A4FF80494; Tue, 28 May 2024 21:30:05 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 28C78F800BA for ; Tue, 28 May 2024 21:29:56 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 28C78F800BA Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=nhzFxSeF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716924598; x=1748460598; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4ERwcxQsvUfNv1qgUK6eoCOJi5v1+dTD+vRdxYfmqls=; b=nhzFxSeFdO9CBzv52DRynJP47J4EY5NBZH0yfCHGtf/Gl4gojP4TITi7 t1GI1s9ALJSbYqBIOvtiVWUFMyHABAvKBVQmTqs87GvPOjqHiS5Y8ZAzW U1PDljugwHqFjWT5ceQr9d5WVDk6SOgj2OCFtYF9c5jc3HTqJxFK7SPNH We8XAZY+MiXKDWKY/PRA8Iu1EsywwWNAuia9xfOiiM7Q6BUgKvCZiuasD VmsICQP6i1IbwU8caHONiLdQ/muBt2kP68d2O5zRYeNxmDcvJoaIVlIcX w+m0PAb0jDpby+UzTq4VV75CiFX0uyIYbzdcf4/Dsnu8A7PEwuEQx6Vz0 A==; X-CSE-ConnectionGUID: ZBe3/7bWSEySO5K0lPbOJQ== X-CSE-MsgGUID: xSU15tkYSminArUbnHtF6g== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="24711836" X-IronPort-AV: E=Sophos;i="6.08,196,1712646000"; d="scan'208";a="24711836" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 12:29:52 -0700 X-CSE-ConnectionGUID: qzfW3SnHSfGbj7LOEBqI4w== X-CSE-MsgGUID: DJY626KCTJu6p6jlLXTKbw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,196,1712646000"; d="scan'208";a="35246716" Received: from unknown (HELO pbossart-mobl6.lan) ([10.125.110.237]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 May 2024 12:29:51 -0700 From: Pierre-Louis Bossart To: linux-sound@vger.kernel.org Cc: alsa-devel@alsa-project.org, tiwai@suse.de, broonie@kernel.org, rafael@kernel.org, vkoul@kernel.org, andriy.shevchenko@linux.intel.com, Pierre-Louis Bossart Subject: [PATCH 0/3] ACPI/ALSA/soundwire: add acpi_get_local_u64_address() helper Date: Tue, 28 May 2024 14:29:32 -0500 Message-ID: <20240528192936.16180-1-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: Q6XCKRH6EYGN7IBA5JSBMGMRPMR7FEEF X-Message-ID-Hash: Q6XCKRH6EYGN7IBA5JSBMGMRPMR7FEEF X-MailFrom: pierre-louis.bossart@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The acpi_get_local_address() helper assumes a 32-bit ADR is used. If we want to use this helper for SoundWire/SDCA ASoC codecs, we need an extension where the native 64-bits are used. This patchset suggests a new helper, acpi_get_local_address() may be renamed if desired in a folow-up patch. The path of least resistance would be to merge this patchset in the ASoC tree, since I have additional changes for ASoC/SDCA (SoundWire Device Class) that depend on the new helper. Pierre-Louis Bossart (3): ACPI: utils: introduce acpi_get_local_u64_address() soundwire: slave: simplify code with acpi_get_local_u64_address() ALSA: hda: intel-sdw-acpi: use acpi_get_local_u64_address() drivers/acpi/utils.c | 22 ++++++++++++++++------ drivers/soundwire/slave.c | 13 ++++--------- include/linux/acpi.h | 1 + sound/hda/intel-sdw-acpi.c | 6 +++--- 4 files changed, 24 insertions(+), 18 deletions(-) Reviewed-by: Andy Shevchenko