Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp74280pxb; Wed, 14 Apr 2021 09:43:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXTcKSYBGDsgwM/KpAnxX8xTC4MZ8KdrcbPemDBjapfcWq4/8XqMooqnVLnTC+qBa8C3Lh X-Received: by 2002:a17:902:8601:b029:e6:7b87:8add with SMTP id f1-20020a1709028601b02900e67b878addmr38980698plo.3.1618418610089; Wed, 14 Apr 2021 09:43:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1618418610; cv=pass; d=google.com; s=arc-20160816; b=eMcJp26xrzsWxcijMCUpZ+TSA8NOD/CMbccEYC3Ta53NYBsW1yO/bqc3FdoZY1IFLn YRLJ0hKL6OCFLSMklUdSN6wmLoP7reEvma84EpcTB8vtdU571boSatVWL1LNHlx7wBeb nhjTtuzbdeyhW42koYAH30XBntCZ8zjgGrh/53Ek2s3qOjt7eNX5QopUGWrkyy87+zcn 5u2NvWnkZAD6uwDV6/plPliwVVEho7bWQ0/i3wLXgJIE8HyIzkCUskptdeSa9If3/N/7 PmnzoMuzK8wJDCHorJak6j4m4ONLwxPXnbijumRaABrLsITd/7VDyiuFxT94AA0lymb/ 0C5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Dv1omI8MFqAC+wJx08YmOxdvn3qzpjZ83jgCDfIA9mw=; b=WDJa8WayZtr3WDdYeTx8Di5UGzTq78BK0kUBhp1XgBtiqFWih12mE/plJauRUosOA6 2oMySuZ9MDYiDgHDr3dDFIcMD80ymICmtYl2y6ZJMl2db+Gny1gFx1tQVGTP+YXuJZ9H LF+YF8cBRo6MsRZZbHE0Z9y/4nPf8vO/AEiySP1qdkd0Ghs+5dlXtw/3gGQUeBl64vTo llvGoyFMEozExQuJhGumm3IxcNvWquWm9qDShDcV9P3DaYfUNOYvNdXQDZ+zAi+zKthu RV5xMvEvId3/3KRSYn7bBAkI8zGzLnn3MNt/t2uht7P8OiDdhEaVut5Ot+qyl0gtWGtm qGDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Q+I4Dr3J; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 22si98558pjl.32.2021.04.14.09.42.55; Wed, 14 Apr 2021 09:43:30 -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=@nxp.com header.s=selector2 header.b=Q+I4Dr3J; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351858AbhDNOeY (ORCPT + 99 others); Wed, 14 Apr 2021 10:34:24 -0400 Received: from mail-eopbgr00067.outbound.protection.outlook.com ([40.107.0.67]:19145 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1351842AbhDNOeW (ORCPT ); Wed, 14 Apr 2021 10:34:22 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c+6CHKjRKQvCZNx2f9r6Xt22a6aJ3GYrEOKZM/wn3SFYGUbaXm5+TVVeB96pqC8ODUPXU0KL2xIV3XtYzTwPmQVEfKTNTWQ4vOUgMlRLDboSAfU+0b8Ptd0TP9B/sIUsazsaDZqtgjgxkEka8Brs41Zf4aa7jq9UB5qipoUach6PqeN19sSUffQxpt0wjJSE/6inF4U4SMAoD5NaXH9PoOVlFihAIfqskxLrsUJ7C2Q1sPkGRNCDv+jKDHc0B12lSHdKdaMWPU+/o0zSwIW12g77DpTVuQRnAOehpa2moym689m4U2DMDcaMWv/j/bXD3DjPouNhPOjbFQfMizCc1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Dv1omI8MFqAC+wJx08YmOxdvn3qzpjZ83jgCDfIA9mw=; b=VFPsB00h2hw0bp3HmEpUGRq/omF5xhMcZruR6BlKQ1NTGvt99JAyTO3I1p6fWsNoJ5V3tQbZdGLQY/7MWUGwbjsI1Id+TfuyUgn48SUQhZLmyctQUhUmhGbMh3TjTliQ2cr+2cV4ZzSSYZQ5hxlqUoaaVciqS5lXqN4gPuDHj8Wu0hQWPRBFo3gwj9YZ+P9Yc589ESMPzLpuWQcscMll0FLcLVTSzw0/ubtkxiYM3bo5+fH6rn4lREj7819VK06Npr+bhLQQ1iO7+Tf/AgJl4o5nYdvVcAVhfEaA82J9U8dYlQO3aACPnrOfG/ce3n6pcob+TorZ/X8e2koYG8HEgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Dv1omI8MFqAC+wJx08YmOxdvn3qzpjZ83jgCDfIA9mw=; b=Q+I4Dr3J07M28FPivyq8y7gzVVZwf1yo3bcMGykut3lIJ39QKQuqQ+K8A6H1fS91mZM8+bmi+cTxjJsxnifzkTtjgGpdvZZTNJBacZtZnjGjJvVs7e+Mv5Cf/nIx0SpblnVA5cCUt76UuJLMZ/YCsIkC8c0lu8EnIfh72w2oLZE= Received: from VE1PR04MB6638.eurprd04.prod.outlook.com (2603:10a6:803:119::15) by VI1PR0402MB2798.eurprd04.prod.outlook.com (2603:10a6:800:ae::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.21; Wed, 14 Apr 2021 14:33:58 +0000 Received: from VE1PR04MB6638.eurprd04.prod.outlook.com ([fe80::e8e2:7756:13bc:2cb3]) by VE1PR04MB6638.eurprd04.prod.outlook.com ([fe80::e8e2:7756:13bc:2cb3%7]) with mapi id 15.20.3999.037; Wed, 14 Apr 2021 14:33:58 +0000 From: Robin Gong To: Lucas Stach , Shengjiu Wang CC: "S.j. Wang" , Timur Tabi , Nicolin Chen , Xiubo Li , Fabio Estevam , Liam Girdwood , Mark Brown , "perex@perex.cz" , Takashi Iwai , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , dl-linux-imx , "sumit.semwal@linaro.org" , 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" Subject: RE: [PATCH] ASoC: fsl: imx-pcm-dma: Don't request dma channel in probe Thread-Topic: [PATCH] ASoC: fsl: imx-pcm-dma: Don't request dma channel in probe Thread-Index: AQHWLcMcvbp0uyGgYk605EKKtgH/8aivLYuAgAF2HACAABbKAIIDgX+Q Date: Wed, 14 Apr 2021 14:33:58 +0000 Message-ID: References: <1589881301-4143-1-git-send-email-shengjiu.wang@nxp.com> <0866cd8cdb0c22f0b2a6814c4dafa29202aad5f3.camel@pengutronix.de> <53258cd99caaf1199036737f8fad6cc097939567.camel@pengutronix.de> In-Reply-To: <53258cd99caaf1199036737f8fad6cc097939567.camel@pengutronix.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: pengutronix.de; dkim=none (message not signed) header.d=none;pengutronix.de; dmarc=none action=none header.from=nxp.com; x-originating-ip: [92.121.68.129] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 497adc52-b3df-43a9-191f-08d8ff5256e6 x-ms-traffictypediagnostic: VI1PR0402MB2798: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uMO1G+peqKkueAq0cp071OQI3D/LibFl2yQaECJAPijjzXzdlvijPaL6YFdbLy9xbrdcr+4SmNwzNDGNCEfFWiYfg9szaRzxxd5SVKtFwKPGyuGxnLFx1XYsuTn+4KY25mIWEMsUFLKGOo0ALCnxA/k1k4Ubne2TvokBDRo26oKNodBM1+ilyZeUWN9GjlrRPYyt6rn4eKmTFe4kNlM4t2e+p2/qLl0HN+eWKQlRn+UvUUqTRLblbCNuiBNH4pnY1umTs4QZORIbeuc6wsvZ2tHjY00g16TP3x2l2DruGDQ/ASJ2WZXT2PUlqo5XBaIXPOP+g4y4R9j+EbZUivMFOmJTVQsqgV9Dzwjiv8CwFnpZriqOu30XKGt6dIRG2QI98Q0jbaLdbwm8ytAo+sqNiIeuXtyjAuUM3wCqEmGIgM4SeMKi3Gp9eiRaQuXgXm8Qe5OqBNq4UnvMG6blybvr60LLzbA8wOlwMwoKDs1W4HmaFg9C5pmGYPVO25F1PKA/69iKk4U3dy4Dbia0PjS1hhs559zNt47R8zpumLYlHzABB1cxksODsj5/K6cMThQ5SgclJxEvpgUBuERlYY1ZtdLT5A0OheM51qCVt7YMfECuUTcPgFRmJf/bjxXmg+bXGR1x1pAZIiHqIzZSmJgxx+2KiVb8kgDQu1H5gt6GAHs= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6638.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(136003)(346002)(396003)(376002)(366004)(2906002)(478600001)(110136005)(38100700002)(7696005)(54906003)(5660300002)(8936002)(30864003)(122000001)(33656002)(86362001)(316002)(6506007)(66476007)(66556008)(186003)(7416002)(52536014)(83380400001)(8676002)(66946007)(53546011)(26005)(55016002)(76116006)(66446008)(4326008)(9686003)(64756008)(71200400001)(6606295002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?UWRvTUNTMGxnaUxuRjFtVTR4cHR6ekhQaTJ1aHVXQzRYUzFBREdDaHB1OTIr?= =?utf-8?B?VE1RUHlETGs2K3JjUnRvRk96eUhqcG11cXZvbzMzdE5xUkh0dHR6NlJUc29l?= =?utf-8?B?Y1dvcTlRanoyMXFWclFyQ0hVVGYxZVhyQng0WEpsMEFyZ1FlTjE3ZldUZlgv?= =?utf-8?B?VkU5ak1ZK0dkU0YrZTB2cmhJUVEyTXhlRmJrMjdKTTU5QVJtS09MU0JJUWFM?= =?utf-8?B?MjRkMDFPc2k1YkR4cEVBNzRoTTVSRXk1U0o3SGZUVGJmN0J0YkpYU3R6eVFJ?= =?utf-8?B?QnBQQTNNL1pnSHNQVVVKRUlpYjRCcUFqbS9YNngyS3l1Y1lHZ0tkM0I2Nml2?= =?utf-8?B?VTNaTHYrVlArVXN4SG9kRHZHTzlJeGtpUXEvbGJaSXpyRis1RklTYi9VaTc0?= =?utf-8?B?bVg5MEFzN1RsY3RtODBJbHJDSWxWT3NzbGNuRjVoa0hUMFhCdGF0ZEMxK1V4?= =?utf-8?B?MmNDdFR1YWxyNUZFdHkvNlZJSHdzSm1WTHY2bk5YeTR2NnJncHdB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UM4WnBZNDRSKzlCT0VIMGV6aERGcGhu?= =?utf-8?B?UkdUWTB1U3QyY2JraEtEZGE4T3VNSjBQK3RaNjlXYjhFbXI5ME9TWHJYb1l3?= =?utf-8?B?QnFZM3pMWmd2Tk5tTHNGWjZMZmdnNHBiOFJZcjVjRGtqcGpObTRFTjRyTDUw?= =?utf-8?B?MVRjT3hsT3NUTCtGNUNPSEgzb1UrQUhmb2laNUViVEtyc1RwT0xQb3pKemlS?= =?utf-8?B?Uyt5dGZpY2pqYWVhemFRRktJNzg2NDZTb2JTVm8rT0pBTi9hZUJ6dTJTOSsz?= =?utf-8?B?bko5UDV5YzVOU1FtVDZWUGlQbWJ1UmlHcEEwTUJzcVpZekhiQk5aV0ovQ0Z2?= =?utf-8?Q?V2Eln5l87F27IkFzKYkOES1AgO/BRhaXqZjVjQ9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6638.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 497adc52-b3df-43a9-191f-08d8ff5256e6 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Apr 2021 14:33:58.2487 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: PjPaATlq1VB1OAmSaXz6iBzi2Vp4NAlzgWiQQJCRlHgwufSKqaFoqR7K8bOVCxIGiXC8L+cX3WLd8Q8/Gwi0VQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2798 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMjAyMC8wNS8yMCAxNzo0MyBMdWNhcyBTdGFjaCA8bC5zdGFjaEBw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gPiArICAgICAg ICAgICAgIHJldHVybiAtRUlOVkFMOw0KPiA+ID4gPiArDQo+ID4gPiA+ICsgICAgIHJldCA9IHNu ZF9od3BhcmFtc190b19kbWFfc2xhdmVfY29uZmlnKHN1YnN0cmVhbSwgcGFyYW1zLA0KPiAmY29u ZmlnKTsNCj4gPiA+ID4gKyAgICAgaWYgKHJldCkNCj4gPiA+ID4gKyAgICAgICAgICAgICByZXR1 cm4gcmV0Ow0KPiA+ID4gPiArDQo+ID4gPiA+ICsgICAgIGRtYV9kYXRhID0gc25kX3NvY19kYWlf Z2V0X2RtYV9kYXRhKGNwdV9kYWksIHN1YnN0cmVhbSk7DQo+ID4gPiA+ICsgICAgIGlmICghZG1h X2RhdGEpDQo+ID4gPiA+ICsgICAgICAgICAgICAgcmV0dXJuIC1FSU5WQUw7DQo+ID4gPiA+ICsN Cj4gPiA+ID4gKyAgICAgc25kX2RtYWVuZ2luZV9wY21fc2V0X2NvbmZpZ19mcm9tX2RhaV9kYXRh KHN1YnN0cmVhbSwNCj4gPiA+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIGRtYV9kYXRhLA0KPiA+ID4gPiArICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgJmNvbmZpZyk7DQo+ID4gPiA+ICsgICAgIHJldHVybiBk bWFlbmdpbmVfc2xhdmVfY29uZmlnKGNoYW4sICZjb25maWcpOyB9DQo+ID4gPiA+ICsNCj4gPiA+ ID4gK3N0YXRpYyBpbnQgaW14X3BjbV9od19mcmVlKHN0cnVjdCBzbmRfc29jX2NvbXBvbmVudCAq Y29tcG9uZW50LA0KPiA+ID4gPiArICAgICAgICAgICAgICAgICAgICAgICAgc3RydWN0IHNuZF9w Y21fc3Vic3RyZWFtICpzdWJzdHJlYW0pDQo+ID4gPiA+ICB7DQo+ID4gPiA+IC0gICAgIHN0cnVj dCBzbmRfZG1hZW5naW5lX3BjbV9jb25maWcg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DQo+IGRtYV9kYXRhLA0KPiA+ID4gPiArICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAmaHcsDQo+ID4g PiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg IGNoYW4pOw0KPiA+ID4gPiArICAgICBpZiAocmV0IDwgMCkNCj4gPiA+ID4gKyAgICAgICAgICAg ICBnb3RvIHJlZmluZV9ydW50aW1lX2h3cGFyYW1zX2ZhaWw7DQo+ID4gPiA+ICsNCj4gPiA+ID4g KyAgICAgc25kX3NvY19zZXRfcnVudGltZV9od3BhcmFtcyhzdWJzdHJlYW0sICZodyk7DQo+ID4g PiA+ICsNCj4gPiA+ID4gKyAgICAgLyogU3VwcG9ydCBhbGxvY2F0ZSBtZW1vcnkgZnJvbSBJUkFN ICovDQo+ID4gPiA+ICsgICAgIHJldCA9IHNuZF9kbWFfYWxsb2NfcGFnZXMoU05EUlZfRE1BX1RZ UEVfREVWX0lSQU0sDQo+ID4gPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2hh bi0+ZGV2aWNlLT5kZXYsDQo+ID4gPiA+ICsgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg aHcuYnVmZmVyX2J5dGVzX21heCwNCj4gPiA+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAmc3Vic3RyZWFtLT5kbWFfYnVmZmVyKTsNCj4gPiA+ID4gKyAgICAgaWYgKHJldCA8IDAp DQo+ID4gPiA+ICsgICAgICAgICAgICAgZ290byBhbGxvY19wYWdhc19mYWlsOw0KPiA+ID4gPiAr DQo+ID4gPiA+ICsgICAgIHJldHVybiAwOw0KPiA+ID4gPiArDQo+ID4gPiA+ICthbGxvY19wYWdh c19mYWlsOg0KPiA+ID4gPiArcmVmaW5lX3J1bnRpbWVfaHdwYXJhbXNfZmFpbDoNCj4gPiA+ID4g KyAgICAgc25kX2RtYWVuZ2luZV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