From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BADDB2BE630; Mon, 16 Mar 2026 16:53:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773680005; cv=none; b=iN8cJRKFkhjGlNiYj9t7R/EwuvLKtzkwgwxsc2NEiaKxwAnmYaps2nlxYHUQSL2SWk1NgTOF3eA0hxxYq61+Joo65Yqz9u5xyYtHvArZt9JpiGJz8BBDMUp7hhD3/R0/VX7wgkdJXrxEUgJZg4ntgd9OmnFycHGD1iI2vv9iwHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773680005; c=relaxed/simple; bh=d6EWIf+nBpJCMTTPJ/fIjQU9ACBQvgjbW5lAnonFLtg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Gp0Uq1I3yp1C8yYM1wo7Pdn5Djumk5Tg64ocG+doudme+Xu4Q7xtAhcc0Wf45UXsutGHFIoQpdqL7hqciKdLZQB80sBmUK4QsEfwnVJPNfWASjpb+C43oFv/0VGGrV54TrD6avjyQDXL7r9gl44grcaPHxd+wG8KitV4cSPCsfo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DD16D1477; Mon, 16 Mar 2026 09:53:17 -0700 (PDT) Received: from pluto (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DA9D43F73B; Mon, 16 Mar 2026 09:53:22 -0700 (PDT) Date: Mon, 16 Mar 2026 16:53:19 +0000 From: Cristian Marussi To: Geert Uytterhoeven Cc: Sudeep Holla , Cristian Marussi , arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH] firmware: arm_scmi: Support loop control in quirk code snippets Message-ID: References: <51de914cddef8fa86c2e7dd5397e5df759c45464.1773675224.git.geert+renesas@glider.be> Precedence: bulk X-Mailing-List: arm-scmi@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: <51de914cddef8fa86c2e7dd5397e5df759c45464.1773675224.git.geert+renesas@glider.be> On Mon, Mar 16, 2026 at 04:34:40PM +0100, Geert Uytterhoeven wrote: > Each SCMI firmware quirk contains a code snippet, which handles the > quirk, and has full access to the surrounding context. When this > context is (part of) a loop body, the code snippet may want to use loop > control statements like "break" and "continue". Unfortunately the > SCMI_QUIRK() macro implementation contains a dummy loop, taking > precedence over any outer loops. Hence quirk code cannot use loop > control statements, but has to resort to polluting the surrounding > context with a label, and use goto. Hi, indeed...good catch, thanks for this. I think, no need to backport as Fixes since existing quirks are NOT impacted. LGTM. Reviewed-by: Cristian Marussi Thanks, Cristian