From mboxrd@z Thu Jan 1 00:00:00 1970 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 C13F9C61DB9 for ; Thu, 27 Aug 2026 06:00:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=z+34Gp0dHReGXtVoFNAaKY8FGzLQutQPcpSWceMwKCg=; b=HQtWoFb5ny/XCK VeAnKCqGnbxtk+6wxKeOEMIYsPoizMan5dJwztIdJTnqPiLZ8KFL0SHwcKpwZAWuAYFyoGRnl5AJk IAW73igUYljCC/34LJmQvGElyqIdoqaArXagRqPstFtVD2ultO3YDsWqgYpQN7a+twpt4nbfNRQBT 0uPmTp1fPBbfBTTsG4V6p/wk2jG7ZglqzkR76ykQO0FQp7zRUlaFVcgkX/nz+uFrOtnulIWFcvqpH tc2/DHmUX6yBN0kxOF09SbKxqXUyLhxkkJXVpe+klXm95C0Lk3mYZqe15mYCPnArKjW4WWwtrCVK5 8v4w0VlhA+9wjLe+DZfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wzT9b-00000003Rxx-1DMK; Thu, 27 Aug 2026 05:59:59 +0000 Received: from tor.source.kernel.org ([172.105.4.254]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wzT9Z-00000003Rxf-33YK; Thu, 27 Aug 2026 05:59:57 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id A0B07600D3; Thu, 27 Aug 2026 05:59:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA8EF1F000E9; Thu, 27 Aug 2026 05:59:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1787810396; bh=Doh3gHITvz6ndbGdETkwbhIShj6JNDjcl7yqaAUrQ9U=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=PqNLkcA9AH48C+4/ucRjbApht4e6iuPu7uKD3mt39GkypaF7zBxAG616kNg57fsvw xEzxdHDoPs/3TO9knc1jpvBqT84VzyBX209h+2jLrX4tB+/9iPQ6Kq9oRlQkFwGq5z /2KL2MP0/NS3JDJDIMVwYfFnGClxIAed+tiG4dMcGW0plsgRspiRxnNdJJiT8r612v jDWn6smGrpwlvEPGKgenSvN4HfArE3EEkLtTjoS35tvGNypd8Am8Ck0msNNbBAusoc 8zGeTFW6nrMF80XlN1Wi6W0YC32eer5GtXk41/PDp7TntCe4XwU9oOk6s6RgoCbVA4 QrmEQUgeyDfCw== Message-ID: Date: Thu, 27 Aug 2026 08:59:52 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] media: microchip: Make sure clk_init_data is fully initialized To: Geert Uytterhoeven , Neil Armstrong , Hans Verkuil , Mauro Carvalho Chehab , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Sylwester Nawrocki Cc: linux-media@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org References: <85c229d88f297fe32c3f2ea42d727b116bdeb998.1787240035.git.geert+renesas@glider.be> Content-Language: en-US From: Eugen Hristev In-Reply-To: <85c229d88f297fe32c3f2ea42d727b116bdeb998.1787240035.git.geert+renesas@glider.be> X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org On 8/21/26 13:04, Geert Uytterhoeven wrote: > The clk_init_data structure contains several mutually-exclusive members > for different methods to specify the possible parents of a clock, > prompting drivers to initialize only the members they need. However, > not initializing all members may cause subtle issues, which are only > exposed when CONFIG_INIT_STACK_ALL_PATTERN or CONFIG_INIT_STACK_NONE is > enabled. > > Make sure all members are fully initialized, to avoid such bugs, and to > prevent future breakage when converting drivers to a different method > for specifying the parents. > > Signed-off-by: Geert Uytterhoeven > --- > Compile-tested only. > --- > drivers/media/platform/microchip/microchip-isc-clk.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > The only nitpick I have is that "media: microchip" holds multiple drivers, while you are fixing this for the microchip ISC. Regardless, Reviewed-by: Eugen Hristev > diff --git a/drivers/media/platform/microchip/microchip-isc-clk.c b/drivers/media/platform/microchip/microchip-isc-clk.c > index 24358d804e75d75c..65d5fb8019b341b8 100644 > --- a/drivers/media/platform/microchip/microchip-isc-clk.c > +++ b/drivers/media/platform/microchip/microchip-isc-clk.c > @@ -231,7 +231,7 @@ static int isc_clk_register(struct isc_device *isc, unsigned int id) > struct regmap *regmap = isc->regmap; > struct device_node *np = isc->dev->of_node; > struct isc_clk *isc_clk; > - struct clk_init_data init; > + struct clk_init_data init = {}; > const char *clk_name = np->name; > const char *parent_names[3]; > int num_parents; _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic