From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 187DE3CA480 for ; Mon, 9 Mar 2026 14:58:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773068290; cv=none; b=mqd+SLUaMf8gCFeFBBeA9+h3dgO3RjiGfMpkdRPk/iSAfV1lUlbEbUA5RNBIXSomiM2y55r7ful6U3TH4TuzJ6+etwnZ5sUuZhlM3D3XsnGKb0wm2+H22kt33P6h46/ws1cvLPxu5JdNZsaMuV7mNE0B+AwyU8dy1e5rsJIBApw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773068290; c=relaxed/simple; bh=wJPB7UPd7El25mJdue1MKD7YwBnP+67VFnImxa+295c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sMPEo7Zmcor1tCU3CSFKJytINhCTPc1SlomUX9EWNeeQ4O+Ehhp3I+I+Akqm1rZKh05jHXQwFzOEvRaAgrH1lLvosIIekYqKP9bKn/LV9/1pJAFfHj7OQ+/RK9DF5NEPpwkPXDPE/Rpsb+J5d756MmnkNsrfTy+qmr8e392tHwY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hYCFxVR1; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=M05MtgxA; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hYCFxVR1"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="M05MtgxA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1773068288; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=H1BNKFyRsZcHlEZIOZ9hlANGFti9fPCQQJkxNtYA6no=; b=hYCFxVR1yGzvrrBQ2T2lxRjwo8MsPpK4ijmD/YeGWElxTNFJWR62eudpIE15gxMD08Jdcb K+LICWu1e10CtoTnDboaiq81srJ5g/USPSQgToXXRSxDPOzPHcYSuyNgckxWM6D1T7I+km o7VncwsHQTWL1l1IYzcbSx05WeVRkJM= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-113-PxUVoWatN3OcL6a7B07x-A-1; Mon, 09 Mar 2026 10:58:07 -0400 X-MC-Unique: PxUVoWatN3OcL6a7B07x-A-1 X-Mimecast-MFC-AGG-ID: PxUVoWatN3OcL6a7B07x-A_1773068286 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-509114d7418so4685361cf.1 for ; Mon, 09 Mar 2026 07:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1773068286; x=1773673086; darn=vger.kernel.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=H1BNKFyRsZcHlEZIOZ9hlANGFti9fPCQQJkxNtYA6no=; b=M05MtgxAvJdt+JBg+1HHMdpJDPkmUTfnvmGGa8WHt4moBkW7XQL52Vw+jZhpJgNntp RaQjvZPC/gVfqol1teZMDwuJiH/CvBSsQzEeZtY2aHdwQMxwa2BBUmcndH/rUycYUlMO 0CErWrFO2Hz5bjUhMgVXQDeYKqonDestivCln+m2zvEljBFeQHyW6nvY5G4rAF8cN87R lN/e4fYKLl7w81zKnLRr899dBrtMybFkhsbnyP7N/yk1JGSqZVC/KbHqwBw8mNf3Mqwm lszS+Me4x2Q1LD8Hi5Te29gPp5xhGLS7hDDxmGnK2HarlL3iHk/BQUx3Rv8AophqhoeT CiZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773068286; x=1773673086; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=H1BNKFyRsZcHlEZIOZ9hlANGFti9fPCQQJkxNtYA6no=; b=SdcTXbx4WOLzquDo+PpFmuFf/W2dZDX5WSONMQ8ZIjQPJPjYFNIx3jayKac8HAFcen JruWMbXTNOwk2bzVEmfLm4rdyiweyt6hdQF70ZHrY3K2Q7lllx+jwJuxhRM2shqPa6SY SWwQyCvO4sjupPbhhgijS9y7/xm0KUkXOAOpJ7rUq8Maua/S/SbjF3FIasZwdK/wkAZl BDauSf3HUiYim+Q7iXfsf07McXXV4eae6mTWdU16Cnq0mfBcNjmRX57CsQsg+3nviV+2 H6VGcDWNq3FXU9EyLwtUyfhv0OElzpmcJ5N9jNBLiE4v6et43n4ZEvSyDLRqHDi6tMH0 4o+Q== X-Forwarded-Encrypted: i=1; AJvYcCWlcqxmFO1+W3PO2LjItxodXyERja/HhCCd2Q/KBTRRfPkUePECA+mXjKd55nUU2GOuWZ6/7YhBsb44@vger.kernel.org X-Gm-Message-State: AOJu0Yy1ohEcsOS9IHblTyaz+rwZSC0GdRN9ByXeAJ9q0huR3O1I3UdV S5Py6CZp45FzuK0eDB3UvDTQNQN4lr1rs04dEwxDrY1H3e49TvVdxhf2zczXqpJueXzA2iHvIa4 nlsvh9s60IjQVLBC7ueZpvbsuWSt79IT7VmZDwImfQPF0+NKFzTSYowvvI3F9XhU= X-Gm-Gg: ATEYQzx/t1fq7NQ/SDsxO8KKgZILNCmw/HRERrhAnNHgqaCtJezgi76Srbu1+nP4Cjs Z1YTisUgttKpQHinOworG5r6Xxj3U9GrxK4Na4AF7FwhdlWiWAko9sM3hGs9Yx1Y5I/tDieSR2J EVQ2otDmGsdM0jHjrZUiIPChf0XjUi3jvJT28qAwckLhhIHBTtiva3hTSfKDO9B0zKYH3JxH/Kb ekamv7Fwain6QRU/FtZ6YLPMQkkVIE/yzQ6HdAHax67esrqdeQOaQHLyRY0D3ZMDDAVawwKDyPa joaDTZeOJ15OxEk/GOMn9kGhs1i/bLfvEADas+BNojKIHF73LdZ1wbRCEKnB0xEuEBvQG8Jdmvq /1DofVxouS4Z7rFINpaBIjAMIPM63tFCiIkC1OzEkvOYNf67bL8SdMJwt X-Received: by 2002:ac8:7dc1:0:b0:4f1:ba0b:90 with SMTP id d75a77b69052e-508f46e67d2mr142736251cf.8.1773068286405; Mon, 09 Mar 2026 07:58:06 -0700 (PDT) X-Received: by 2002:ac8:7dc1:0:b0:4f1:ba0b:90 with SMTP id d75a77b69052e-508f46e67d2mr142735841cf.8.1773068285876; Mon, 09 Mar 2026 07:58:05 -0700 (PDT) Received: from redhat.com (c-73-183-52-120.hsd1.pa.comcast.net. [73.183.52.120]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-509009ad4basm50577251cf.11.2026.03.09.07.58.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2026 07:58:05 -0700 (PDT) Date: Mon, 9 Mar 2026 10:58:03 -0400 From: Brian Masney To: =?iso-8859-1?Q?Beno=EEt?= Monin Cc: Vladimir Kondratiev , Gregory CLEMENT , =?iso-8859-1?Q?Th=E9o?= Lebrun , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Philipp Zabel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Thomas Petazzoni , Tawfik Bayouk , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-mips@vger.kernel.org Subject: Re: [PATCH v4 03/10] clk: fixed-factor: Rework initialization with parent clocks Message-ID: References: <20260304-clk-eyeq7-v4-0-9d6bd9d24bec@bootlin.com> <20260304-clk-eyeq7-v4-3-9d6bd9d24bec@bootlin.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260304-clk-eyeq7-v4-3-9d6bd9d24bec@bootlin.com> User-Agent: Mutt/2.2.14 (2025-02-20) On Wed, Mar 04, 2026 at 04:25:17PM +0100, Benoît Monin wrote: > Use the same sequence as clk-divider, clk-gate and other to set the > parent_names, parent_hws and parent_data in the init struct when > registering a fixed-factor clock. The number of parent clocks is now > only set to one if a parent clock is provided. > > Previously the number of parent clocks was always one, forcing callers > of __clk_hw_register_fixed_factor() to provide a dummy parent_data > struct with an invalid clock index in case they were not provided with > a non-NULL parent_name or parent_hw. Drop this dummy parent_data as is > not necessary anymore. > > This change only has a small impact on mis-configured fixed-factor. Now a > call to clk_hw_register_fixed_factor() with a NULL parent will register > a fixed-factor with zero parent while previously it was registered with > one invalid parent. In both cases the rate of the fixed-factor is 0Hz > but it is no longer shown as orphaned. > > This has no impact on properly configured fixed-factors clocks. > > Signed-off-by: Benoît Monin Reviewed-by: Brian Masney