From patchwork Fri Nov 11 01:31:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bard Liao X-Patchwork-Id: 1476 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp477178wru; Thu, 10 Nov 2022 17:33:17 -0800 (PST) X-Google-Smtp-Source: AMsMyM6EV0+vfFFeLEWtKljBS/hb4yYDnLKB+pZGLJaz9D+FFz0WoxSDMoXbPqbpl/R6qQ/CB27J X-Received: by 2002:a05:6402:1642:b0:461:8503:2b46 with SMTP id s2-20020a056402164200b0046185032b46mr4126528edx.202.1668130396933; Thu, 10 Nov 2022 17:33:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668130396; cv=none; d=google.com; s=arc-20160816; b=Q7zsGOYoupZWcD7j2/wsRmVcMkUbCxUXWSS3rpSCRyKdZpPSYmIC8ed37ND/QX/cYL NXmhk5cbe7oggdS34VMGc8dEvF4l/YP4nGUEOSHTyBa3rPIgeAx59ABi6md0Fdn/E6B+ y+jFWx5IESo38B2BFxY2oAQTTnUyo5W+krRyVj4NeyxtBNV6CjSJMOgF3wktp/UdB1zs yAxSM0t5RFke+7ZtgPsxiV2XSIxbxEF+efglDURdfWIH75+XT43hyD1eObKzjbB4Tg0U OQsHglVpS9BneH6YY+6o3Ggmte7UAD6lkfYsiAeh4d7Bo4meZbDz4Q/fXauwWJuH2Q37 uD0Q== 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=xpMa3gFTBTT8SzEHmMJmyG+ZNGQigyb8WkUM6dghC+g=; b=qIhBmbSfdX7Fgzuyg32z8QYpzq2SHq4kjuvtvTl7DlZGWheHeXmqWV6HCvpU4mxO5d zIhmAnJrPrTP3wFRhnINDCOcLoSTefKOX9zK4E/D6baLpdN0kyhzTrfp/HEG30pkJ3cA LGtHS2Xz4jrHDLOpHkxjt8ex+CFU2Kl9zk3qbAOFehNOZCk2byCdw/hb0fnkowVKJhjO n44SZDEX1TVFZyDxv5jyIFcT8uBxngQKI4MN3ayvC8c8+fsl05bUTlxapwUeEiB1tkS6 5X28mNXMOLX7GfCj4BY4YUrmAgh2Tj4RqH+bneautKArJkpRLbHcowfMbxnqrh2vsXPt JtgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=iHUv0F+v; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p7-20020a1709060e8700b007ae286f26b1si173781ejf.620.2022.11.10.17.32.53; Thu, 10 Nov 2022 17:33:16 -0800 (PST) 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=iHUv0F+v; 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 S232077AbiKKB3u (ORCPT + 99 others); Thu, 10 Nov 2022 20:29:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbiKKB3s (ORCPT ); Thu, 10 Nov 2022 20:29:48 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBFD66175C for ; Thu, 10 Nov 2022 17:29:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668130187; x=1699666187; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2pur3i1m7TU4lByzoWZ7E5DjI09dYrh2ZHxi79WNNow=; b=iHUv0F+vNFYpSEwsaVilEmf6uMoxihdiND0LoqaOBlFi/Wuj3fWf2cWN MfiXOW6K0u/zMx5BUHv/wVSLnSVPuo5IPrfXy3AVOL+R+slVlIGZKmwYj hNt0shyk2d1ZU1YK27OUGUXGaA7yVAO1BSOR3pd3a7EW1OT2EctlPXJgr WZyAifa4IhrJQzDnFUzAI9z4YIlTsI82/h/w8dtQ/0suNUOmaI5DZOwrg fnEGGV1s06iWUxw5kXl6W8IJZAcDZqSyIZEEfl+ohpgGxUpovWqPpKFsO YS8PHAXLpZAhmRBk4mbnZxQwvqSsApNu8bOA1gVg8VM7m7gd43A+ux3JJ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="294847795" X-IronPort-AV: E=Sophos;i="5.96,155,1665471600"; d="scan'208";a="294847795" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2022 17:29:47 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="780003212" X-IronPort-AV: E=Sophos;i="5.96,155,1665471600"; d="scan'208";a="780003212" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2022 17:29:45 -0800 From: Bard Liao To: alsa-devel@alsa-project.org, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: [PATCH 0/7] soundwire: intel: introduce hw_ops and move auxdevice handling to dedicated file Date: Fri, 11 Nov 2022 09:31:27 +0800 Message-Id: <20221111013135.38289-1-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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?1749161498944486676?= X-GMAIL-MSGID: =?utf-8?q?1749161498944486676?= This series adds yet another set of cleanups a) all the helpers are now exposed as hw_ops callbacks b) the auxiliary device code is now completely generic. This will allow for easier introduction of new hw_ops implementations in the future without throwing away all the goodness of the auxiliary device handling. Since there will be a tighter coupling with HDaudio, it's likely that future hw_ops are implemented in the SOF driver directly. Pierre-Louis Bossart (7): soundwire: intel: start using hw_ops soundwire: intel: add debugfs callbacks in hw_ops soundwire: intel: add register_dai callback in hw_ops soundwire: intel: add bus management callbacks in hw_ops soundwire: intel: add link power management callbacks in hw_ops soundwire: intel: add in-band wake callbacks in hw_ops soundwire: intel: split auxdevice to different file drivers/soundwire/Makefile | 2 +- drivers/soundwire/intel.c | 658 +-------------------------- drivers/soundwire/intel.h | 96 +++- drivers/soundwire/intel_auxdevice.c | 678 ++++++++++++++++++++++++++++ drivers/soundwire/intel_auxdevice.h | 18 + drivers/soundwire/intel_init.c | 2 + include/linux/soundwire/sdw_intel.h | 44 ++ sound/soc/sof/intel/hda.c | 2 + 8 files changed, 853 insertions(+), 647 deletions(-) create mode 100644 drivers/soundwire/intel_auxdevice.c create mode 100644 drivers/soundwire/intel_auxdevice.h