Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp978391rwd; Thu, 25 May 2023 06:39:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ636w3fhOiT/x3jayZu2TmRiVEYOxMe1Vfw7JK2psYlb7omhz++uWmMe1YjPsm6W0Kw90Vy X-Received: by 2002:a17:90a:748e:b0:255:8a12:241b with SMTP id p14-20020a17090a748e00b002558a12241bmr1681574pjk.22.1685021961162; Thu, 25 May 2023 06:39:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685021961; cv=pass; d=google.com; s=arc-20160816; b=jEFHPp8Is6BxmPn59Cn/Xh56RGNzB2xaZF+QWcJjP2yDWhK3Wf6zVb23p2gc+pKN5O lLktgvFD26CvYIZhqIbmQzNVSzFl9BFw14yeoog0eMFQ9zsvgwHTJLzgg5KVYqDJpLSX cUMLeGpBrBrVVbbCFbzu9x5uqWjVniKLSME8zjvaQn32j4lC2vL+s4zi3i6X45HoWVm2 jGnvgkqFEbvlULJqGYPOVr8gcteKGRtn/QSe7fkNXnFIJs5yGoLY3HZWOiSQDhaiYQdw KX8LlBHQO5D94k5UUk4qmJ+EKG7obXsO0eHuqnAS3tWRimGxkEzk+IE7fQ+YLtRIl18X lnGA== ARC-Message-Signature: i=2; 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=QuDv2Ny6oiXp6mURnH5jCu7g32h4l4gFdh/PW9rVbWg=; b=ymvPJNu0mhi2RTOtprVKw1lbKjz9+maHMsOe0kkGVG/kBaFxt/C5FLDGT/gkTjEcLd 0LdznhmMNzKIWunbMgrjd+FYibxWH+iPyX54ptz9D12Mgt8ep0MpH1/HgUrSZhQsNqU+ nrShRr8vt3rB8emZjsoYl4SQ3fi8E+xsNG7KatpTl7lHuNpvdj6ZV5/sknUBLzR81fDN RDzYsj+ySBJI5j/XXk1digl/G+UVNZ1AExPNmMH1tKqxWb1e3mTnscw4njoRsCAk7JqH PQV70vkpx5ookyNdZ1WOH4kV6rTQde88ECl3K0Y36QlDDgxsrM82HbI1txzB9Z74m02s 4pRQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=djdATiB+; arc=pass (i=1); 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t191-20020a6381c8000000b0051820b42b57si1154693pgd.619.2023.05.25.06.39.07; Thu, 25 May 2023 06:39:21 -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=@iki.fi header.s=lahtoruutu header.b=djdATiB+; arc=pass (i=1); 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241078AbjEYNRA (ORCPT + 99 others); Thu, 25 May 2023 09:17:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231397AbjEYNQ7 (ORCPT ); Thu, 25 May 2023 09:16:59 -0400 Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0ED999; Thu, 25 May 2023 06:16:57 -0700 (PDT) Received: from hillosipuli.retiisi.eu (82-181-192-243.bb.dnainternet.fi [82.181.192.243]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sailus) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4QRpVY2Z02z49Q1p; Thu, 25 May 2023 16:16:53 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1685020615; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QuDv2Ny6oiXp6mURnH5jCu7g32h4l4gFdh/PW9rVbWg=; b=djdATiB+3N2aqZ9qfQ9DlY+GZgKf2aYffJo60RS0r2Z0LqWl/4ElwnD9qepe90C6WR9Byt AmNI9/2vbbmOdoGEfPJ8fKTDyW3VJRxnt20TWlhIe84gizBj02l/HZjSVTnHCXftkPH21C 0ngSw2vfSkrZD7fDCKYYjORBDxZ1UtE+9DRHacj2yYAhl/2Y4SK50eenkcj4MB4gB1urc5 mtuPfZxad/7oft8rXo121X+ExqQMi1w6QEVpLUokt+4APZoup62uZsnURXwNiF/7HzX2SK YROnnzkWN9Qhy1oOlDriGzXhw9hkdQZgq4QkluZbqTMWPHXsVNQMj7IugpO4yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1685020615; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QuDv2Ny6oiXp6mURnH5jCu7g32h4l4gFdh/PW9rVbWg=; b=hL0zQlYJz7XX0zlvdcV7ikpLw5AwNX/RpOePcNkHvuJswg/6yw3VOxx+fB6o2FBF9UpWeQ tLcCzWfaWdCwNWSD/zYLLWwwVyyRQsaYA7t/O0T6PRiWxvsGIZnz2cu6YtCDI6iCrkNDoo ZoujwEahakAOmnl9timaBuuKGFT32vII/yhiXAFMQZLCKs1LOOLcvr8MMGLU03wjV5NOZb fPCMyQTHc1Uf2dVTB3aqo5CFrLuNdHLiGE4b9HGEMJaFfMnUgaGo84wjg83ostJkuZRh37 rmQDjQ6sOsvpFuDT5Fj7fXp3sMffyYGksGc/1hKyiSU4nKziu1sEEzi1yxGMfg== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sailus smtp.mailfrom=sakari.ailus@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1685020615; a=rsa-sha256; cv=none; b=faHfmXhMomZ3Zfka9zPvHXkwv3PuqU1A2WCv/dGIN8H0qrVGPafjeaMQZ4oxGFecemUMK+ CteyIiEMmmbM9Et0XApNacDOhTOoOTA2zvO9EDkaSN2j1u1ka9q/L6SSH/1wwfhRgi2wGb OQfuD01dN6NtmNjqhad/lpGSEi6pbnvl9KAytiTjy+sSHsWowPstWk1gNcjj6ixaL2g+sK 9ogwMgSLx3lFzAtOkTacAahWWks2XKhxctYOqCXLc8WSQK23YBLrjG2lldlkm7a2nG1BBc rVyhTSmjCkZHl3t+NNEiaKolZcmBXqsofHMgmFnXSq5/SzqK27p9M7s4whjfdA== Received: from valkosipuli.retiisi.eu (valkosipuli.localdomain [192.168.4.2]) (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) by hillosipuli.retiisi.eu (Postfix) with ESMTPS id 9B802634C91; Thu, 25 May 2023 16:16:52 +0300 (EEST) Date: Thu, 25 May 2023 16:16:52 +0300 From: Sakari Ailus To: Krzysztof Kozlowski Cc: Arnd Bergmann , Joe Tessler , Hans Verkuil , Mauro Carvalho Chehab , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Thierry Reding , Jon Hunter , Manivannan Sadhasivam , Michael Tretter , Pengutronix Kernel Team , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , Niklas =?iso-8859-1?Q?S=F6derlund?= , Rui Miguel Silva , Wenyou Yang , Bin Liu , Matthias Brugger , AngeloGioacchino Del Regno , Minghsiu Tsai , Houlong Wei , Andrew-CT Chen , Andrzej Pietrasiewicz , Jacek Anaszewski , Sylwester Nawrocki , Patrice Chotard , Yong Deng , Paul Kocialkowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Prabhakar , Ezequiel Garcia , Philipp Zabel , Sean Young , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-rockchip@lists.infradead.org, oushixiong Subject: Re: [PATCH 20/28] media: platform: jpeg: always reference OF data Message-ID: References: <20230312131318.351173-1-krzysztof.kozlowski@linaro.org> <20230312131318.351173-20-krzysztof.kozlowski@linaro.org> <86431868-488b-4a72-944b-231b6d0382b0@app.fastmail.com> <8b7816b0-1daa-1c49-6f9d-40769d228a39@linaro.org> <676cb6ac-84a3-025f-bb05-55dd27c365fe@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <676cb6ac-84a3-025f-bb05-55dd27c365fe@linaro.org> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, Mar 21, 2023 at 09:26:29AM +0100, Krzysztof Kozlowski wrote: > On 21/03/2023 09:24, Arnd Bergmann wrote: > > On Tue, Mar 21, 2023, at 09:21, Krzysztof Kozlowski wrote: > >> On 21/03/2023 09:11, Arnd Bergmann wrote: > >>> On Sun, Mar 12, 2023, at 14:13, Krzysztof Kozlowski wrote: > >>>> The driver can match only via the DT table so the table should be always > >>>> used and the of_match_ptr does not have any sense (this also allows ACPI > >>>> matching via PRP0001, even though it might not be relevant here). This > >>>> also fixes !CONFIG_OF error: > >>>> > >>>> drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c:1890:38: error: > >>>> ‘mtk8195_jpegdec_drvdata’ defined but not used > >>>> [-Werror=unused-const-variable=] > >>>> > >>>> Signed-off-by: Krzysztof Kozlowski > >>> > >>> I see now that we both submitted the same patch, but now Hans > >> > >> We as you and me? I cannot find your patch on lore: > >> https://lore.kernel.org/all/?q=f%3Aarnd%40arndb.de > > > > This is the one that I sent back in January: > > > > https://lore.kernel.org/all/20230117172644.3044265-1-arnd@kernel.org > > Uh, that's from January! It's still waiting in Patchwork: > https://patchwork.linuxtv.org/project/linux-media/patch/20230117172644.3044265-1-arnd@kernel.org/ Yes... this still makes sense, to remove of_match_ptr(). I rebased this, resulting in: From 230cfaabcd2d5a5f0bc74e113fe84f95028bcdc5 Mon Sep 17 00:00:00 2001 From: Krzysztof Kozlowski Date: Sun, 12 Mar 2023 14:13:10 +0100 Subject: [PATCH v2 20/28] media: platform: jpeg: always reference OF data The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it might not be relevant here). Signed-off-by: Krzysztof Kozlowski [Sakari Ailus: Rebased on media tree master, reword commit message.] Signed-off-by: Sakari Ailus --- drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c index 0051f372a66cf..8bcbaa9658bac 100644 --- a/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c +++ b/drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c @@ -1866,7 +1866,6 @@ static const struct dev_pm_ops mtk_jpeg_pm_ops = { SET_RUNTIME_PM_OPS(mtk_jpeg_pm_suspend, mtk_jpeg_pm_resume, NULL) }; -#if defined(CONFIG_OF) static const struct mtk_jpeg_variant mt8173_jpeg_drvdata = { .clks = mt8173_jpeg_dec_clocks, .num_clks = ARRAY_SIZE(mt8173_jpeg_dec_clocks), @@ -1949,14 +1948,13 @@ static const struct of_device_id mtk_jpeg_match[] = { }; MODULE_DEVICE_TABLE(of, mtk_jpeg_match); -#endif static struct platform_driver mtk_jpeg_driver = { .probe = mtk_jpeg_probe, .remove_new = mtk_jpeg_remove, .driver = { .name = MTK_JPEG_NAME, - .of_match_table = of_match_ptr(mtk_jpeg_match), + .of_match_table = mtk_jpeg_match, .pm = &mtk_jpeg_pm_ops, }, }; -- 2.30.2 -- Sakari Ailus