Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11444364ybi; Thu, 25 Jul 2019 16:43:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhs9QUBEcqy5S0drxOIBvLyDQ8wQqc+7vRI2+dQKcsOjj++3pONVsT04DgiXy3enodlUEq X-Received: by 2002:aa7:9514:: with SMTP id b20mr19614120pfp.223.1564098188146; Thu, 25 Jul 2019 16:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564098188; cv=none; d=google.com; s=arc-20160816; b=KsLm6U/kt0r0pxMrj+YHLm+1Tq2k0i3HOuPztN2pRa6ptcmY8RgFOAiSfC/TPlWy+Z V0lM5JnIFxv1aBepLr9YB0g1x6qIhVUztWBZj9dDK7OdsjS36dSLOUdQJZeADVcKDzoS 8nSBImZfwv7nLGZRlCjCD1t0YWbM4xu1D0Jxx4XqbSciTMnk3rjBBCcC/tA+sfgJYWOe 7M4+A3P96w7qEl3uy+ukcP/tml4QZM0MBqx1sRwUiyAXxHhip2Lq3XiAL54lI5u4TxiT WpPO85dKgQ3aeXUovpGbHoRyoE6kE/eqS16zR0Oh8Ewa3Z0CLzgeichpamHUuOZc2KRu fjHA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=v29M3oz8EALHIQx38OXPh57bCwxJ6OOtOEhf/dmD+uM=; b=RHsLsEJjKFvy1Tb9J1/tR5eCBlZE6lbaXjL+PYDnNt5Rv8dLzFKZbRD+UJI06OcAx9 tXesqiXkPJ/+VPDPa97ecV+KJRlL+4N4SysKTS1pYjl0+cn+57riivLiAb9BPFLPbdBf Mllm438ilmZishu4ThoJPPxUMG/7z3XHgRo1J2XIFvEMKJCTZfIrKVC4IRvAAq/hBWMs XNFSW2H3IuQh3RQilFE0Q6sOYr5hkxCGisNfMr7z3SEkTOMtGPFLAIqrHsgguqipp19w ihaZngbQLdr+pV4yhjKsC9BU4b3nk8trYEqMdktDSTpnUa5nFqrfbk3Fx6+9N7qFb9vx a4Dg== 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 c16si45273200pjq.20.2019.07.25.16.42.53; Thu, 25 Jul 2019 16:43:08 -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 S1727562AbfGYXlv (ORCPT + 99 others); Thu, 25 Jul 2019 19:41:51 -0400 Received: from mga06.intel.com ([134.134.136.31]:51850 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727531AbfGYXlr (ORCPT ); Thu, 25 Jul 2019 19:41:47 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jul 2019 16:41:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,308,1559545200"; d="scan'208";a="369874817" Received: from amrutaku-mobl1.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.255.230.75]) by fmsmga006.fm.intel.com with ESMTP; 25 Jul 2019 16:41:46 -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 , Sanyog Kale Subject: [RFC PATCH 30/40] soundwire: cadence_master: add kernel parameter to override interrupt mask Date: Thu, 25 Jul 2019 18:40:22 -0500 Message-Id: <20190725234032.21152-31-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> References: <20190725234032.21152-1-pierre-louis.bossart@linux.intel.com> 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 The code has a set of defaults which may not be relevant in all cases, add kernel parameter as a helper - mostly for early board bring-up. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/soundwire/cadence_master.c b/drivers/soundwire/cadence_master.c index 18c6ac026e85..dede55072191 100644 --- a/drivers/soundwire/cadence_master.c +++ b/drivers/soundwire/cadence_master.c @@ -20,6 +20,10 @@ #include "bus.h" #include "cadence_master.h" +static int interrupt_mask; +module_param_named(cnds_mcp_int_mask, interrupt_mask, int, 0444); +MODULE_PARM_DESC(cdns_mcp_int_mask, "Cadence MCP IntMask"); + #define CDNS_MCP_CONFIG 0x0 #define CDNS_MCP_CONFIG_MCMD_RETRY GENMASK(27, 24) @@ -830,6 +834,9 @@ int sdw_cdns_enable_interrupt(struct sdw_cdns *cdns) /* now enable all of the above */ mask |= CDNS_MCP_INT_IRQ; + if (interrupt_mask) /* parameter override */ + mask = interrupt_mask; + cdns_writel(cdns, CDNS_MCP_INTMASK, mask); return do_reset(cdns); -- 2.20.1