Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp314306ybl; Mon, 12 Aug 2019 17:03:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPy3fK4Wlc+dCLSJCdBCH6ms5bwqRBFOm9BlQhBjNaHh7l8D1pbAhrpfJCi9XR35rAZW2M X-Received: by 2002:a63:e807:: with SMTP id s7mr31250353pgh.194.1565654600782; Mon, 12 Aug 2019 17:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565654600; cv=none; d=google.com; s=arc-20160816; b=XPBXTgAW20Dpd7XloHPH2KSk6O4p6EdLH2sA3eifLCI0E40SLzT+aEicR9AXBYikLG 75BqijZIJHQVtvPSWkW8/wTTo3V1p0SflQgmN1jwkn+Ec6JqsLIxyXmTSC3nrzJ8y+4c h1vRZJ3rgdHf7C7lIOpnPly/JWd03Q52XW+VB483ZUgGzutjinp+0OrZ0tSmFmzg+682 ZdwbkE2bZX65WIVIanCzC1lZl8eoGa87OoS9YX3NRH0mKbyPIDJ79UZXp0XTM9JWBuRi a0KhSCjlfhBPtJOr3ztE+EW1ZcA3p29+C7Ko9j6y+71ROBbcXp5p56flUpddp2F0hT5F ZVvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=pyX06a/u4+m/uyN80VbJfC7DpXqW2TPN0ZhAbzceAR8=; b=cna9s38XjbjmVcV+F99qMl+7jZwi3evBHgXyonY/Z0HGqXEW2G1H6ifPbGcJvr4ZCT IH81zSVwmitO9hwLQVFVZTxxA3Hn/qru6v7TyDiZ02+tXS+XG9rlwW7e85FBZAE79HhP IZEetF5PvcteT77XRuW0t9I9FxYBIH+Y/QXFLCK8To2V7NdEaJDdKKAzTjZGVdUrJ5oE AYFbdaabQx31yDLb9owiDPGAOrj1kNZfxGSpOxu/Qm/gumK/QbPoeHuvb+CktnUA1FMk GsbjAC0pdB4qD2IGtgXRLjh15wXa4tcsObdcjMGmcqKrTH+7o1UhfKkiBkPm311iRGvW 0XKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t17si631080pjw.99.2019.08.12.17.03.05; Mon, 12 Aug 2019 17:03:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727200AbfHLX7x (ORCPT + 99 others); Mon, 12 Aug 2019 19:59:53 -0400 Received: from mga01.intel.com ([192.55.52.88]:19094 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726878AbfHLX7w (ORCPT ); Mon, 12 Aug 2019 19:59:52 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Aug 2019 16:59:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,379,1559545200"; d="scan'208";a="177639013" Received: from firin-mobl2.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.252.205.59]) by fmsmga007.fm.intel.com with ESMTP; 12 Aug 2019 16:59:51 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, vkoul@kernel.org, gregkh@linuxfoundation.org, jank@cadence.com, srinivas.kandagatla@linaro.org, slawomir.blauciak@intel.com, Pierre-Louis Bossart Subject: [PATCH v2 0/3] soundwire: debugfs support for 5.4 Date: Mon, 12 Aug 2019 18:59:39 -0500 Message-Id: <20190812235942.7120-1-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset enables debugfs support and corrects all the feedback provided on an earlier RFC ('soundwire: updates for 5.4') There is one remaining hard-coded value in intel.c that will need to be fixed in a follow-up patchset not specific to debugfs: we need to remove hard-coded Intel-specific configurations from cadence_master.c (PDI offsets, etc). Changes since v1 (Feedback from GKH) Handle debugfs in a more self-contained way (no dentry as return or parameter) Used CONFIG_DEBUG_FS in structures and code to make it easier to remove if need be. No functional change for register dumps. Changes since RFC (Feedback from GKH, Vinod, Guennadi, Cezary, Sanyog): removed error checks used DEFINE_SHOW_ATTRIBUTE and seq_file fixed copyright dates fixed SPDX license info to use GPL2.0 only fixed Makefile to include debugfs only if CONFIG_DEBUG_FS is selected used static inlines for fallback compilation removed intermediate variables removed hard-coded constants in loops (used registers offsets and hardware capabilities) squashed patch 3 Pierre-Louis Bossart (3): soundwire: add debugfs support soundwire: cadence_master: add debugfs register dump soundwire: intel: add debugfs register dump drivers/soundwire/Makefile | 4 + drivers/soundwire/bus.c | 6 ++ drivers/soundwire/bus.h | 16 +++ drivers/soundwire/bus_type.c | 3 + drivers/soundwire/cadence_master.c | 107 ++++++++++++++++++++ drivers/soundwire/cadence_master.h | 4 + drivers/soundwire/debugfs.c | 151 +++++++++++++++++++++++++++++ drivers/soundwire/intel.c | 121 +++++++++++++++++++++++ drivers/soundwire/slave.c | 1 + include/linux/soundwire/sdw.h | 8 ++ 10 files changed, 421 insertions(+) create mode 100644 drivers/soundwire/debugfs.c -- 2.20.1