Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4678701imw; Tue, 12 Jul 2022 12:15:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tARnHNuFXWrlc2+dMfXMUDkoIPUvWZqxQDkXDVr/wlf52T/DxpHXpBc+U50NP7UBedqKuu X-Received: by 2002:a17:902:d1cb:b0:16c:1fda:dcd7 with SMTP id g11-20020a170902d1cb00b0016c1fdadcd7mr25814260plb.170.1657653331171; Tue, 12 Jul 2022 12:15:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657653331; cv=none; d=google.com; s=arc-20160816; b=Ve7NMWhDXwGgLnQdasTh5pMFbESZEc8ablPRKH+wyh47fDmfTKb2SmiVYt5qz8H62M 93f8L779Eho5iC97qUks8ZMc0wCEeeQ4om8TjSVPz+E0Z2NbyeZ0f9CaHe5XhdazRDwl /83b2/kvetpwS9cGhx58PAXJDzJQz6nPkCFD36JLga3+PvDKNSpTbWMfMa0dMOg1M0c9 OluInSu3UBZY8F9oJ1h8ii7lORe2XaP9tyzDW9XUI2rcPOefNgIWnmWVmgoV7FKmyQQu fRCn2Wng6+ty23uKXzzzK5mkuTHKtcotfESGf7SEqOeDtOvgpeWOuAvUir2Jz2XjqxLY Bi6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=NTXFqOcrOKRNLjJxR5qY8W3gK379Wzswfac5E6lK/sY=; b=xExvfdeT7QUI88B0nGaG3hiUbWhjSBVuVxXeROC+uk+hEBCs7U7VtMSU/pfqDXxgXp WvQbPnF+HG5JeymJSgOUj5GhY6jAYLM3kD5pHlatmlB9CyBe3rAKHEQDfP1aovSkFr9A s8NFnnvxg0iX43MqtsdersMrOItyuL9lX9j4cvj3nq38UeJsDRhF+oYnqcFEXuozg0OD sxhM13dbrCSKTYauYEw+0Py/5hJVZ+3aIHSTQrv+GI3tMEU2hajYY9hRJTd/WfQ1NCht QPVvxMSfXsEEjJm/9hNhUkjC0u2WI8emHzq5tm+vYJN8Q9i+Db99y2/jYqG1OD1wC+GG s91g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fID7Rpz+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i7-20020a170902c94700b0016781796321si15877083pla.49.2022.07.12.12.15.18; Tue, 12 Jul 2022 12:15:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fID7Rpz+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232913AbiGLSaU (ORCPT + 99 others); Tue, 12 Jul 2022 14:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbiGLSaS (ORCPT ); Tue, 12 Jul 2022 14:30:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7C806B258 for ; Tue, 12 Jul 2022 11:30:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 98476B81B94 for ; Tue, 12 Jul 2022 18:30:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE75EC3411C; Tue, 12 Jul 2022 18:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657650614; bh=anlDKDka6DFB/QifmAHbo9FqGSG5XlLAabqil1wRujg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fID7Rpz+CtcSJB9DB8/KK28EAXEvGw6DaphbrLvUU8fq0R94JM5jqEpkf1rNX634o W8ojRefX5TR+IGaPn5m+YeI+MIX5hSvslDoiUcuiLJAiaBdLUQuE7N8sHsv5KUCIKo 0QIkZy5qKDyRdCmeB0oxWWIph/Eaec729s38KfIk= Date: Tue, 12 Jul 2022 20:30:11 +0200 From: Greg KH To: Joel Slebodnick Cc: linux-kernel@vger.kernel.org, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, nsaenz@kernel.org, athierry@redhat.com, gustavoars@kernel.org, keescook@chromium.org, stefan.wahren@i2se.com, gascoar@gmail.com, ojaswin98@gmail.com, len.baker@gmx.com, jakobkoschel@gmail.com, linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, jsavitz@redhat.com Subject: Re: [PATCH] remove custom return values in vc04_services Message-ID: References: <20220712181928.17547-1-jslebodn@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220712181928.17547-1-jslebodn@redhat.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 12, 2022 at 02:19:28PM -0400, Joel Slebodnick wrote: > Remove all instances of enum vchiq_status from vc04_services and replace > them with regular linux error values. > > VCHIQ_SUCCESS replaced with 0, VCHIQ_ERROR replaced with -EINVAL, and > VCHIQ_RETRY replaced (for the most part) with -EINTR as VCHIQ_RETRY > often is returned from an interruptable function call. > > The exceptions to this are vchiq_send_remote_use() and > vchiq_send_remote_use_active() as they return a VCHIQ_RETRY but have > been changed to return -EINVAL instead of -EINTR. This is because when > the conn_state is VCHIQ_CONNSTATE_DISCONNECTED, the state is not valid > to continue on in the function > > Signed-off-by: Joel Slebodnick > --- > .../bcm2835-audio/bcm2835-vchiq.c | 10 +- > .../include/linux/raspberrypi/vchiq.h | 67 +++--- > drivers/staging/vc04_services/interface/TODO | 5 - > .../interface/vchiq_arm/vchiq_arm.c | 122 +++++----- > .../interface/vchiq_arm/vchiq_arm.h | 12 +- > .../interface/vchiq_arm/vchiq_core.c | 220 +++++++++--------- > .../interface/vchiq_arm/vchiq_core.h | 18 +- > .../interface/vchiq_arm/vchiq_dev.c | 38 ++- > .../interface/vchiq_arm/vchiq_ioctl.h | 8 +- > 9 files changed, 238 insertions(+), 262 deletions(-) > Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - Your patch did many different things all at once, making it difficult to review. All Linux kernel patches need to only do one thing at a time. If you need to do multiple things (such as clean up all coding style issues in a file/driver), do it in a sequence of patches, each one doing only one thing. This will make it easier to review the patches to ensure that they are correct, and to help alleviate any merge issues that larger patches can cause. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot