From patchwork Thu Oct 17 13:36:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13840074 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 F30D6D37491 for ; Thu, 17 Oct 2024 13:47:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=kyWgxkbix94x+G5/9hQ+NYgL06WHeKtMUYRlw8s2Hwg=; b=KxViGEyAwS5AGXy9P2fHeg4IKw 52RjzuPNtGr73VQZEENUFR6Qm7h3OQk8eV+0aQZ4PyXTMXBtsWwIyZ5eoS4UeQnO2U4SYrl1N0reY 4l8Ldv8cPghBGt6I7qsi51jFwNTP5AED4MGQZCY9huuY7t18yVCtunnjkXdhQ33tdXT4hGqbAMPSA u6x2xi+ib4/jGrbIX/nd3wEHsz99Y55B7KCodi22/byaB6B48rhR44uuUDevp4O6hlOU8rPX0i1zU /F9hATi+5cWZP+vwrO1ucORKuGqVKMVtTyANcCUMm3ALNZwNovd+CuewF3+8g4K4kFBESuaQxR6H3 w1yvI2Gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1QqE-0000000Ezjd-066F; Thu, 17 Oct 2024 13:47:02 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1QgJ-0000000ExMy-0PsU; Thu, 17 Oct 2024 13:36:51 +0000 Received: from umang.jain (unknown [IPv6:2405:201:2015:f873:55d7:c02e:b2eb:ee3f]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9F5BE669; Thu, 17 Oct 2024 15:34:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1729172100; bh=SVNNeOOOE6kU3kap2hv3+VtkDF0BM5c8lDJmBS++fM8=; h=From:To:Cc:Subject:Date:From; b=MSKdg10TcYx64RDHpow2kcNdvSgP8JIBXnzCSwsSDBz9LnJV3f8zf/jiwVvZ4uFcK 7HxIulJ2PJjIpNApNdIj5LtrcF4owC0l5MO+B+Tto8Pps51LKQWfq4Oto6JZKQud+w PhsiQC7ieHXCUL8KwJDD0QZZSKFSZOxiDq/4u/YQ= From: Umang Jain To: Greg Kroah-Hartman , Broadcom internal kernel review list Cc: linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Dan Carpenter , Kieran Bingham , Laurent Pinchart , Stefan Wahren , kernel-list@raspberrypi.com, Umang Jain Subject: [PATCH 0/6] staging: vchiq: Further simplify bulk transfer Date: Thu, 17 Oct 2024 19:06:23 +0530 Message-ID: <20241017133629.216672-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241017_063647_356949_6B75A23A X-CRM114-Status: UNSURE ( 4.89 ) 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 This series aims at further simplifying the bulk transfer code paths. For each of the bulk transfer modes (blocking, nocallback, callback) this series tends to reduce the function parameters that are open-coded in the respective function signatures - helping with easy readability for the various bulk transfer code paths. Umang Jain (6): staging: vchiq_core: Subsume 'offset' in struct vchiq_bulk staging: vchiq_core: Simplify bulk data preparatory functions staging: vc04_services: Simplify block bulk transfer code paths staging: vc04_services: Simplify (no)callback bulk transfer code paths staging: vchiq_core: Simplify bulk transfer queue message function staging: vchiq_dev: Drop userdata local pointer .../interface/vchiq_arm/vchiq_arm.c | 55 +++++++++---- .../interface/vchiq_arm/vchiq_core.c | 81 +++++++++---------- .../interface/vchiq_arm/vchiq_core.h | 9 +-- .../interface/vchiq_arm/vchiq_dev.c | 30 ++++--- 4 files changed, 97 insertions(+), 78 deletions(-)