Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2967009iog; Mon, 20 Jun 2022 08:26:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sRISeu7Qjcbg7pVO60K0SWMBnX6szXP76fgbm8mAPBIIAVa6J8arAlVfer2EjD4PEEG+bV X-Received: by 2002:a63:ae4a:0:b0:40c:2d48:5fda with SMTP id e10-20020a63ae4a000000b0040c2d485fdamr19780188pgp.434.1655738763691; Mon, 20 Jun 2022 08:26:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655738763; cv=none; d=google.com; s=arc-20160816; b=Jvg0rCuZlF0heR1ohBOkEHh2vZqZgUGdB1nO3NPxWtUY7aDEC/KIqrjd3Mpn4XWQnM j25BxJd2nhoiSPKCFdmbqwCFD6wGK7gTC9l9UWcjrDsYTfuOjoYX3gUDPXCHYYR8GxeE SlUNP/uYpRPdch8zGdPwewN0fjMYGkSPO6oBrQsPMWQL7HdOcsgcdBIrw7QRtr0ixAeY FogmM8LiPQNvhx0lggx376OI7j9jwBiNY6VMxKK/saqhF/+b2PZQXP+ROo/FQA+srnnX V010mFhuvt/AZyrIN49w786Rg6+69TUn5dmzggZVXoFOYYRBTWNAZjWKOeo6M2XGKG/g eGZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pNKBTiyzazOQiPLalZw7RlUKoJHDeGxtG5eUGa/jo3c=; b=ApZl7E+GBhfZZWa/i5wAfUJ9Z8Tq2MN0u37cEPOnb7KSVKzWsgsr3E4AqFkX6JQQiW 4kmQ9HB1Xwc5HKrqj5XwatqBzQ/ll2HSLSKUinImdTBmCxRIOUiOqcm7JblQY9BAhjJJ js1kKpNF4hzUAYOnh66x58qUiWl8tBwdGj2QQpIUdG64OVn8RUSDNl6poNW2KO38SoXL w3aywIqkJuJ86iH1Q3B4EL6g+e77Ub60R5Hax2dxUXsF9gmKULrLkCwHoHwSd/cSZedB 9ctvZaXush8pyOCtS0nqIJf5KwWT/6rjASnJWAZCEL3XBMUhTrABcl9tNcf/24l4lU7Q KmHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XNPFGstP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l73-20020a63914c000000b0040b8f790450si4035901pge.172.2022.06.20.08.25.50; Mon, 20 Jun 2022 08:26:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XNPFGstP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242281AbiFTPJe (ORCPT + 99 others); Mon, 20 Jun 2022 11:09:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241187AbiFTPJR (ORCPT ); Mon, 20 Jun 2022 11:09:17 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F36EA13EAC; Mon, 20 Jun 2022 07:53:00 -0700 (PDT) Received: from notapiano (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 4726F66016AC; Mon, 20 Jun 2022 15:52:58 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655736779; bh=xp4iD9VvxWQO3iGiqNjrIMxyQ6VBElMaMUahY/LVwS8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XNPFGstPolfiS0TNNLwD/ZuqLGWms3hLfb0mCuHXIBvhlPkfrbiHDXTKwQBkzrQo2 GnYcz5WCgY3LpG4tM1pnJ80w207ca795BCIQWOFF8KndwzN6Kd9UhZ5inCJlvlsqpX D/w4hzylaPUB/JC+HZxJ51rima4VzY6PdhPgWJ9gmzKV+KpZ5tVJriJQQGW5pS5rPT VLpt/6/BPRVw+Tlc74Fr9krCwGkk+WP0i2vsrACx9Kroamo82JveYuWTsAlcFPQO9O yCDXTFeHuZEXH4CwbUlL2qDYsnorpIdaDe0CqiseTi5iG944mKGUHReQ3R7YUXc0eA JW5IM7pU3haBg== Date: Mon, 20 Jun 2022 10:52:54 -0400 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: AngeloGioacchino Del Regno Cc: Hans Verkuil , kernel@collabora.com, Andrew-CT Chen , Lad Prabhakar , Marc Zyngier , Matthias Brugger , Mauro Carvalho Chehab , Rob Herring , Tiffany Lin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] media: mediatek: vcodec: Drop platform_get_resource(IORESOURCE_IRQ) Message-ID: <20220620145254.p52iqrfloteof7py@notapiano> References: <20220617203906.2422868-1-nfraprado@collabora.com> <8956bb3e-60d7-a882-3672-f2a2f0bf858d@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8956bb3e-60d7-a882-3672-f2a2f0bf858d@collabora.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 20, 2022 at 09:58:01AM +0200, AngeloGioacchino Del Regno wrote: > Il 17/06/22 22:39, N?colas F. R. A. Prado ha scritto: > > Commit a1a2b7125e10 ("of/platform: Drop static setup of IRQ resource > > from DT core") removed support for calling platform_get_resource(..., > > IORESOURCE_IRQ, ...) on DT-based drivers, but the probe() function of > > mtk-vcodec's encoder was still making use of it. This caused the encoder > > driver to fail probe. > > > > Since the platform_get_resource() call was only being used to check for > > the presence of the interrupt (its returned resource wasn't even used) > > and platform_get_irq() was already being used to get the IRQ, simply > > drop the use of platform_get_resource(IORESOURCE_IRQ) and handle the > > failure of platform_get_irq(), to get the driver probing again. > > > > Fixes: a1a2b7125e10 ("of/platform: Drop static setup of IRQ resource from DT core") > > Signed-off-by: N?colas F. R. A. Prado > > > > --- > > Tested on mt8192-asurada-spherion. > > Yep, that's totally necessary... Except the Fixes tag should be wrong here, > as you're not fixing that commit, but the mtk-vcodec driver in relation to > what's happening due to said commit. > > I get that you're trying to tell everyone "this is an urgent fix", though, > and I agree that this *has to* get in v5.19 to avoid breaking this driver. The commit I'm pointing to in the Fixes tag [1] says "Now that all the DT drivers have switched to platform_get_irq() we can now safely drop the static setup of IRQ resource from DT core code.", and while there were patches by the author [2] to do the required changes on some drivers beforehand, some were missed, including the mtk-vcodec-enc driver which I fix here. I see at least one other driver that was missed [3], and it also used the same Fixes tag. I know that my change isn't meant to be part of the commit in the Fixes, but I still think it makes the most sense to keep this tag, since its meaning is that that commit broke the support for this driver and this commit fixes it. Wherever that commit is applied, this one should too to make sure the mtk-vcodec driver keeps working. Thanks, N?colas [1] https://lore.kernel.org/all/20220316200633.28974-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ [2] https://lore.kernel.org/all/20211220011524.17206-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ [3] https://lore.kernel.org/all/20220609161457.69614-1-jean-philippe@linaro.org/ > > Finally, for the code: > > Reviewed-by: AngeloGioacchino Del Regno > > ...but I think that you have to send a v2 that drops that Fixes tag. > > Cheers, > Angelo