Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1126428rwl; Thu, 5 Jan 2023 09:01:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXtKbymBRYx8Rj99UhDjUuXJNIaJ8Lqs+cqQmQimHcr7aFlveOdo+WWg2w4mGo/qmmC7lWR0 X-Received: by 2002:a17:90b:4acf:b0:225:cece:c629 with SMTP id mh15-20020a17090b4acf00b00225cecec629mr45002081pjb.46.1672938109729; Thu, 05 Jan 2023 09:01:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672938109; cv=none; d=google.com; s=arc-20160816; b=UZvUX5pHC9+pc82XFoCQbww9RqfZXOL0WN/qgCO6r1kdImOcGGxfoBx9ptevJdF87N 0jyrlgydgwruD6UMzoXA5e2cuMkejXYyi0AR54iRpP0B4GjbGFNf/AYcPTXhj0y3tLmS EOk00/YY/8vJADp/QEPT6FxMf14/E8a+xA0Un0SQ20SflR4JJp8ZRf3IqBkMjEHQ6RDi 3uqs1SQRwWxaTHs/AJkyrE8AgG/TMv1VgBR0rFfAqql+d738/Er8Ljz7cHAsOTut8NcN 2PoZHUa/8vtKT+pxe2GGuE+xDyOJedKbE+Eug4J8a1UKJp4viwMQO85tTX5Kl11MXNpl wfYQ== 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 :dkim-signature; bh=pyOyM/HgwJlEQ/SHr0fVdceVxYFOEYTbqWcahqqz92M=; b=k3wQNpYjw7zvk7GehbP6+mAsOkeiTs6Rx1mG56rYDe9GCMcOjpsJyg7lPt4r8YK9ol iMol9z3tyHWDdt9D2IiFFjxZ/vQh25TtLNHmfkQ0Uta0uilet/sGuNZesZ+JwkZex4sq HgJjxpz1+fw/qUZ/6N8uHoN9iXg4QaLgLDuRT7q3zOxew1eP7abtO1Q46/b8rwNX2xbE 4+qxpT8ChBOelTLqMdip3tji+cWaf0QMuD8loSS0VjnGRQ0n3PmxOWIHBZZN08lq+gi8 Rpt6JhjLfewTR9Bvz+pEimcsxI0W14BYLPb7x3XEPfreAaYGPew85SR7lyK1dtsBZV24 OcZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=VQVKe2hU; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pc7-20020a17090b3b8700b002262767bde0si2635418pjb.116.2023.01.05.09.01.39; Thu, 05 Jan 2023 09:01:49 -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=@gmail.com header.s=20210112 header.b=VQVKe2hU; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234948AbjAEQT6 (ORCPT + 57 others); Thu, 5 Jan 2023 11:19:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234950AbjAEQT4 (ORCPT ); Thu, 5 Jan 2023 11:19:56 -0500 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2CD64E42F; Thu, 5 Jan 2023 08:19:53 -0800 (PST) Received: by mail-ej1-x635.google.com with SMTP id tz12so91212571ejc.9; Thu, 05 Jan 2023 08:19:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pyOyM/HgwJlEQ/SHr0fVdceVxYFOEYTbqWcahqqz92M=; b=VQVKe2hUanS6/QijnRF6HkC0a+ngye5JsJDB/WLc6I2avTZBU/dgJ5Pc5p7zQ0uyrc OmZMAIjPj70zYo6IwuWUb/JWAoZlOU8h02pIXCHOZZBGDaKzHb7KNiEFpkc8Cjf3ac8R pUEzIrtIGUtKDiteNml8SNjgIG8qT/HsK93oEGjafTcBOgrUQV+mre7/c/iModBDsEi9 JGN6DdTrLG/BBdLt5V+rDhcjmT11A+FmdL8zpW/uPWMw1b348xCf8RXsylclOt+uAY3f uZHddDuwE+5a4EY3pqNXIjraf3/MtJ3O/Vb93N0sZHlGPPnHHrrET35p3PAKNJYaT0jW L+Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pyOyM/HgwJlEQ/SHr0fVdceVxYFOEYTbqWcahqqz92M=; b=qmdPWIM8uUFk3yGL981szLcIO84Yx9D+QK3hZEaVWNBWnEwBVIRsqS67acrPEt003k gII1nbZtMAjU+mDhgWHHcZGOm/ZoStoKhkn8cmUzhZkzw+LrIHAOQwkXum97BmyA2A5y w6Dl7N5qAtVyCdpxAAegi2ngJlnyKzy2ffV6wsGA2FGZv3eEPb+3eOTLDfzUjvyVg5Nq b3szPrUlrb1AdHAr4Ec6v0kjh9GDtN/k+hE7YFuclMJBr0iM75ajfpkoO0u647ZuK95y wp+Rgn02B5WBvLLj+2BvV1dNUx366jmBQpEyauX6zVbZCJVnGFc53CLUmTdBj0Uoe5xc /X+g== X-Gm-Message-State: AFqh2kp29jU6mhYzchdwZSgWPSFiiyHqdCDPEJJxtJccVd4L/qOImM20 Xdk4RPCh9aZkDcnoCf/UQEA= X-Received: by 2002:a17:906:f854:b0:849:7688:3e3e with SMTP id ks20-20020a170906f85400b0084976883e3emr35059487ejb.44.1672935592250; Thu, 05 Jan 2023 08:19:52 -0800 (PST) Received: from jernej-laptop.localnet (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id z4-20020a17090655c400b0083ffb81f01esm16797532ejp.136.2023.01.05.08.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jan 2023 08:19:51 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Chen-Yu Tsai , Paul Kocialkowski , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Samuel Holland 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: Re: [PATCH 3/4] media: cedrus: Make SRAM section claiming optional Date: Thu, 05 Jan 2023 17:19:49 +0100 Message-ID: <4450464.LvFx2qVVIh@jernej-laptop> In-Reply-To: <20221231164628.19688-4-samuel@sholland.org> References: <20221231164628.19688-1-samuel@sholland.org> <20221231164628.19688-4-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 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 > --- > > 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;