Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8620317rwl; Sat, 31 Dec 2022 08:48:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXshoOTvVbij603D9dZJfEq6a83dqyU3Qq1V6mX06PFZ783tweBebhkhVRv5OzX5mA8WW1D+ X-Received: by 2002:a62:a21e:0:b0:581:95a7:d2f4 with SMTP id m30-20020a62a21e000000b0058195a7d2f4mr14302754pff.9.1672505306411; Sat, 31 Dec 2022 08:48:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672505306; cv=none; d=google.com; s=arc-20160816; b=kY7niuSG1MRXwqm82rGsi2ZP86a7mUthl//mzWQb2qmmpsg51rgn4VKs/xY+n1kbjJ KU+O+8qBxlYtfStie98W3CbZkiPz6RbRQxxGVJL+QxprAsbDKkQtBX7/6uHC+khmQT1Z NjCZlZHlOIPNUpXO6PlVEug82yAnKx5KZqLMbRDVuRWIypJUo/hfYRKVRpLfsa9ZZfah ZrFJrBsVUmGjji0J/m0MpMCpygQv1ANt67k4UZnepvA7KnvRkqaDJREQrkxkfJ4x7DD3 mHi7DwaKSQuJAhkwWXU3nnAh2OBqfobBxp65CVm3LQWDcfGkRIHdoIsILdk6nUL7lUV1 Aa8A== 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 Return-Path: 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.48.18; Sat, 31 Dec 2022 08:48:26 -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 + 62 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 ); 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: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrieekgdelvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpedukeetueduhedtleetvefguddvvdejhfefudelgfduveeggeehgfdu feeitdevteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 31 Dec 2022 11:46:34 -0500 (EST) From: Samuel Holland To: Chen-Yu Tsai , Jernej Skrabec , Paul Kocialkowski , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski Cc: Samuel Holland , Albert Ou , Conor Dooley , Greg Kroah-Hartman , Maxime Ripard , Palmer Dabbelt , Paul Walmsley , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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