From patchwork Fri Sep 6 07:25:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13793513 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 96647CE7AE0 for ; Fri, 6 Sep 2024 07:36:29 +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:References:In-Reply-To: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:List-Owner; bh=KRgJ3fPHowj7OBCXiL1CyTLV1vUbYXiOkRtOO0/Fk10=; b=GSezpmdK9KvWspdFbIR69LS+aF DQOV9DRF55iKr4lPFNwAaKcIYp56dYebPAD8qm4J3AAnt57k7sM0iAUhiPqVuVEO+ZPW1GJ7O+ooa U8FU/Q6jnsWIEt+V6SXzUiJGO5FO2RVAwW+1jOGRKVQ9S4LME/0UlDoB8lUSSnZueR5szNRUpFbly d8zFpQhTxlQoqjDJVdabErH7beCM5GFh+RqovVb3fDTZ613wnwmWdLGUEs8mr4mr/0Q8CscxU2poS gV3F1ZAy+KtxGOALtXb6xezwg74MQfgCSTkahSt5WPsW2fEunGKn5w79hOSibpHGQ2ChSoAAesF2v x04x6dGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smTW0-0000000B7ZL-0p9v; Fri, 06 Sep 2024 07:36:20 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smTLf-0000000B4S7-37Tn; Fri, 06 Sep 2024 07:25:41 +0000 Received: from umang.jain (unknown [IPv6:2405:201:2015:f873:c173:4b:4a04:3a21]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2D5E2220; Fri, 6 Sep 2024 09:24:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1725607465; bh=jEeR5T+2tgwvFi3l+N7+f40D1nRLQdlTtynWxvMNymw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bzSE7BbPe3JB0OrTjJgYMW8vBAxEF41v1fGouA0uc3OBz47eriZq4RJLoyceVWmU8 OPWIPdl9y2XPL8kw1zXKx1e+6WuoGfPNFUnfIYxnTNlXLUmmQhkL7N2zAfufMfnrZu j9mWeLSSdmo97lBoLjQ4iFQzvLSiH9YRnSFk1P+k= From: Umang Jain To: Florian Fainelli , Broadcom internal kernel review list , Greg Kroah-Hartman Cc: linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Kieran Bingham , Arnd Bergmann , Stefan Wahren , Dave Stevenson , Phil Elwell , Laurent Pinchart , Umang Jain Subject: [PATCH v4 7/7] staging: vchiq_core: Pass enumerated flag instead of int Date: Fri, 6 Sep 2024 12:55:06 +0530 Message-ID: <20240906072506.174026-8-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240906072506.174026-1-umang.jain@ideasonboard.com> References: <20240906072506.174026-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_002539_945157_8D46E713 X-CRM114-Status: UNSURE ( 7.99 ) 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 Pass proper enumerated flag which exists, instead of an integer while calling queue_message(). It helps with readability of the code. Signed-off-by: Umang Jain Reviewed-by: Stefan Wahren --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c index 497c09d991b3..e9041a20d0b2 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -3131,7 +3131,8 @@ vchiq_queue_message(struct vchiq_instance *instance, unsigned int handle, switch (service->srvstate) { case VCHIQ_SRVSTATE_OPEN: status = queue_message(service->state, service, data_id, - copy_callback, context, size, 1); + copy_callback, context, size, + QMFLAGS_IS_BLOCKING); break; case VCHIQ_SRVSTATE_OPENSYNC: status = queue_message_sync(service->state, service, data_id,