From patchwork Thu Aug 27 08:20:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 9403 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 95CCABDC71 for ; Thu, 27 Aug 2020 08:17:00 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 141F9628F9; Thu, 27 Aug 2020 10:17:00 +0200 (CEST) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 53A9F60379 for ; Thu, 27 Aug 2020 10:16:58 +0200 (CEST) X-Originating-IP: 93.34.118.233 Received: from uno.lan (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 7EC0E240002; Thu, 27 Aug 2020 08:16:57 +0000 (UTC) From: Jacopo Mondi To: libcamera-devel@lists.libcamera.org, Dave Stevenson , Naushir Patuck Date: Thu, 27 Aug 2020 10:20:35 +0200 Message-Id: <20200827082038.40758-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/3] libcamera: raspberrypi: Fail early when opening dma heaps X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hello, three small patches to fail as earlier as possible on errors when opening the dma heaps allocator device. Before the series, the pipeline handler would fail at configuration time, when it actually tries to use the allocator. With this series the pipeline handler fails at match() time (and gets a little more verbose in reporting errors to the user). Thanks j Jacopo Mondi (3): libcamera: raspberrypi: dma_heaps: Add open/close libcamera: raspberrypi: Fail on dmaHeaps_ open error libcamera: raspberrypi: dma_heaps: Be verbose on errors .../pipeline/raspberrypi/dma_heaps.cpp | 29 ++++++++++++++++--- .../pipeline/raspberrypi/dma_heaps.h | 2 ++ .../pipeline/raspberrypi/raspberrypi.cpp | 13 +++++++++ 3 files changed, 40 insertions(+), 4 deletions(-) --- 2.28.0