Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp738204lqs; Fri, 14 Jun 2024 04:31:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVUE/AZqLz+45T0tutMA3CKW/R3hWtXY04FoTvulHVCXs3hxY9FLnxT1ujigaBo60G+r9h2m6Uc4pWD1MwdxDT98jUERwauRJViLR6ixQ== X-Google-Smtp-Source: AGHT+IFnVYIU2Tn6Zf5pwAzkBsqdTyW7l3UYWjsfHyA3R/gZRDc5oZgVEYdzPklTxNrioCPf6U0V X-Received: by 2002:a17:906:1155:b0:a69:67e3:57e6 with SMTP id a640c23a62f3a-a6f60dc5d83mr155921366b.49.1718364681659; Fri, 14 Jun 2024 04:31:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718364681; cv=pass; d=google.com; s=arc-20160816; b=dTHQe+jS99nEwXXDGF8B0No5GZD9pzN2aiqsxrJJHY5DyF0heCyWrouiS8QalWYoPo coMfUL3AWJbLKW7eYZVGjwc8lgsyveOaAj6meVnZfSBz2CiNAcrIrvtIcm2U7QKPFrP+ l8hVIYqzxGqUtayiIWI9y5RAKfEuw4Bt5/i2rd73mZyDQA5ewtcY60M0XayQBW4shlBe quXYnSLAg3zX2IBFQA/dwEY+m/1FLglC9LPV0W6tuRo3YtfH5+w+ysfMauLc+oEApmJf E7ilyZRlyjOSlxvp4H9tj+4G5kntLAObFC6XG8qRtmOyhmGwMeVmckffPywBRykKePn6 ABGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:message-id:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=IQPobJDqWFfx8q7JIo+Y39nU7tzM7cuRRaP3PQTxLp0=; fh=YtYoSEwPnRy/2rJzKufaAeLMHwo2CwQoIPEz3Fof9o0=; b=bcu8Z8l/hzoueJNIF89zGlMKebBJgYkai1fRXJWUNidfjJtZP6fvGyMlWJZvWrM+l+ WPKU2RHyoNxho9kfFP8By/LB2oo6Lap9X+2hjqIj1kaF0SKjY2ZUxmMdOJXoQZy2JK3H /PNwktGS8m0iY3rfjZL19oQG+Qu4No64eDht5uNBc1t2QVCZ4ncKxtWKJBV90GGWMXJr +5+cbkOXr2IqPVr+WukYlsNV7jhT0FgdCFJCgy37vkn+6w6vOQhmY1AfYaknapgtvXk9 i0SnMwFb8RIC3qEit3QSRLTSZNyy+peXsruj1OMo6QBwDvMacDRoPNMgxpJSVW4LYyfh jA3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=sjsktzDM; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-214834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214834-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56df77easi153358366b.603.2024.06.14.04.31.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 04:31:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=sjsktzDM; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-214834-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214834-linux.lists.archive=gmail.com@vger.kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5992B1F24400 for ; Fri, 14 Jun 2024 11:31:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 79C58195968; Fri, 14 Jun 2024 11:31:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="sjsktzDM" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 97721192B8F for ; Fri, 14 Jun 2024 11:31:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718364673; cv=none; b=dtw/WM/eT72C5a1lALGuK9nYNqqVa67kNvmnqhegXLPcEPWdO+aHpQAXxcVdsz685a67DxOeOsIv2cg2hQkplDysymxeRu1DWKkuyTxokUfPQYNIKYPA4m+4B7o/qof8yp2uy0eZhGvw+tQ4X0/icC+1tV4iyLQPaMyvh80NihY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718364673; c=relaxed/simple; bh=IJo0FAkQ1EUXfJg9WtcGbgCGmKYYwaHsN9tJBx1WxvM=; h=Content-Type:MIME-Version:In-Reply-To:References:Subject:From:Cc: To:Date:Message-ID; b=d69iwD9fJbtsjMd/vBcOqOAsBvonDRBwqCBXj8y2eKRxAyCBkQrOlExQfHgf9ldZkkaZNRGPCY3tEVlemvAg0CZR1Q9YkVEGN7Tb2HXh28O9CCyJ6drSEpNMbS8hVzH+XXs3o8w7LoYepESkc7+P0ZLzY/b/OMc1qhZbEgFahFQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=sjsktzDM; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id BD9AD397; Fri, 14 Jun 2024 13:30:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1718364654; bh=IJo0FAkQ1EUXfJg9WtcGbgCGmKYYwaHsN9tJBx1WxvM=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=sjsktzDM3GijgQAIAxtA0FpmeV+K5XjihjO/ayU2AbQuDJM3FcJuEQhrRuWUVPD5W BvTXRHLs/HeRFj44vryU8PFNqYMkTT3vjvaSvT/0MYK42T01Sa6qiKlOikCviR/yBA 3JNCuDKOgfuKWqvqxlNVDag6JI6+nvlw2Dl/4ytw= Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <37779db2-114c-4df6-97fd-2444bdad5529@gmx.net> References: <20240614104339.3858830-1-kieran.bingham@ideasonboard.com> <37779db2-114c-4df6-97fd-2444bdad5529@gmx.net> Subject: Re: [v2 PATCH] staging: vc04_services: vchiq_arm: Fix initialisation check From: Kieran Bingham Cc: Broadcom internal kernel review list , Laurent Pinchart , Dave Stevenson , detule , Dan Carpenter , moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE , open list:STAGING SUBSYSTEM , open list ; To: Florian Fainelli , Greg Kroah-Hartman , Stefan Wahren , Umang Jain , linux-rpi-kernel@lists.infradead.org Date: Fri, 14 Jun 2024 12:31:06 +0100 Message-ID: <171836466631.2248009.16741779932900773222@ping.linuxembedded.co.uk> User-Agent: alot/0.10 Quoting Stefan Wahren (2024-06-14 12:00:38) > Hi Kieran, >=20 > Am 14.06.24 um 12:43 schrieb Kieran Bingham: > > 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 vc= hiq_state") > > Signed-off-by: Kieran Bingham > > --- > > v2: > > - No change, just resend > what happen to my comments for the first version? Err ... i missed them ... let me go back and look! -- Kieran