From nobody Sun Feb 8 10:33:13 2026 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) (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 179931EB5C9; Tue, 6 May 2025 20:05:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.154.123 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746561937; cv=none; b=a/3N+BScL2lX6MYHBEoY7gxblcPSCErqMA8SJs82r7U+7H1LEVC8A8WRob8DaxMwuA+06YHbx2bdP36Fh6sBWdmyPXLqBjV4td+3bi3BAbmJnjwMmVMWdg9fra+/z7rmUnjN+GfstvHIO4bNFLYGVmd3MkKZdM98O9/u9AzYl+w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746561937; c=relaxed/simple; bh=NMKgRBD0SSTJXoMrnuHZxQQt4FlqkPpKB0zFXsFFbdI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DcaI340vynX/s+gx5O8ycV1DXM1mSoi6zUXREC0Wj2rDqK3iHGsK0FXL8enTZ0fmRxf4XZh0T6ITr/De1j4Acxx3oc61hFaMDyRZr9JMaXw/ARDFlsC9Ro+oCTFlLi/dEqBdP90OZobuY/UMbi+Rl4lTgRd2u88p1xfFcZEU8UA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=eUPffv0e; arc=none smtp.client-ip=68.232.154.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="eUPffv0e" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1746561936; x=1778097936; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NMKgRBD0SSTJXoMrnuHZxQQt4FlqkPpKB0zFXsFFbdI=; b=eUPffv0ekIwOTPVR2kh1CQU2j7qLmYzHjkYvZkO5g3nSwlcKrG4sWsuQ EhWtZCw7ZdF8EhvR2o1zZ13eAp+Cfz2VpxhVUVetWBIKUl0r4uqE9WENY EL9CNwY8DYyAR3b3tJiVlgDWVATeJCTxu5MrZ6OSJDTohxCrDrUU5LUhQ UFtwMoatxPHoK24Yt2vRo3T5QqLE6Wl2O3j+xyggDKf3eBhPwbvR3PoTr FmAiWbMCG7dI0ULLK5aAIBnn5IJh70Fu2LC99TIdPfhLzHu5QZdZ7WJps riVdP8IGdE+2qj98QGuFyUgC+oxu73Zlr2qBhAUs/fQycZGoX0qTz6hUe Q==; X-CSE-ConnectionGUID: dUBqohHAQlqcpEGq8j09lg== X-CSE-MsgGUID: l0q/rBYOTH+bvad5qc+02Q== X-IronPort-AV: E=Sophos;i="6.15,267,1739862000"; d="scan'208";a="208799763" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 06 May 2025 13:05:33 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Tue, 6 May 2025 13:05:12 -0700 Received: from ryan-Precision-3630-Tower.microchip.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.44 via Frontend Transport; Tue, 6 May 2025 13:05:12 -0700 From: To: , , , , , , , CC: , , , , Ryan Wanner Subject: [PATCH v3 3/4] clk: at91: sama7g5: Add missing clk_hw to parent_data Date: Tue, 6 May 2025 13:04:58 -0700 Message-ID: <3578873346318562c2c44f81409a5cee03721fd0.1746561722.git.Ryan.Wanner@microchip.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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 Content-Type: text/plain; charset="utf-8" From: Ryan Wanner The main_xtal clk_hw struct is not passed into parent_data.hw causing the main_osc to not have a parent and corrupting the clock tree. Passing the main_xtal struct into the parent_data struct will ensure the correct parent structure. Signed-off-by: Ryan Wanner --- drivers/clk/at91/sama7g5.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c index 8385badc1c70..b4eefca0b6d5 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -979,7 +979,7 @@ static void __init sama7g5_pmc_setup(struct device_node= *np) struct regmap *regmap; struct clk_hw *hw, *main_rc_hw, *main_osc_hw, *main_xtal_hw; struct clk_hw *td_slck_hw, *md_slck_hw; - static struct clk_parent_data parent_data; + static struct clk_parent_data parent_data =3D {0}; struct clk_hw *parent_hws[10]; bool bypass; int i, j; @@ -1017,6 +1017,7 @@ static void __init sama7g5_pmc_setup(struct device_no= de *np) =20 parent_data.name =3D main_xtal_name; parent_data.fw_name =3D main_xtal_name; + parent_data.hw =3D main_xtal_hw; main_osc_hw =3D at91_clk_register_main_osc(regmap, "main_osc", NULL, &parent_data, bypass); if (IS_ERR(main_osc_hw)) --=20 2.43.0