Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp621905lqs; Thu, 13 Jun 2024 23:50:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUpSHn3gsrJIMNpw2W/uuOPpleKTIGx266nYiNxI5xGaj0qObS8I84ucFJKeBoJCiWGzgyEyzLU/VZDEExU2DqopgNSUZaDVsrsXZ/JKA== X-Google-Smtp-Source: AGHT+IEAcTq7RfKw7xVqSzzh+jUCEJ0wLFhiB51rVznJU0JVILqTFznQiiO3oyEE/WybggNVsP+t X-Received: by 2002:a17:90a:bd08:b0:2c3:7e3:6be0 with SMTP id 98e67ed59e1d1-2c4db858806mr2144062a91.31.1718347835705; Thu, 13 Jun 2024 23:50:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718347835; cv=pass; d=google.com; s=arc-20160816; b=DDA0WjGxOMPkwwVvzh1xxGtolznv2B6KnMc++mupdZP5Iyy9J5oF+2XD/cGoD8W/dP MIjCpZ8K79SBk1ofOa7ORdZIAwHKHgn1HXmXOr8PHT9yoPC95HkO/2RV7P8v3Kdbaj4X 0YjjZhy9PTKrdebqxs3sZECYHnG3sYOFmis7zZSpj6oKdYuKxtMdctObwezgqxvfLfXH RGNKsUym35M1MuVUOV1FlD99bYgPmP9zd+mXoSpd2GndoCvqfLp7M/JL25DA6XGVAc1Q 0LcH1fZ+28om8w2qp1oedAkedtLf8CxbfFgyw0LpunkZPL4PFGpMHyEzOuG5852tHO7Y 0U+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jdE2B23F+tJcjPtFeOhi9fdYtlsfAZupJf6xWSNLSTA=; fh=RJ+h+8Qsecp5rxGz/r93+ISW43E7tiLvX2eRzpxq2xg=; b=Lu6mZ8cJUkz3PX8BY6CIKyeJ0FRfSDJaeQGb+Ae+3rOkl2BTYhHESPNg0j1K37/yvE eaEESnNVDo0e3wh0CFCuERDecCnUvLenkpqcLC8cW4d5mfK74NU4o8+HVHSxJcSzR9hS 0YJ/9ylZEOt1WLlkqEq6lgXX0/NRDPkxhqgGa069kwcfAdvuhDn/Sg5Y9RjnCnjJkYU/ MgMU1tqGbRiwr3y4R5bgMxTuGBw+cL2uicMVfHQDeZIYWjp3RcT3yYUyLKltBxlNooYK 03npgefD/8jOvWoEf7NPuKRbNxa8iE8HSFlFUjssbfpOLRSBAAoL0O1DYt5CsqX5NHSF fywg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GzXnHHU7; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-214409-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4c4625cdesi3002761a91.55.2024.06.13.23.50.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 23:50:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214409-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GzXnHHU7; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-214409-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4509D282B96 for ; Fri, 14 Jun 2024 06:50:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9524B14883F; Fri, 14 Jun 2024 06:50:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GzXnHHU7" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3C7914882B; Fri, 14 Jun 2024 06:50:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718347811; cv=none; b=IL2ykmQR8nXRuQnYBhC6qOXE9GBrLWMq23dycpofCba27yBtZE8n0Uzr3PksjiYwiXdPSg9MftkCJ6i7yIJQLEjGs380g2c1mV3GAGHwyYPJkm6tgAmAoora7ETBPBPlXpLJPfvwng99+WP6+BkG0nVmoiyZq4fzh8rJWSkq0NY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718347811; c=relaxed/simple; bh=jt9YTgTk6SZvNJvRMAeqZX4LPxGTdXb5HZRZ4VuwGRQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Kr5CXniFxgRk11g2OE+jFiXx/8a4LVytZnEASd8pbeojxy//ZkPhWSB83zTdFwwhBcJLNgXVDb4x8Jb1n+Wo86xBZLT5iIzrgOKMRRaxguEc5kpZfb6rCrvVruvf69PFlbt75SeeJZOCgmEQSOYyx77bX1UlEKhQNhcAeiDm2nQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GzXnHHU7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D805C2BD10; Fri, 14 Jun 2024 06:50:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718347811; bh=jt9YTgTk6SZvNJvRMAeqZX4LPxGTdXb5HZRZ4VuwGRQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GzXnHHU7+MuXoJt0yt/sVJkev7OLM4Sogl9iiK1QoSRWdYYj62Q3bFIImEeJoBP24 pjt0m9cNY6tWDwyIs8gu5y+Vbdg4veRGgtLdk/setNt/L6T6P1ox3Gzp6rgq7NrN9P CAZGYG6atDRhLOKzYiHjVY6hULqw2Yfh7lGAfpHA= Date: Fri, 14 Jun 2024 08:50:08 +0200 From: Greg Kroah-Hartman To: Kieran Bingham Cc: Umang Jain , Florian Fainelli , linux-rpi-kernel@lists.infradead.org, Broadcom internal kernel review list , Stefan Wahren , Laurent Pinchart , Dave Stevenson , detule , Dan Carpenter , "moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE" , "open list:STAGING SUBSYSTEM" , open list Subject: Re: [PATCH] staging: vc04_services: vchiq_arm: Fix initialisation check Message-ID: <2024061436-twister-survival-a05c@gregkh> References: <20240613194150.2915202-1-kieran.bingham@ideasonboard.com> <20240613194150.2915202-2-kieran.bingham@ideasonboard.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240613194150.2915202-2-kieran.bingham@ideasonboard.com> On Thu, Jun 13, 2024 at 08:41:46PM +0100, Kieran Bingham wrote: > The vchiq_state used to be obtained through an accessor > which would validate that the VCHIQ had been initialised > correctly with the remote. > > In commit 42a2f6664e18 ("staging: vc04_services: Move global g_state to > vchiq_state") the global state was moved to the vchiq_mgnt structures > stored as a vchiq instance specific context. This conversion removed the > helpers and instead replaced users of this helper with the assumption > that the state is always available and the remote connected. > > Fix this broken assumption by re-introducing the logic that was lost > during the conversion. > > Fixes: 42a2f6664e18 ("staging: vc04_services: Move global g_state to vchiq_state") > Signed-off-by: Kieran Bingham > --- > .../staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 4 ++-- > .../staging/vc04_services/interface/vchiq_arm/vchiq_core.h | 5 +++++ > .../staging/vc04_services/interface/vchiq_arm/vchiq_dev.c | 7 ++++++- > 3 files changed, 13 insertions(+), 3 deletions(-) You sent 2 different patches here, both with the same subject, which one is correct? Please send a v2 so that I know what to apply, I've dropped this one from my queue now, thanks. greg k-h