Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp190931lqj; Wed, 10 Apr 2024 07:51:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZZgwmX+OElSFyUbfus/YFcx41no4CKtDjDq300z6c73bnnd+Mu2Gas/rfZIFaJ9LsqMb01Co76DLFie0k40EgGIlMeK+eU+DH4Jd4/g== X-Google-Smtp-Source: AGHT+IGQ2JsOBHUaWxeHMhiri0DTY0gq11ibcFmcmCi2PWgktKx5Blgh2jLKiC7mdCkHtFjbqnU1 X-Received: by 2002:a05:6359:570d:b0:183:55a6:b22c with SMTP id kz13-20020a056359570d00b0018355a6b22cmr3905591rwc.2.1712760717173; Wed, 10 Apr 2024 07:51:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712760717; cv=pass; d=google.com; s=arc-20160816; b=KCJsX+b8ZnPDv+dB5g7c2m/bzzv8nkv5DTIhCzUnRDHN8SBn7cdZpYhvjQAOWx4emL aAxqWLAWvQTwi6Hrhxp9H5BPU3Q4VxKtRJHNq4Aqtbdeztjf59eiV6r+xn/QhfuRPklq 0EEtjunxbRrt4pdZI7rLR+nAc+kPTKHxmY7qmRJ7VlIKKwNxPOdhiVf3vNk7SdtrfSqE 0jrg7hllPJpK992hrnflfHS/oqmzMw7dCdHjlus2WjpaKiQCwqdYzf9RPyYLDQeXeyzs 0WKoAFz/CWOukcGXduBwaHWqD4QrsXePRuEifkbQqpRUi48LRS9LaSMG48x6+XCZlcLc jWTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=VMjbesMdn+qtLdaftXdet62uuV9p5A/VNrKt/cHgu0g=; fh=6oKhhjooTCyV46tk1NltTXRMkuLC+FQw8JFzVkZJYo8=; b=LKsH0X4w+MyQMlXxAzWlAQprl7cY0QnK/CRzacWfEcMw6MJSiaYTQmayB3MdIR9LaR R2Q9iM8aCg5xiOEcJ71OE1J0wrF8OL2tOfVNESJhoNquaB5xEpNjVKPl61w+p39BxOJ4 wkk7wCDm0eE0JjsrEomlxlfT5MLkcJrTeYqQN0I+QO67It0drznSjE2KEHBFnq2modmx /8HdOWxuoz/MOrrjP2zcIWFXD94673Y9+N5MPcRbprkhmU5Bh5pbU3d4wI/gVeaoGBsZ E9HpVbe6rtV5dbVQ7AmcZpQUR8SFwnukKE96W9C9anmRQGCBj9j2bCbHxeIXML/TZNEy iM8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=Bxm8SVkL; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-138714-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138714-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id f3-20020a63f103000000b005f0a512f885si11281367pgi.224.2024.04.10.07.51.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 07:51:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138714-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=Bxm8SVkL; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-138714-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138714-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CE181B2B71E for ; Wed, 10 Apr 2024 14:08:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32BDE17966E; Wed, 10 Apr 2024 14:02:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="Bxm8SVkL" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 610EF179206 for ; Wed, 10 Apr 2024 14:02:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712757740; cv=none; b=OMII60e5wQ9ahGGhEZrpZm1cXf02cpKiZHWIrxpkxpcUplAHUvqLknT191TdmJWLzoYyjlVNwwqKEP/JtoiK30ULTsHq0QO4DzjDhGKwgiXMtl09RrGKICjUaEVu/qkOSkERF0AmjTrT9Ca80uL92aDvyj2i6agOIw2faMUVdm8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712757740; c=relaxed/simple; bh=rJB6/4cV26EW5syN+P1RUCaw8vdLd265D4NK23+6Ks8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Uf8dyeQS4f/IU4GdkzE9LYrhfZNUXZjrrqTEOtHaeh/VPpcOtYeZXQSdCqDJUdNk6oWy0PG2BiXv2U9jOMq2vfxsQ/H/IU0q5pmYBcOlagL7pJHLzU4ArCOT9AiRbCGE/tq1ikRTehRdy8tnRHK7w6SRSi18Flb5pnaIXRSEoAQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=Bxm8SVkL; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-416c4767ae6so5342175e9.3 for ; Wed, 10 Apr 2024 07:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1712757737; x=1713362537; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=VMjbesMdn+qtLdaftXdet62uuV9p5A/VNrKt/cHgu0g=; b=Bxm8SVkLt8V36Vy+qPdCoVsGbq9onluD++i9UlC0k2P8w4r/FFGDMPR+ClIR0LkDDl 15G4ToDULozD/4YGdYw63Q+nTRwlKR0/n/1rDVP4qphIPOhNbT+zdVOAgL8Of7Y3X5VJ ggE4Kd3s9sTtOs91uYPdcBNi1yWqQF+DEgTXvmUZjbBXC30PF3UvvfcAQdFF7eMtgGGV mbDgI27FZuFdV4w3IOY/brgHrlDYqzE5AmuYcXxnDpNFjGzfmx79Yl2P6gNVXd5W9VQ1 xXGURW257FRpiY8gmwgBC79tXJMlFYDzamYePmwxa1IU9Id3GnhHX85b2eggQAukIKMJ c/4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712757737; x=1713362537; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VMjbesMdn+qtLdaftXdet62uuV9p5A/VNrKt/cHgu0g=; b=sgPexaD5ZUGEWDmcV04J0r3Af+sdT4FGfoN2sydKjzDKAJTV1T5JjUePB4KrV3NcTx 95gHPBhCVlClmxFL0he0mGnXuymnQYvqAiIVcsiY9rV85EkN5uWadYOk1WpE4nGidRtF KFOaFhiW3JhY8X9Kg3JjIOFmNA4x/QPuQiQuIX0JcPYYL1avoSnxsTJcPrE6BLEf1AfZ 9qXYr4s+3yvtwvCW0WBk6WQvsorBKLB+FeQxvep7dXZI9REf/zo+pNfj8lq1/1JObblX wQ4H/COJb1+7w022HEefqECiStp7IFl/4/3z2d93DXIPeJOYrX+9y27sYOPE7Z8yi0rA Ztgg== X-Forwarded-Encrypted: i=1; AJvYcCXOHoVCNU0fKYy4U/mT1rQdquU5tc3Q0pk3obtMrGuHt0vRpDyRs/xwOV3qjkeRY3+5uRH0/V4pVk9beorLf2c2QoCtmYQX42DJUgp9 X-Gm-Message-State: AOJu0Yyyqry0vdOInd0lL5R2EeI3wZ3ghy3Xk4VCMABrxr9lo5wy1xY8 5mZw6euRkpDQkRSjhjDB2gp6oKKu8+9SnnRzDrgblCS3alECMPu8169ycEQ4MMc= X-Received: by 2002:a5d:628d:0:b0:343:bccb:dbbb with SMTP id k13-20020a5d628d000000b00343bccbdbbbmr1888712wru.12.1712757736649; Wed, 10 Apr 2024 07:02:16 -0700 (PDT) Received: from [192.168.1.172] ([93.5.22.158]) by smtp.gmail.com with ESMTPSA id w5-20020a5d5445000000b003439d2a5f99sm13761613wrv.55.2024.04.10.07.02.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Apr 2024 07:02:16 -0700 (PDT) Message-ID: <50bf4fb6-7ad8-40b7-ad95-c1fc5e292149@baylibre.com> Date: Wed, 10 Apr 2024 16:02:14 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 06/18] ASoC: mediatek: mt8186: Migrate to mtk_soundcard_common_probe To: AngeloGioacchino Del Regno , broonie@kernel.org Cc: wenst@chromium.org, lgirdwood@gmail.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, perex@perex.cz, tiwai@suse.com, trevor.wu@mediatek.com, maso.huang@mediatek.com, xiazhengqiao@huaqin.corp-partner.google.com, arnd@arndb.de, kuninori.morimoto.gx@renesas.com, shraash@google.com, nicolas.ferre@microchip.com, u.kleine-koenig@pengutronix.de, dianders@chromium.org, frank.li@vivo.com, allen-kh.cheng@mediatek.com, eugen.hristev@collabora.com, claudiu.beznea@tuxon.dev, jarkko.nikula@bitmer.com, jiaxin.yu@mediatek.com, alpernebiyasak@gmail.com, ckeepax@opensource.cirrus.com, zhourui@huaqin.corp-partner.google.com, nfraprado@collabora.com, alsa-devel@alsa-project.org, shane.chien@mediatek.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com References: <20240409113310.303261-1-angelogioacchino.delregno@collabora.com> <20240409113310.303261-7-angelogioacchino.delregno@collabora.com> Content-Language: en-US From: Alexandre Mergnat In-Reply-To: <20240409113310.303261-7-angelogioacchino.delregno@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reviewed-by: Alexandre Mergnat On 09/04/2024 13:32, AngeloGioacchino Del Regno wrote: > Add mtk_soundcard_pdata platform data for the MediaTek common sound card > probe mechanism, including a driver/soc-specific probe extension (used > for bits that cannot be commonized hence specific to this driver), and > change the probe function to mtk_soundcard_common_probe. > > This is also adding the possibility of specifying the links and routing > with the audio-routing property and (x)-dai-link nodes in device trees > to stop hardcoding machine specific links in the card driver assupported > by the common probe function, but support for legacy device trees is > retained with a legacy_probe function, which is used only in case the > new properties are not found. -- Regards, Alexandre