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 BE90740E8DC for ; Mon, 15 Jun 2026 16:40:57 +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=1781541659; cv=none; b=A0gNPEx562ndSIw0ZPa5S7ohtF9RahGm/tg1EljHHTV2Xv52LJZJENEmK2tLECj1h2qjajBSYLK8SYZ4Nd43LXZJVtJcZ5GtYr030VS0ebWPTyym0ODj4k514Toq1SyGRGdoygLj2BJP8z0Au1WQ3/5xaaK/h/k87ynYfkJChQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781541659; c=relaxed/simple; bh=sgFYe03AdqAI3bmcuoDq5yghX+BkC5mlsAqcpIEve6I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=om9KAA9BtLkHWUxCUh/gj6ytJgKWu7Q6Wx5qtzFA9EwVGbb29cHAiwjEEyHkonD297FYYG2Z3CmgVae9Svy6b6ABoU0gO7ZNQWS2et6lJQ4p0jBKhTzTEHpIILLrpiGNdlP/t4yccxLBw7VgIR6Sx9ZJkU05vsSTJlzYXRHNQ/o= 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=J85ALLo4; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=SRXWYeak; 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="J85ALLo4"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="SRXWYeak" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1781541656; 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=fYiGHVY1xpFWEX6h4yQg4Y2KYAiZFnPKyRrFWVlw2cc=; b=J85ALLo4faKw76QB72rwn6Gavb3VM7BHvdMdPjszgLNlN9dpBoTpO/9ZCi/q/ss+BXtSfV lRxOGxCyb0qTYOqFy+xWzNlLaVpdiZKaANt0W5oc+yjcXy9bRSGJU4ak0Kk5wIO7GjP9nH kDGHhue9UMe2nI6qpjG2hH1Hf1mIuHA= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-475-w7lhPR5SNOG_3iyyVbETTA-1; Mon, 15 Jun 2026 12:40:53 -0400 X-MC-Unique: w7lhPR5SNOG_3iyyVbETTA-1 X-Mimecast-MFC-AGG-ID: w7lhPR5SNOG_3iyyVbETTA_1781541653 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-915ba226a9bso895987285a.2 for ; Mon, 15 Jun 2026 09:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1781541653; x=1782146453; 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=fYiGHVY1xpFWEX6h4yQg4Y2KYAiZFnPKyRrFWVlw2cc=; b=SRXWYeak+v7j0jqiJ7b51gxeOtyaapgR1CtatxokgXbwiO6AvPUMg/tTPHn9XZEVFM VeScC+cq6DNqMcqxPTSipShRQ1QaGCMnjl1Dw3on9Qt9BrTICGvndLIbuTuq6JuJg6+3 dvUssKANX1zRu8zTcGu0N03aFVzEoYBSg+SbueM1Rgs0XpVR3czA6KTNEwoqkD6B66vk bJ6QhWYV7xuJiUyRJl/ez0B2xyORC3xDMWjCnEwdoFtM3cXVx5HnxhWTvDsMC1K7et45 akJS5DFP25ns3/ie5OYrrZxiwQmnrQOiRA4OvVLsdwcmP4P3NhdmcH/VXtVEbTMcPCJR wRgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781541653; x=1782146453; 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=fYiGHVY1xpFWEX6h4yQg4Y2KYAiZFnPKyRrFWVlw2cc=; b=Wt1ors1/G7BAebDg8UefAl6V3bFVhkdb255AUn+5ydJG9QUqmpffFIiZvHRDBtcfxG VGwJKT6Q/LFOVt+hQPc8NkMK0HvzL5Lcb6OB8A2coJjMRp8x6Zc8jKf7WvwNLTqwjyrt VYPQk4nLegavZ7lVXXdofNA1Jr9tMAxcUDGQaUwPgf/aCsAxMPV6pbNL0sij57JAz2v4 0S5kYiykr+pD4PAdGN/eUUYnFSxN8xSlPMoS/HEfON0TqqCAz1FAuqSxdWfr6CvB4HPj XgGGb2ra9evm271U7nhJXpdhO++DguIxBciPdtJu5sXo9gR5+JUNOeZPPxtmNstErfmq fj9g== X-Forwarded-Encrypted: i=1; AFNElJ9m3CgqKorMsC9i6UR/Vx0UX5kpkbvrWJlQqU93hJJFgXLkhZ9X/2DfTTB+N2gsu9+t2QJzdbclBGWx8q0=@vger.kernel.org X-Gm-Message-State: AOJu0YwSfx//esbJHE2PaLe0AZEk8DUSth1sliJLQYNSe3A4oUeT+Bxz u1+gbFoNYtFGmZPmsyJfnjL3qziyWy2ysoRDw0Cr+XHUyenZfKbxytq6hTk7NQU4q8GyfSPDkKn w+DMlOYUkW+26DIQoguJxDvODynOIe6PnCt5afT+NUOgeC83iZ/IF0o95CiVPgxfhTA== X-Gm-Gg: Acq92OH5EbfsTt/MS7/XenHUpMjAQI/ar+jzLR5wPV7eDrWpLtkT1wLsUbrzm1J1ph6 8subw4fDzZKWcoXfn/H1oVv9DISRN3k5YezbUplBnw/z3CzXLj/rf2+fCjW8mnh62TpoOTw+GwM 5aHA3P2HG0qQ/W0jl57LYnM7WY/A1xvpTVV/C5EJtZGT/+shnUEKFe84IIaswGDEw8LDPkI0pqa 5bZcaKnLB26BJio/A9WnX2c/mKaSy0m7OgASI5oozVxYgQaiCjeiRd0PaZw9uSmopjPJFswY6FI luL4t0UMJTtp7ubg9B/p3ZYKSjLvQEq9G4iJKsbfAtFFUrECBC5I0dzWr+TsjU+ij+YXjclA8xv LL7HMY9qYI0LSVX0IafmgIIjdZhRsB4YKUKICcXOJE7TQBklN36q708Ap X-Received: by 2002:a05:620a:31a0:b0:910:87f4:9a26 with SMTP id af79cd13be357-917f1e44e09mr1835939785a.41.1781541653035; Mon, 15 Jun 2026 09:40:53 -0700 (PDT) X-Received: by 2002:a05:620a:31a0:b0:910:87f4:9a26 with SMTP id af79cd13be357-917f1e44e09mr1835934985a.41.1781541652604; Mon, 15 Jun 2026 09:40:52 -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 af79cd13be357-91619f06835sm1180700185a.14.2026.06.15.09.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2026 09:40:51 -0700 (PDT) Date: Mon, 15 Jun 2026 12:40:49 -0400 From: Brian Masney To: "Peng Fan (OSS)" Cc: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sudeep Holla , Cristian Marussi , Sebin Francis , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan Subject: Re: [PATCH v10 4/6] clk: Add KUnit tests for assigned-clock-sscs Message-ID: References: <20260612-clk-v10-v10-0-eb92484eda38@nxp.com> <20260612-clk-v10-v10-4-eb92484eda38@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260612-clk-v10-v10-4-eb92484eda38@nxp.com> User-Agent: Mutt/2.3.1 (2026-03-20) On Fri, Jun 12, 2026 at 04:46:26PM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > Add KUnit test coverage for the assigned-clock-sscs DT property that > configures spread spectrum on clocks before they are used. > > Extend the existing test infrastructure to support spread spectrum: > - Add struct clk_spread_spectrum field to clk_dummy_context and a > clk_dummy_set_spread_spectrum callback > - Wire set_spread_spectrum into all dummy clock ops > - Extend clk_assigned_rates_register_clk and test parameter struct > to propagate initial SSCS values > > Add a new separate test suite clk_assigned_sscs with three categories: > > 1. clk_assigned_sscs_assigns_one — verifies that a single > assigned-clock-sscs entry correctly configures spread spectrum > on one clock, testing both provider and consumer paths > > 2. clk_assigned_sscs_assigns_multiple — verifies that multiple > assigned-clock-sscs entries configure spread spectrum on two > clocks, testing both provider and consumer paths > > 3. clk_assigned_sscs_skips — verifies that malformed DT properties > are correctly skipped without error: missing assigned-clocks, > zero-valued SSCS, and null phandles, tested for both provider > and consumer scenarios > > New DT overlays are added for all test scenarios: > - kunit_clk_assigned_sscs_one{,consumer} — single valid entry > - kunit_clk_assigned_sscs_multiple{,consumer} — two valid entries > - kunit_clk_assigned_sscs_without{,consumer} — missing assigned-clocks > - kunit_clk_assigned_sscs_zero{,consumer} — all-zero SSCS values > - kunit_clk_assigned_sscs_null{,consumer} — null phandle > > Co-developed-by: Brian Masney > Signed-off-by: Brian Masney > Signed-off-by: Peng Fan Looks good to me. It's probably not appropriate for me to also put a Reviewed-by here. Brian