From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Subject: Re: [PATCH 11/14] soundwire: cdns: Add cadence module Date: Sat, 21 Oct 2017 17:24:54 +0530 Message-ID: <20171021115453.GK30097@localhost> References: <1508382211-3154-1-git-send-email-vinod.koul@intel.com> <1508382211-3154-12-git-send-email-vinod.koul@intel.com> <20171021095201.cxxmgvliyzzr4ydo@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by alsa0.perex.cz (Postfix) with ESMTP id A2A9E267174 for ; Sat, 21 Oct 2017 13:50:37 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20171021095201.cxxmgvliyzzr4ydo@sirena.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Mark Brown Cc: ALSA , Charles Keepax , Sudheer Papothi , Takashi , Greg Kroah-Hartman , plai@codeaurora.org, LKML , Pierre , patches.audio@intel.com, srinivas.kandagatla@linaro.org, Shreyas NC , Sanyog Kale , Sagar Dharia , alan@linux.intel.com List-Id: alsa-devel@alsa-project.org On Sat, Oct 21, 2017 at 10:52:01AM +0100, Mark Brown wrote: > On Thu, Oct 19, 2017 at 08:33:27AM +0530, Vinod Koul wrote: > > > Cadence IP implements SoundWire Master. Add base cadence module > > initialization and interrupt handling > > It's probably worth saying something about how this isn't a device > driver but rather a library for device drivers. Yes you are right, I will update this to clarify > > > + 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; > > + } > > So with this (and the other error flags) we check to see if the bit is > set, print an error and then set the bit we were looking for in the same > variable we just checked? no this doesnt look right, I will fix it up. -- ~Vinod