Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11444289ybi; Thu, 25 Jul 2019 16:43:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5Hv//IGFqyUeHIfOs474DDKju6fT7I+P0cBau2ERzzws+0bwSwKmaovA+RTCJuvDNkpQC X-Received: by 2002:a17:902:7781:: with SMTP id o1mr93395710pll.205.1564098181165; Thu, 25 Jul 2019 16:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564098181; cv=none; d=google.com; s=arc-20160816; b=YLIko2WMiY3h0NuAHreYdagljPa6ww4sN9yrsHv7AJbFOkWg3vivACerAZ11YLNunH 500freKRqn7vijbW7lxRAtxGmGNeq2g0zrZWrxSBXZCeLjYNi6BM3Jl5IhMpYKVKqhl6 5A6oi3mZLRS7kfUIFKS3KURlTPbjIHGsBDOvaf2e5+dBUwGDkTSk0tBGVfN7XA+7FCDO b8b3TZie4sC9FDdk1jwNtS3WwD4wsDgPPkTd7v9u1wgwVJlw0pJShtN9OiMiiP7iLUQR 9bpYn56/gICfWaIb3E0LtY6bsA7YCWB+dLlvCnjARycQimQ4UNuMbhYJonVJhrDkuZEY T6eA== 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=veqbe6YXv2anNuriCIVX+XTNbMc4HfgjNLYsBkkcloU=; b=CFFRIm0p2oGyDFYGd3/jmFSQ/Bltym105CXm8ZwP2ADcRdpaJX5S4LSsRD0MNuf3Fg OZwF6LHIxloZUIRZd/jGKfA/3WOMCDTgMyrJSaKnR+UWA/PkvI3X8LRJffVbFJEngKD4 pQlQg9Mn/rPqklBzE1ydC0+iXj35ucJ/ubvTDAr9N+NUKaDTRX5WeBvnpJWbEQidR+gs UMOB4tuJRRwV29knZnjdpaZZiZxUz2d5k3zrT85mUdYmY8qF2CuM9iu3T0/M49M39RiT 7tJRvjgsDiRr2GEtrCWpQItwNhe92fvZtrZElAEs9WzF4aHpH2bkWo2udDoahaecOGC3 2jNA== 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 l1si20811080pjq.17.2019.07.25.16.42.46; Thu, 25 Jul 2019 16:43:01 -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 S1727248AbfGYXlS (ORCPT + 99 others); Thu, 25 Jul 2019 19:41:18 -0400 Received: from mga06.intel.com ([134.134.136.31]:51808 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727230AbfGYXlQ (ORCPT ); Thu, 25 Jul 2019 19:41:16 -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:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,308,1559545200"; d="scan'208";a="369874684" 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:15 -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 11/40] soundwire: cadence_master: simplify bus clash interrupt clear Date: Thu, 25 Jul 2019 18:40:03 -0500 Message-Id: <20190725234032.21152-12-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 bus clash interrupts are generated when the status is one, and also cleared by writing a one. It's overkill/useless to use an OR when the bit is already set. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/soundwire/cadence_master.c b/drivers/soundwire/cadence_master.c index e85e49340986..bdc3ed844829 100644 --- a/drivers/soundwire/cadence_master.c +++ b/drivers/soundwire/cadence_master.c @@ -692,7 +692,6 @@ irqreturn_t sdw_cdns_irq(int irq, void *dev_id) if (int_status & CDNS_MCP_INT_CTRL_CLASH) { /* Slave is driving bit slot during control word */ dev_err_ratelimited(cdns->dev, "Bus clash for control word\n"); - int_status |= CDNS_MCP_INT_CTRL_CLASH; } if (int_status & CDNS_MCP_INT_DATA_CLASH) { @@ -701,7 +700,6 @@ irqreturn_t sdw_cdns_irq(int irq, void *dev_id) * ownership of data bits or Slave gone bonkers */ dev_err_ratelimited(cdns->dev, "Bus clash for data word\n"); - int_status |= CDNS_MCP_INT_DATA_CLASH; } if (int_status & CDNS_MCP_INT_SLAVE_MASK) { -- 2.20.1