From patchwork Wed May 3 10:50:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 89706 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1235114vqo; Wed, 3 May 2023 04:01:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Cei3yUNI65GWo7a7PEhjDmb6uuy48RLIUXcJe+Hrik2V4CM5TZbeR1oV7eTKry+NeucBU X-Received: by 2002:a17:902:ec87:b0:1a6:ebc1:c54c with SMTP id x7-20020a170902ec8700b001a6ebc1c54cmr2156169plg.1.1683111688014; Wed, 03 May 2023 04:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683111687; cv=none; d=google.com; s=arc-20160816; b=CpldtRgxuVdk74rEqbhoH8fPz04kDAc0x63ogLkmpYSpYcclhiy0Us+0chkvA73YC+ 5Vp5S5KP+3iN8IHERlnX4Sua49fKzJKGDhZLwaCZlcJ1TpzYCoIsS/EjtzZW/ujEEQqc UZL+PwHx6W0RPHYNbxXlMKu4G9OLbHvvtf5m4xV9aTM1Ug/jYrfZm3ZZe+Zum0nvuHxj IgJngeNWuWrSIceWp7yGb+ybSXqpxbH6fqSR7vXqlH5MaFn0WpIZfCRxIUrCyMtRbYCh vd5Ts0PQJMsQtJkZMlrgJXJt6znQM4tUoApblk+WwJgiQU2oEz/GkUxl4/ZMeSRsdvh7 q4Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=XYZeW02Sjmh+HkijjroSW12OfCrr+jD0jTrCYMxvQZc=; b=k5/loras9YsYq0iQWvl6eteVW51Pv0R0sTS9nGq0R9B5nx2wImt1ELdFGZRkNQfgN7 ottbRgeltuNzaJbx3ot1dO5sZ9OxV9JAs7K/gPX7DYFxP5xWPHML6ZEaE3nBVr4V7tQr u44cxh7U4sUrmdgUsaG6egGCjN58ks4YZ5O2Nn2DWwicaf+k4JrQfa1yeeOwXnT/CY7Y QAquEGpQZVsUCnzKaU+EDwnWBJ2yD6JhClDsKsTkjwVaNMxwRjSZI8mpJKmjyHOehf3q yCiOuBluqbdzXr/uU482SeYTWrU7Zb2HUIHy8uQf5gDFV0nIAmlvK+BukNbgUWPMtSEh CuIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QJCS10aZ; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m7-20020a170902bb8700b001aae82caf71si8673642pls.211.2023.05.03.04.01.10; Wed, 03 May 2023 04:01: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=@kernel.org header.s=k20201202 header.b=QJCS10aZ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbjECKuv (ORCPT + 99 others); Wed, 3 May 2023 06:50:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229588AbjECKui (ORCPT ); Wed, 3 May 2023 06:50:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59BB512F for ; Wed, 3 May 2023 03:50:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E6FBE612D4 for ; Wed, 3 May 2023 10:50:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0444C433EF; Wed, 3 May 2023 10:50:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683111036; bh=raHLGW/5wOoOVfcN05BeVL2g0OOm/nSLn1A5PFvHSwg=; h=Date:From:To:Cc:Subject:From; b=QJCS10aZl4b5yjmgjHNhFu8sDZ1hnScahyZspM85Ph3yu79mC1PRyyvOdBVa2GP6A d6Nkh6xWmPpA7W20tF9zKxa6/m0RCWoIgrcsDb0ZhUABz2FNt229NimP0ivpLxr1sY 08Z1aGqn6DDXryOcbCGVvXiIMJiNpbm/Ab1s88DHhLOoa1PrBWU7wCfilIuroO1WuZ F/IoWHZaXIT3O+uAJf8GGp9BT/ZkCd5d4gNDY2bMNCSdRulm1qt1maHu2QeBqB/tsJ AoOatPcAxksR1TepmyyaYRc2/aJ4Sjw9EEHmnF0l2Qa7+90suyIOcoQm5mQ5D44/gF UTm/dKYXzr4bg== Date: Wed, 3 May 2023 16:20:32 +0530 From: Vinod Koul To: Linus Torvalds Cc: LKML Subject: [GIT PULL]; soundwire updates for v6.4 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764870521366465855?= X-GMAIL-MSGID: =?utf-8?q?1764870521366465855?= Hello Linus, Please pull to receive updates for soundwire subsystem. This features AMD soundwire controller driver, bunch of Intel changes for future platform support, sdw API updates etc. The following changes since commit fe15c26ee26efa11741a7b632e9f23b01aca4cc6: Linux 6.3-rc1 (2023-03-05 14:52:03 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire.git tags/soundwire-6.4-rc1 for you to fetch changes up to 67572c8dc64412880b81d4bbc2f354dd5eddaa7d: soundwire: intel_auxdevice: improve pm_prepare step (2023-04-12 15:36:55 +0530) ---------------------------------------------------------------- soundwire updates for 6.4-rc1 - Support for AMD soundwire controller - Intel driver updates to support future platforms - Core API sdw_nread/nwrite_no_pm updates to handle page boundaries ---------------------------------------------------------------- Charles Keepax (3): soundwire: bus: Remove now outdated comments on no_pm IO soundwire: bus: Update kernel doc for no_pm functions soundwire: bus: Update sdw_nread/nwrite_no_pm to handle page boundaries Eugene Huang (1): soundwire: dmi-quirks: add remapping for Intel 'Rooks County' NUC M15 Krzysztof Kozlowski (3): soundwire: qcom: correct setting ignore bit on v1.5.1 soundwire: qcom: define hardcoded version magic numbers soundwire: qcom: gracefully handle too many ports in DT Pierre-Louis Bossart (20): soundwire: intel: move common definitions to header file soundwire: intel: remove stale/misleading comment soundwire: intel: remove PDI-level restrictions on rates and formats soundwire: intel: remove useless abstraction soundwire: intel: simplify sync_go sequence soundwire: intel: add sync_arm/sync_go to ops soundwire: intel: use indirection before moving bus start/stop sequences soundwire: intel: move bus common sequences to different file soundwire: intel: add abstraction for cmdsync check soundwire: intel: move bank switch routine to common intel_bus_common.c soundwire: cadence: remove CDNS_MCP_CONFIG_SSPMOD soundwire: cadence: add helpers to access IP_MCP registers soundwire: cadence: split access to IP_MCP_CONFIG fields soundwire: cadence: split access to IP_MCP_CONTROL fields soundwire: cadence: split access to IP_MCP_CMDCTRL fields soundwire: cadence: change access to IP_MCP_CMD_BASE soundwire: stream: remove bus->dev from logs on multiple buses soundwire: stream: uniquify dev_err() logs soundwire: intel: don't save hw_params for use in prepare soundwire: intel_auxdevice: improve pm_prepare step Richard Fitzgerald (2): soundwire: bandwidth allocation: Use hweight32() to calculate set bits soundwire: bus: Fix unbalanced pm_runtime_put() causing usage count underflow Shuming Fan (1): soundwire: stream: restore cumulative bus bandwidth when compute_params callback failed Vijendar Mukunda (8): soundwire: export sdw_compute_slave_ports() function soundwire: amd: Add support for AMD Manager driver soundwire: amd: register SoundWire manager dai ops soundwire: amd: enable build for AMD SoundWire manager driver soundwire: amd: add SoundWire manager interrupt handling soundwire: amd: add runtime pm ops for AMD SoundWire manager driver soundwire: amd: handle SoundWire wake enable interrupt soundwire: amd: add pm_prepare callback and pm ops support drivers/soundwire/Kconfig | 10 + drivers/soundwire/Makefile | 7 +- drivers/soundwire/amd_manager.c | 1208 ++++++++++++++++++++++ drivers/soundwire/amd_manager.h | 258 +++++ drivers/soundwire/bus.c | 112 +- drivers/soundwire/bus.h | 20 +- drivers/soundwire/cadence_master.c | 139 ++- drivers/soundwire/cadence_master.h | 5 +- drivers/soundwire/dmi-quirks.c | 25 + drivers/soundwire/generic_bandwidth_allocation.c | 15 +- drivers/soundwire/intel.c | 336 +----- drivers/soundwire/intel.h | 67 ++ drivers/soundwire/intel_auxdevice.c | 6 +- drivers/soundwire/intel_bus_common.c | 259 +++++ drivers/soundwire/qcom.c | 20 +- drivers/soundwire/stream.c | 20 +- include/linux/soundwire/sdw_amd.h | 109 ++ include/linux/soundwire/sdw_intel.h | 11 + 18 files changed, 2189 insertions(+), 438 deletions(-) create mode 100644 drivers/soundwire/amd_manager.c create mode 100644 drivers/soundwire/amd_manager.h create mode 100644 drivers/soundwire/intel_bus_common.c create mode 100644 include/linux/soundwire/sdw_amd.h