Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2637363iog; Mon, 20 Jun 2022 01:07:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sU6z0iHEOmSq9KwBXYP4xFuQ4X5uNizecZPVsWDYAs1o5tn4RI2AYrIy8+/LRSs7ZeD2ug X-Received: by 2002:a17:90b:1e0e:b0:1ec:b2a6:c9d0 with SMTP id pg14-20020a17090b1e0e00b001ecb2a6c9d0mr1950474pjb.230.1655712462216; Mon, 20 Jun 2022 01:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655712462; cv=none; d=google.com; s=arc-20160816; b=grDZ80saObbCnKGLGptwqwKj2TjwgNBKwczyeDcapYjF+Ip5byG5XK/Z459bnP+GEr uX0V8WkFK+U+TOwFJ7bFF7G2e/hnq8oX3XIKbmr4jd65mCDr4X+EWSWGUqZvspPL+NUK 0zXnGqf0d9rLBMHF2ViPeJqI2amCN+PJySQtPegvsJpSVvoS1O1ndD+WsVLSJ2/RZqB8 UXVWjXNDnesnK5HDDPlejrc3eZOwAN6ETrxr7gvs4d9oUuQvIIjAWUB9XpT4vLrDrynv WOaPVJRySH1b11EdASG4fXRC56PoRnOlsTVZn/tdE0Gx3bHWCQKu0leNlq97evUsZkvx 3Fbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IzuBmTU5lBUUf1flwcYEanGRhMfEjICrHZl5C4mHcXc=; b=ZmP+unvfUGdbr39GlWX7j+RewDUDL5Wk4BCDvu+h7ywKtJ/VJVsH8rbW27Q8L7kIkZ rT7CZCgtrKHkT+hiaR2B8T1n0WssU+qxQ/KgAB1qC/LLcLmZOwtRiuAzBuxmsm0GBN5D 8S+XJOALMk35kbMTt5PKPuaNxFHBcJPP/nQRzHyD1kUyxq37b7zM0oeB1RLRMxEYD+K8 Ymm89x15Hb7slbMj8efQxc6RDE5ByX1tnGTee8lkcLcUND4BSHwkBucilq+wlSv9kq8R vZ1/Jkezne99qrzjXxS3Syv7m9MElLxRwhAfblzYXsHHsiy9DTef1wB9iaF6rv7M8qRb 2Y5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Bx3CK9FA; 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 j7-20020a636e07000000b003ff3d0bc82asi16145270pgc.325.2022.06.20.01.07.30; Mon, 20 Jun 2022 01:07:42 -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=Bx3CK9FA; 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 S239564AbiFTH6N (ORCPT + 99 others); Mon, 20 Jun 2022 03:58:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239522AbiFTH6J (ORCPT ); Mon, 20 Jun 2022 03:58:09 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17C8725D8; Mon, 20 Jun 2022 00:58:06 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id DF5CB660166E; Mon, 20 Jun 2022 08:58:03 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655711884; bh=B+xTwEj2LWopnY2Mek8C1LH6BBhcx/zrcxMtLnoeiVA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Bx3CK9FAayRadGaBkxRj+jDh8Ivqjyz8uLq8JVnqfkvTTAcl7dsjQlbZ3H6jE5FoC vqcJ7Rgji2FSDrJFY+TW96nMRslPkAGFK0FkBemRiCkNwa2XEz4iSqGW+GmxYKaAaL oU6vnJi9MfLd4v1+cdzHl4XP14h5yhVrctSjyd+eRKIzJ08+38kW7WAhTrzzwdlQIj KRxr0LSjZv4u6Y+qAo36FuMDq1XHtz2hdy+cYVS2U1aOLxxbIJYcbxst/+CMmikcrj nLxkkoZPPPAI8JRcs+O52gs2Nork5+RJqR9rKhhq3G7vj9IhLi8+5BMI9XHjyYBVr4 mpHugrqh4gHHQ== Message-ID: <8956bb3e-60d7-a882-3672-f2a2f0bf858d@collabora.com> Date: Mon, 20 Jun 2022 09:58:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH] media: mediatek: vcodec: Drop platform_get_resource(IORESOURCE_IRQ) Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Hans Verkuil Cc: 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 References: <20220617203906.2422868-1-nfraprado@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220617203906.2422868-1-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 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. 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