Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1336033ybk; Thu, 21 May 2020 04:32:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylCUp/yAYwHqOzyAKKLlNw9AIuvZK65Bid2AfVKSpGT+YOw1BCB1peo3e7/XRWe4xXls2D X-Received: by 2002:a17:906:4dd6:: with SMTP id f22mr3333944ejw.468.1590060740290; Thu, 21 May 2020 04:32:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590060740; cv=none; d=google.com; s=arc-20160816; b=QcYrvkLi7VtGD58iJkT9JyLNCetZuiJsXrRaJ6S00VxZyjYF1qO1mCf11axeUm7Wvz OQQ0kgN06K6Bsfyv4pSYw1wn4ZnO/l3+c+EyoWl+UEZEdmaKecbcdXoI6C+9UGoDPjVG M67zedXzC6OZ0LkzBX0Tn8kLD5+UFLD2tMv3UAUa3ZzS6ZeLsE+IWBm40fFpajYbXjKh RkNUrPy6dgbvmcqaugQ5O5IALS4WNbWJsXF/euUQO41RTyWbpOHwfSY8flsDIosvAeAt baovOdE9VZn1gFzbFYgsL7cWBOj9AoE+09mdvsy574nCQtocr4xpSweNpw7VaLD2YEfU sEkg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=mVnGuA/c41po031/Zyo9z05iki6LpXCl3bw26UlV5Og=; b=F57TivfW/eDlzHUwxAELjT+0aYXlHWQdLuo8Iqx3KMQWob1lAB/237T9Rybwc1J2Sm c8E8ha0B6CkDjQSl3fyX2f7xh1B/3TVaiOnIKUuElRBHFKfRruUj9i6xrAQxTttinwfo NQowvDIT6u0H59QEVcE4AfDjSjXgS5IsLXfrkw6ei3k09mXc0LR2XP2N2oz9AKhGx+7h 5kb0GGhcRjYnDEl6AQSJDdNkz/rL/Al/aVsixDrU30ui04n2AiqvS47RtP1mHfxYctto Au1bdpgSnPX34t0Vw9BuIQPd0Z3SaDVKm5yOlwSPzdCXcNpD4e/oYvOMGvR0jj0emo9w yNWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MqYN+vMi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca1si3016786ejb.42.2020.05.21.04.31.56; Thu, 21 May 2020 04:32:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MqYN+vMi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729014AbgEULa1 (ORCPT + 99 others); Thu, 21 May 2020 07:30:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728348AbgEULa1 (ORCPT ); Thu, 21 May 2020 07:30:27 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 019A2C061A0E; Thu, 21 May 2020 04:30:27 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id f13so6849383qkh.2; Thu, 21 May 2020 04:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=mVnGuA/c41po031/Zyo9z05iki6LpXCl3bw26UlV5Og=; b=MqYN+vMiHTEaW4UwLRy16WRoYfu+LJ4pOncpItD4O1GRnxH8TmktN6T6b2PcHxyEwB /Ls2IApWVfXgN0RNquNulhQ49MIzfMO2KbQlpew/gmesTLhSAFACIhd9NN5hvF8aTXrJ 9dGZyhMELfyMK2fbiMTxbSKpZ8EVlDN75FSZjN4lYOI29EfHTi0l6te+3DGNqlishUcI ufFCYzDFtCRCTDhyOG4tSbItgT3oIdpuWbG9YF8aGWnFAtPl3K8qizsCVOk3/weuXndt nd8yUP/5mHGC7HDR1cjV9fJCWbl4EUH4bqfDeIq+Fhmmrdj99nMfB4lAH2i7rVf5TT9v sLsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=mVnGuA/c41po031/Zyo9z05iki6LpXCl3bw26UlV5Og=; b=W2kAtqGW2dRvsLrZ0jB1slglZmphugBxcwgen9anGSLCNPfDVIUBHfC2UYhJ+N252B /W6F8ARcrA4faoPcu6g7AY/AvmLE3fqldPf4bUok9BfIOXAtz9si2FPL7M5u93niK+uB dXC153ZY5f9wXgadiPtymO96gz9HSUTtBDrmtw8x0Yy3ztPFw5clEr1Eb2upYPjITeLb 3ihghww8oaZBdBZYxm9ekfBvxFSQMhfLKP6N0vGaqKGu/Yw+avKluR67CyVwMGUekZ/F g3KfGUqMV/QWXes5/p9XnezHdjiqphHn7OrDqyxHS2SXqGxVDeuZPYUnx0dnq13i+T4Y funw== X-Gm-Message-State: AOAM533sY+DYAlODFV9ixHUVnvqpnU1wvoZy7s7rg6WUiqnamT9uZzbA DuuqUS7Mg8tccPb+lLUOu+IVRxSBESN9T+Upt0U= X-Received: by 2002:a37:a50d:: with SMTP id o13mr9327701qke.121.1590060626064; Thu, 21 May 2020 04:30:26 -0700 (PDT) MIME-Version: 1.0 References: <1589881301-4143-1-git-send-email-shengjiu.wang@nxp.com> <0866cd8cdb0c22f0b2a6814c4dafa29202aad5f3.camel@pengutronix.de> <53258cd99caaf1199036737f8fad6cc097939567.camel@pengutronix.de> <20200520123850.GE4823@sirena.org.uk> In-Reply-To: <20200520123850.GE4823@sirena.org.uk> From: Shengjiu Wang Date: Thu, 21 May 2020 19:30:04 +0800 Message-ID: Subject: Re: [PATCH] ASoC: fsl: imx-pcm-dma: Don't request dma channel in probe To: Mark Brown Cc: Lucas Stach , Shengjiu Wang , Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Liam Girdwood , perex@perex.cz, Takashi Iwai , shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, Sumit Semwal , Linux-ALSA , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel , linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 20, 2020 at 8:38 PM Mark Brown wrote: > > On Wed, May 20, 2020 at 07:22:19PM +0800, Shengjiu Wang wrote: > > > I see some driver also request dma channel in open() or hw_params(). > > how can they avoid the defer probe issue? > > for example=EF=BC=9A > > sound/arm/pxa2xx-pcm-lib.c > > sound/soc/sprd/sprd-pcm-dma.c > > Other drivers having problems means those drivers should be fixed, not > that we should copy the problems. In the case of the PXA driver that's > very old code which predates deferred probe by I'd guess a decade. Thanks. For the FE-BE case, do you have any suggestion for how fix it? With DMA1->ASRC->DMA2->ESAI case, the DMA1->ASRC->DMA2 is in FE, ESAI is in BE. When ESAI drvier probe, DMA3 channel is created with ESAI's "dma:tx" (DMA3 channel is not used in this FE-BE case). When FE-BE startup, DMA2 channel is created, it needs the ESAI's "dma:tx", so the warning comes out. best regards wang shengjiu