Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753388AbeAOALQ (ORCPT + 1 other); Sun, 14 Jan 2018 19:11:16 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:34198 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752491AbeAOALP (ORCPT ); Sun, 14 Jan 2018 19:11:15 -0500 X-Google-Smtp-Source: ACJfBosunsTxRi9vjgCpzkFLx/uPF/j/cxs67GtpiuubTHNBPo2VRP8GlBR4UE6j66OoSu4vCjh33g== Date: Sun, 14 Jan 2018 16:11:12 -0800 From: Nicolin Chen To: "Maciej S. Szmigiero" Cc: timur@tabi.org, broonie@kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, alsa-devel@alsa-project.org, lgirdwood@gmail.com, fabio.estevam@nxp.com, caleb@crome.org, arnaud.mouiche@invoxia.com, lukma@denx.de, kernel@pengutronix.de Subject: Re: [PATCH v2 13/16] ASoC: fsl_ssi: Clean up _fsl_ssi_set_dai_fmt() Message-ID: <20180115001111.GC2925@Asurada-CZ80> References: <1515652995-15996-1-git-send-email-nicoleotsuka@gmail.com> <1515652995-15996-14-git-send-email-nicoleotsuka@gmail.com> <2e285df9-834b-41bf-1a09-a8de3f2a1f7c@maciej.szmigiero.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e285df9-834b-41bf-1a09-a8de3f2a1f7c@maciej.szmigiero.name> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Sun, Jan 14, 2018 at 11:40:31PM +0100, Maciej S. Szmigiero wrote: > > case SND_SOC_DAIFMT_I2S: > > - regmap_update_bits(regs, REG_SSI_STCCR, > > - SSI_SxCCR_DC_MASK, SSI_SxCCR_DC(2)); > > - regmap_update_bits(regs, REG_SSI_SRCCR, > > - SSI_SxCCR_DC_MASK, SSI_SxCCR_DC(2)); > > switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { > > case SND_SOC_DAIFMT_CBM_CFS: > > case SND_SOC_DAIFMT_CBS_CFS: > > + if (IS_ERR(ssi->baudclk)) { > > + dev_err(ssi->dev, > > + "missing baudclk for master mode\n"); > > + return -EINVAL; > > + } > > The original code did this check only for fsl_ssi_is_i2s_master(ssi), > that is, only for SND_SOC_DAIFMT_CBS_CFS while here you also do it for > SND_SOC_DAIFMT_CBM_CFS. You are right. This patch isn't supposed to change that. I mixed an intention from another patch. Will revise this part in the v3. Thanks a lot