From patchwork Fri Dec 23 12:23:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13080949 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B181C4332F for ; Fri, 23 Dec 2022 12:25:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=quzqIDi3deCAIkbZRCgR9qgFektp/HZM7wo1sYHWAN0=; b=L1l5YN3Gf1aJRP 7v9XLnV0/r7uw/FfguKsAfmyibmu88BAklaGnQsIXVLfakLz3aRH5hzL2H2UqW3o6ebkefAykL9pF FDHeRGAPcyBN92086nu1yXtrzBV+bJtRpEQ0eBiZoom2tDwPlhogcqX5SV/BI9SrXMxQl+2qteKwq atbtDs9xLoDVuREMosZ8ttrcSB0VVjElTvEqY9GAFLmwFvMelx+3AXOkIx47IA+4/wRoWfKl7O1Ng ANVM8lVxRGn2NouQCQa90BvvXZrr1WVrlQzA65ii9jow/EXP523s/eCh72fXX4xm5JGi+ZUBCCxsY fXt2ad38q/X0LpIlibmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8h6D-007vKz-9E; Fri, 23 Dec 2022 12:24:29 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p8h69-007vGs-MT; Fri, 23 Dec 2022 12:24:27 +0000 Received: from umang.jainideasonboard.com (unknown [IPv6:2401:4900:1f3f:cd5d:4e48:3b91:9262:9565]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9A863492; Fri, 23 Dec 2022 13:24:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1671798259; bh=YEyh1mjeF/yH078C3+GtKZk8cKm2HekK3uLm+cREVqY=; h=From:To:Cc:Subject:Date:From; b=O0DLmbnit8zZneZ8oY/ZSRJf7VdAiaUhT9xOB9hlHm3TxnNT5u/ZVodABQd8eoRZR glgtr48RP10g7BJhi5qdtu3u5by7DViUHYCl0WW+f1P1QZrXE+X1bM7MVquy83icp8 swT0rDnxORHdGQgcsRUUYX+ius2JfR8y0QR/fpBo= From: Umang Jain To: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Kees Cook , Stefan Wahren , Greg Kroah-Hartman , Florian Fainelli , Adrien Thierry , Dan Carpenter , Dave Stevenson , Kieran Bingham , Laurent Pinchart , Umang Jain Subject: [PATCH v3 0/7] staging: vc04_services: Remove custom return values Date: Fri, 23 Dec 2022 17:53:57 +0530 Message-Id: <20221223122404.170585-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221223_042425_933982_EAA47CC3 X-CRM114-Status: UNSURE ( 8.24 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The series removes the custom return values from functions and replaces them with linux error codes. This address the TODO vchiq interface: * Get rid of custom function return values Changes in v3: - Drop fixes tag for 5/7 as suggested in review - Add Tested-by: by Stefan Wahren to the series Changes in V2: - Patch 3/7 now reports for specific errors like -ENOMEM, -EHOSTDOWN - Patch 5/7 reports -ENOTCONN instead of -EINVAL and adds a "Fixes" tag Umang Jain (7): staging: vc04_services: Replace vchiq_status return type to int staging: vc04_services: Drop VCHIQ_SUCCESS usage staging: vc04_services: Drop VCHIQ_ERROR usage staging: vc04_services: Drop VCHIQ_RETRY usage vc04_services: vchiq_arm: Drop VCHIQ_RETRY usage on disconnect staging: vc04_services: Drop enum vchiq_status remnants staging: vc04_services: vchiq: Drop custom return values from TODO .../bcm2835-audio/bcm2835-vchiq.c | 12 +- .../include/linux/raspberrypi/vchiq.h | 65 +++--- drivers/staging/vc04_services/interface/TODO | 5 - .../interface/vchiq_arm/vchiq_arm.c | 124 +++++----- .../interface/vchiq_arm/vchiq_arm.h | 12 +- .../interface/vchiq_arm/vchiq_core.c | 216 +++++++++--------- .../interface/vchiq_arm/vchiq_core.h | 18 +- .../interface/vchiq_arm/vchiq_dev.c | 36 +-- .../interface/vchiq_arm/vchiq_ioctl.h | 8 +- .../vc04_services/vchiq-mmal/mmal-vchiq.c | 11 +- 10 files changed, 246 insertions(+), 261 deletions(-)