From patchwork Mon Dec 19 11:57:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13076493 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA3E4C4332F for ; Mon, 19 Dec 2022 11:57:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231752AbiLSL5r (ORCPT ); Mon, 19 Dec 2022 06:57:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231248AbiLSL5q (ORCPT ); Mon, 19 Dec 2022 06:57:46 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF0868FFC; Mon, 19 Dec 2022 03:57:45 -0800 (PST) Received: from umang.jainideasonboard.com (unknown [IPv6:2401:4900:1f3e:7d24:3f0:3e81:fb16:ab4d]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5ECF1825; Mon, 19 Dec 2022 12:57:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1671451062; bh=Go7MiR3dYCV2jmv6BwP/3GC/SWENkVqsP5a91fdMktY=; h=From:To:Cc:Subject:Date:From; b=Vh4K3fIeW5NVh9gjKZnW8nIBvVQFqGp5+Iw5qgdIjcWeMoiW2dn8Jx/IN7HkVCoIM CgiCVA1k03nvVCCJtPkQPBsDXAcYUMpJlHLv6/okdpCMhXIap9nAlFK3/s43D1CGTn 4ihvtNBgeOSWoni+UGaOdjMbrDHN3WIeDI10YuJI= From: Umang Jain To: linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.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 v2 0/7] staging: vc04_services: Remove custom return values Date: Mon, 19 Dec 2022 17:27:18 +0530 Message-Id: <20221219115725.11992-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.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 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(-) Tested-by: Stefan Wahren