From nobody Tue Nov 26 00:51:07 2024 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C930205AA0 for ; Wed, 23 Oct 2024 16:50:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729702255; cv=none; b=oYWZ/IFd3mpd5rzlAQJi/SVIx0qW8AMQs/avs71WqT9OaHCby6AhVjnPXZl3htP6aQ6WX8c4yjtqDKoGoY2ZxGamCxvnMNgoqfniLuMHGVTc8wJ+x9arxvrW5GuDEAWqz/rwjZ8TgGHlzaXgyI8uZ9/Bh9ibaLVr3/88ZV03db4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729702255; c=relaxed/simple; bh=nCTgcNJqAOLt1t1JGW8NB89E+/HvF1h0Y8xB7b4gHLU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oEhGDz9sif7NArVYOcp36YI9kWGkAgMp0F0az6AqMTXaZOCC8V22NnGp11PoYK1esj3BSsdp73q7TH3XK2eRNJJiu0d9onRB094E5LvK+8jb0Br0bgu/O3zEjHLmvDRvFQivCiY2kIU+JWzvGlxqGVJ9DMGh0Y3beMREegeC9mQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=raspberrypi.com; spf=pass smtp.mailfrom=raspberrypi.com; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b=EmYDbt0K; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=raspberrypi.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="EmYDbt0K" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4315e62afe0so70324045e9.1 for ; Wed, 23 Oct 2024 09:50:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; t=1729702252; x=1730307052; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ts1NDd5vcHREqhcvSTV/1shtmvDfyt1K2xdMF/qf56o=; b=EmYDbt0KXrQUZiQBkXgvvcfZQsvlvr9WTeHhNnGiGLG2k1RH+Wo9YZtnBvPlHydMAC FT+ZBU2ZFzsbYHFYc4n+e7ILJ2S6/PIeygADPFr3ZDRe++lulrtn04ZauqjHfF7cEprZ 7m/5CxLiL2UP+J+JbFKYhOUW1L9FDQ9thPoFqG9f5bbff+KEGdJQn6DuDT3zGMTjlFJA ON6viroX+X7RG98IpCwIkdsAMPo8jO6Z648ynPGnElsv5cBiq13Hy+qNqie8AHqSQtgB WdAJcv3Qr6dUJB7r9LJQtrvrnZWw6GBKsEAjdp+tmieK5JU5/Y2yzxvVOazO59C6a0nd HaxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729702252; x=1730307052; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ts1NDd5vcHREqhcvSTV/1shtmvDfyt1K2xdMF/qf56o=; b=YjXmEgt1BsJnaYDKeavlIVxHUKpNZ3ycaTj2L01y/SjezYRezFP1HCW1DcTBCsa9Dt 0ZAP470N+/Fj+Jqkbjo5e472yWqw9IO2paJXZaZDVQLLDXG5V9OCCMVdXJs7WVBUSrTq Aq6i5t8b5yBHYswHBI2HEjI/nmyKyU3cEOmTPbPzi7jMYwzoVWkVa+b3f9q2R4r9QSYN /GLfPvkU0kSSRNPAXo/ILo1XD8sYAWe8DoI0Q3L/P4Cu6u+VzD6058Qx22e2gqXVM8a0 RPPnVxVQYuwYEN2M3MHYfudwl7SWCaBTryIYLEc7OrPjKQP/N4dDrQJ6TYPgsKK84nep ++vw== X-Forwarded-Encrypted: i=1; AJvYcCU4rACeAsk200//fl1BgOGe3XH+dm7pPbNKsJuct0zmW3pJpJTBhanE95Pa4s/Q3nI7LcT11oJ31qh2yWw=@vger.kernel.org X-Gm-Message-State: AOJu0YwtEBPvjuvIC2xYrElXYEwWoKNJsvr8hYWs/3yztIC1bgPHwydq E8TfeslkMYtgZxZ8xoS3eIPdLrchOhxvqZSuYtarGK+6hmUIKKGaU9XqUwcV+mI= X-Google-Smtp-Source: AGHT+IF+Ep5cy5ocAHASp/06u2OSiKjV3AGCYRQMjGhBm4svhBLkWe/K2mww/KQzVSfsztZblCEfXg== X-Received: by 2002:a05:600c:358b:b0:431:46fe:4cad with SMTP id 5b1f17b1804b1-4318413e307mr28468675e9.9.1729702252475; Wed, 23 Oct 2024 09:50:52 -0700 (PDT) Received: from [127.0.1.1] ([2a00:1098:3142:e::8]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-43186c50445sm21642035e9.39.2024.10.23.09.50.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 09:50:52 -0700 (PDT) From: Dave Stevenson Date: Wed, 23 Oct 2024 17:50:29 +0100 Subject: [PATCH 32/37] clk: bcm: rpi: Enable minimize for all firmware clocks 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-Transfer-Encoding: quoted-printable Message-Id: <20241023-drm-vc4-2712-support-v1-32-1cc2d5594907@raspberrypi.com> References: <20241023-drm-vc4-2712-support-v1-0-1cc2d5594907@raspberrypi.com> In-Reply-To: <20241023-drm-vc4-2712-support-v1-0-1cc2d5594907@raspberrypi.com> To: Maxime Ripard , =?utf-8?q?Ma=C3=ADra_Canal?= , Raspberry Pi Kernel Maintenance , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Michael Turquette , Stephen Boyd , Javier Martinez Canillas , Catalin Marinas , Will Deacon Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, Dave Stevenson , Dom Cobley X-Mailer: b4 0.14.1 From: Dom Cobley There isn't a reason not to minimise the clocks, and it saves some power. Signed-off-by: Dom Cobley Signed-off-by: Dave Stevenson Acked-by: Stephen Boyd --- drivers/clk/bcm/clk-raspberrypi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspbe= rrypi.c index 274176a938c6..fd7ae0efcf07 100644 --- a/drivers/clk/bcm/clk-raspberrypi.c +++ b/drivers/clk/bcm/clk-raspberrypi.c @@ -111,21 +111,27 @@ raspberrypi_clk_variants[RPI_FIRMWARE_NUM_CLK_ID] =3D= { }, [RPI_FIRMWARE_V3D_CLK_ID] =3D { .export =3D true, + .minimize =3D true, }, [RPI_FIRMWARE_PIXEL_CLK_ID] =3D { .export =3D true, + .minimize =3D true, }, [RPI_FIRMWARE_HEVC_CLK_ID] =3D { .export =3D true, + .minimize =3D true, }, [RPI_FIRMWARE_ISP_CLK_ID] =3D { .export =3D true, + .minimize =3D true, }, [RPI_FIRMWARE_PIXEL_BVB_CLK_ID] =3D { .export =3D true, + .minimize =3D true, }, [RPI_FIRMWARE_VEC_CLK_ID] =3D { .export =3D true, + .minimize =3D true, }, }; =20 --=20 2.34.1