Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1521177rwb; Thu, 10 Nov 2022 18:06:07 -0800 (PST) X-Google-Smtp-Source: AMsMyM7TaFuX0Og2K9iJ3Zv1/R48WAoYhW2qFU6XcCyX10YOIXZ6hsfcPR0ENHOpQAsHjU5AkA5D X-Received: by 2002:aa7:c047:0:b0:461:5917:bd3a with SMTP id k7-20020aa7c047000000b004615917bd3amr4314151edo.146.1668132367522; Thu, 10 Nov 2022 18:06:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668132367; cv=none; d=google.com; s=arc-20160816; b=gGw0FM6mOm+Ph9Yd0ttJ6PZHU6gQKTASJY9Cgsb07d8+3fIjsoGzlU/KUHjv3OGuki mTBx7MDwoE+Nsc1+yjFa3umUGWQ0HI5Pl+dUG/0TP5V9kBLU0UCKev11arZydwKQaLyQ k8A59zx9vXRP6/mx9xC1aTZEgOHxmCG44PuKSDV1d/IagoiaEiZBpM+ijStZYpb158Ok xEUBgAbNZV5bHSljZZdQamAugwiPDzHGXohJC9NdDSP5RJyzW9OZgrFVuBYQpoy3JLdP BuU76WzKlXWnr4iZNx7F2km7MTt6jpfra4b8rbFd4O0qusFq2TRxeJfiTKLe8S2QYTje FJZw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd32-20020a17090762a000b007877b1c7f27si790276ejc.829.2022.11.10.18.05.45; Thu, 10 Nov 2022 18:06:07 -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 + 93 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 Content-Transfer-Encoding: 8bit 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 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 -- 2.25.1