Message ID | 20221231164628.19688-4-samuel@sholland.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3421691wrt; Sat, 31 Dec 2022 08:47:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXtTdRuqmYzM35pzvqzlMEEViTcFGv6TydYU6hKSOEG9OeTE8fEqvlGM1p/LRKwNujT9wAlT X-Received: by 2002:a17:902:bd87:b0:189:9a71:10a5 with SMTP id q7-20020a170902bd8700b001899a7110a5mr48375418pls.5.1672505274780; Sat, 31 Dec 2022 08:47:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672505274; cv=none; d=google.com; s=arc-20160816; b=J7YdRaXfsN10V8drfaSZI+1Hb6klQXrWGTo3h8twA05hKp4HHE58g5gDpVTuLQY08c RjOrltYtOKTaBKaCWfr4OWjOTmT3ePR4CuEWWp2ttNfRFFgawL/ehEN/BxaGEEYap1Dh AIBBGU9ogPEzWOWjQCKUiMCfRvpOmriLEx0OkvOUnFFf4sgBwV4wrsBoguAruQCGgjaF oZBCiqObT/5NRVuVNkMc1G7lXEIGQtRCgDxQp3L0tYZuNdyNqTgu4biL6hr5T+uzSaPl 7EbET+fZ21oIVaFkadGm0799ShrHcQG1DeClM8zVdbSt+3+v6doUfCvYIjPBujkKhniM 9nqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=vEylqdPcoZ0euJOiHbHp34nwz64q54ysKO9PHy+mOik=; b=x7m5gaM021+N1rD6tFuVmA0ifeSY1u2ubmSU7Hh1UgxlklB5WnbP8+Lmo2pzdEpxpr qYBpqmSJjoT4iYhjHQWDnh8H1XL7vpN1jGxse1IPaCpVSVbu/VvzAUSfXkoFERCn5hOP gMeMrO9tiLDMrlJY0UAJfdYd7xyA+ePhd46MC2anM4ktKUc6yPCecTnN5nDUriukfCxV LJSz8x7MlIjRbyjz/voR6QBdGnyKlhrKfp8SC75ZnAHNLmNkNufOf6KeyRf6XN3hIob7 DI/D4WpWzxWWvGT24TLMFQ8ETQRzmFYi9ld3ihsObtD+msiNA2K8CA7LaE2EgcOBx2QO q12A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=1rPKUsxg; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=dM6ESZzO; 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=sholland.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a72-20020a63904b000000b00477bfab5a83si26809059pge.2.2022.12.31.08.47.43; Sat, 31 Dec 2022 08:47:54 -0800 (PST) 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=@sholland.org header.s=fm3 header.b=1rPKUsxg; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=dM6ESZzO; 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=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231165AbiLaQqp (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Sat, 31 Dec 2022 11:46:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232078AbiLaQqg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 31 Dec 2022 11:46:36 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE72A60D0; Sat, 31 Dec 2022 08:46:35 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5CE985C009C; Sat, 31 Dec 2022 11:46:35 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 31 Dec 2022 11:46:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1672505195; x=1672591595; bh=vE ylqdPcoZ0euJOiHbHp34nwz64q54ysKO9PHy+mOik=; b=1rPKUsxgmjqpFZdAfi a3OPrH3yZL9jXRY32T0irAR/mW9JrzsVFHMTs4wS1TTBaAScL4NRv+FRu/6aqzZg KaKcIqdsK9o+Q6uDBMPGCetRpHL3rY+6NNGDuLcfIFtcDly/XnEBlntPQ5suVzxP 8ohCJq2ioga4MSmhHkNlIHJKH1gW1RTx2h0be6Bid1jgoXk0d9m91BATEY/uU9+r FbyzufJrJFRRELVwD9aMsm7lRHgG1431KxLxivrxuSACB8wCeH9Vl+4197TigYFa QBIZ5wB11Q2M2WhcdNAkdKaDamGnCxS5PeREAM0gELUHqUJ7uiTNbnZVpwU8qOir WlFQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1672505195; x=1672591595; bh=vEylqdPcoZ0eu JOiHbHp34nwz64q54ysKO9PHy+mOik=; b=dM6ESZzOqo3QpkRhPj0cexpFFM+QN qFoHLzZo6/l1TtN2trAen82Y1JOQUfWLhvVQms4inKKS2PWH7+KckhL8YrWhiNkU V3eSIky9nSyfFbBrQnGW8lrJPQm4VGGW3Tcez3KNuvFfPBE8eewZuH3o7FU6kSq0 +I8L9DGHEtLApZDbHZkOT+lME2kzTmQjdcwrz70Z2gXb7tA73mbsB0+gQ3iw/HbR UItu3LEfHsYCoCzTRBNEJRfVMRR9AY7zRce97J2wkksxmpwshN5IahK/NC9antDY R2vmeBzMXKqKoU/YiGQTivbT17QJ2GvicLQdZh63vAZOCeQwCrNzviiYg== X-ME-Sender: <xms:a2ewY9cmL_dKrM9irEQfRcZcxZsYZS4WM8iCUjSHoAIVCFX6qlP2_w> <xme:a2ewY7PPIiScSxUaz9veZGEIGRxogu2Ctuvlmc-pvQ9hRV7ab9uc_yghpUZ3Sr2Mu 5nnGTRIBdh5O7MHlA> X-ME-Received: <xmr:a2ewY2iZ0VPLnbvRFdFYfx7COZk6i_k879ld-Zep9vJpsH9TCwJGQpgitZmOiicUrM_pVu9TbfkF_gyjuRz7VDqNcVF39FHRJk19DcFEDzaFiMiOM-NtPEAe-nzP-YORhfXlLA> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrieekgdelvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeehgfdu feeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: <xmx:a2ewY28t1eAnWEhOQwggTbIIFtstW7qRSw4S6RgXsdRn7-DsZmTg4g> <xmx:a2ewY5vWLaIfG5o9d6bAzvRajKdViiqOCvTCIQodqrgoWM8HNFyQdw> <xmx:a2ewY1E-Hv5TlgTo46ufI9apB9MorSw4wL9j7eeRyaFSc9NaStRUsg> <xmx:a2ewY0nj0fcA6jli-MEERMn9d4J2sqV5BIiW65e4esUsu69xyJ2erg> Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 31 Dec 2022 11:46:34 -0500 (EST) From: Samuel Holland <samuel@sholland.org> To: Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Paul Kocialkowski <paul.kocialkowski@bootlin.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: Samuel Holland <samuel@sholland.org>, Albert Ou <aou@eecs.berkeley.edu>, Conor Dooley <conor@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Maxime Ripard <mripard@kernel.org>, Palmer Dabbelt <palmer@dabbelt.com>, Paul Walmsley <paul.walmsley@sifive.com>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-riscv@lists.infradead.org, linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev Subject: [PATCH 3/4] media: cedrus: Make SRAM section claiming optional Date: Sat, 31 Dec 2022 10:46:26 -0600 Message-Id: <20221231164628.19688-4-samuel@sholland.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221231164628.19688-1-samuel@sholland.org> References: <20221231164628.19688-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753748890747545905?= X-GMAIL-MSGID: =?utf-8?q?1753748890747545905?= |
Series |
Allwinner D1 video engine support
|
|
Commit Message
Samuel Holland
Dec. 31, 2022, 4:46 p.m. UTC
The video engine in the D1 family of SoCs does not have a switchable
SRAM section. Allow the driver to probe even when the SRAM section
reference is missing.
Signed-off-by: Samuel Holland <samuel@sholland.org>
---
drivers/staging/media/sunxi/cedrus/cedrus_hw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hi Samuel, On Sat 31 Dec 22, 10:46, Samuel Holland wrote: > The video engine in the D1 family of SoCs does not have a switchable > SRAM section. Allow the driver to probe even when the SRAM section > reference is missing. > > Signed-off-by: Samuel Holland <samuel@sholland.org> Looks good, I've also just checked that calling sunxi_sram_release with no reference to the SRAM held is fine (maybe a word about it in the commit log would be nice, but probably not worth making a v2 just for that). Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Cheers, Paul > --- > > drivers/staging/media/sunxi/cedrus/cedrus_hw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_hw.c b/drivers/staging/media/sunxi/cedrus/cedrus_hw.c > index fa86a658fdc6..11e859617932 100644 > --- a/drivers/staging/media/sunxi/cedrus/cedrus_hw.c > +++ b/drivers/staging/media/sunxi/cedrus/cedrus_hw.c > @@ -257,7 +257,7 @@ int cedrus_hw_probe(struct cedrus_dev *dev) > } > > ret = sunxi_sram_claim(dev->dev); > - if (ret) { > + if (ret && ret != -ENOENT) { > dev_err(dev->dev, "Failed to claim SRAM\n"); > > goto err_mem; > -- > 2.37.4 >
Dne sobota, 31. december 2022 ob 17:46:26 CET je Samuel Holland napisal(a): > The video engine in the D1 family of SoCs does not have a switchable > SRAM section. Allow the driver to probe even when the SRAM section > reference is missing. > > Signed-off-by: Samuel Holland <samuel@sholland.org> > --- > > drivers/staging/media/sunxi/cedrus/cedrus_hw.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_hw.c > b/drivers/staging/media/sunxi/cedrus/cedrus_hw.c index > fa86a658fdc6..11e859617932 100644 > --- a/drivers/staging/media/sunxi/cedrus/cedrus_hw.c > +++ b/drivers/staging/media/sunxi/cedrus/cedrus_hw.c > @@ -257,7 +257,7 @@ int cedrus_hw_probe(struct cedrus_dev *dev) > } > > ret = sunxi_sram_claim(dev->dev); > - if (ret) { > + if (ret && ret != -ENOENT) { What about more strict check based on quirks flag? Best regards, Jernej > dev_err(dev->dev, "Failed to claim SRAM\n"); > > goto err_mem;
diff --git a/drivers/staging/media/sunxi/cedrus/cedrus_hw.c b/drivers/staging/media/sunxi/cedrus/cedrus_hw.c index fa86a658fdc6..11e859617932 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus_hw.c +++ b/drivers/staging/media/sunxi/cedrus/cedrus_hw.c @@ -257,7 +257,7 @@ int cedrus_hw_probe(struct cedrus_dev *dev) } ret = sunxi_sram_claim(dev->dev); - if (ret) { + if (ret && ret != -ENOENT) { dev_err(dev->dev, "Failed to claim SRAM\n"); goto err_mem;