From nobody Fri Sep 25 10:04:46 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 2F57F448B85 for ; Mon, 14 Sep 2026 12:17:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789388257; cv=none; b=NOi1DT0QCz8KaYHVIrg7tX0gclud++3S8pMeH7INR6bq+8uf90cm/4T8fYq8uKEId1vp2sHI6bsLXyAsWQzY+Dpmf9a+YYgVqZvjW8ZMIVfpxna0EIARZO+cIl3edJ5tIBKOZwOTeBkXsRRUSY5JKpNs5yCfsWGxpJHGuZAarwg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789388257; c=relaxed/simple; bh=MHs1HgPxgPGY668f+F+QPsxuTFVLhQpne2pOOe6jaVg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=K9lknjEkK2QZrpwtwA5XuCQJlO+BsvrUSlbQEeGHZblCAMyK8Dygm/0abFFlNiVCewTA+raPPTKTFm6nFo7VWmNM0uvfk2ecLebUTG3YTwCGk5cr4uOH3nbZUcQdjtqmtdt/S7b+narkN//IHOXZVqu1QMjE6dJIWgCw5G8mIY0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=qP3juN8k; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="qP3juN8k" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 5E6FFC6220A; Mon, 14 Sep 2026 12:18:16 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 4F52C60323; Mon, 14 Sep 2026 12:17:33 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 3A6B211C7AFA1; Mon, 14 Sep 2026 14:17:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1789388248; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=PN7rLy5S3k/X4ISt6xJqizuIYpNUjwPdt0DJWzVjQUY=; b=qP3juN8kOonVv5SJqbQODDeagTOyVi2mPODznh4uvP52N4BGIftlBNasw72laSH9mOMJlJ P8cT2VqHoU6YytaDb1If8eqrcH2fBm5tQ2YTlcXiQYv6AdIcwUnLVPB7MuoubCAZTGcuCH v+RcRnpV2ZUZWrKxunz0kd6N/ZpbG8XZkAOxiBMJbKVl6KNeLp4Wy/hLIbIRyzXI2Zecl6 1kg2+8ckFEZEaXitE0+fYMh/vZhGY2/tpe1s4HiifOGhakT1moDtq2tEfn+R40eUSkwbDI TWtNiRD7esXqQmmT/XJ4K6IxofuD24zoqQBuXIBg0hmpQ9SMD/pmXBA4kC4Y3w== From: =?utf-8?q?Beno=C3=AEt_Monin?= Date: Mon, 14 Sep 2026 14:16:44 +0200 Subject: [PATCH v2 1/2] clk: eyeq: Use devm_platform_ioremap_resource() 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: <20260914-clk-eyeq-res-v2-1-687e5de3aba7@bootlin.com> References: <20260914-clk-eyeq-res-v2-0-687e5de3aba7@bootlin.com> In-Reply-To: <20260914-clk-eyeq-res-v2-0-687e5de3aba7@bootlin.com> To: Vladimir Kondratiev , Gregory CLEMENT , =?utf-8?q?Th=C3=A9o_Lebrun?= , Stephen Boyd , Brian Masney , Jerome Brunet Cc: =?utf-8?q?Beno=C3=AEt_Monin?= , Thomas Petazzoni , Tawfik Bayouk , linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.16.0 X-Last-TLS-Session-Version: TLSv1.3 Convert eqc_probe() from the open-coded platform_get_resource() + ioremap() sequence to devm_platform_ioremap_resource(). Besides less code, this requests the memory region so the OLB registers are properly reserved in the iomem_resource tree. Move devm_platform_ioremap_resource() before checking for device match data, so OLBs bound without match data also get their memory region mapped and reserved. Suggested-by: Vladimir Kondratiev Signed-off-by: Beno=C3=AEt Monin --- drivers/clk/clk-eyeq.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/clk/clk-eyeq.c b/drivers/clk/clk-eyeq.c index cf37feccc734..3662e6990bf7 100644 --- a/drivers/clk/clk-eyeq.c +++ b/drivers/clk/clk-eyeq.c @@ -513,21 +513,16 @@ static int eqc_probe(struct platform_device *pdev) const struct eqc_match_data *data; struct clk_hw_onecell_data *cells; unsigned int i, clk_count; - struct resource *res; void __iomem *base; int ret; =20 + base =3D devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(base)) + return PTR_ERR(base); + data =3D device_get_match_data(dev); if (!data) - return 0; /* No clocks nor auxdevs, we are done. */ - - res =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) - return -ENODEV; - - base =3D ioremap(res->start, resource_size(res)); - if (!base) - return -ENOMEM; + return 0; /* No clocks nor auxdevs, stop here but keep resource reserved= */ =20 /* Init optional auxiliary devices. */ eqc_auxdev_create_optional(dev, base, data->reset_auxdev_name); --=20 2.55.0 From nobody Fri Sep 25 10:04:46 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (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 C953D44E043; Mon, 14 Sep 2026 12:17:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789388259; cv=none; b=Xq9wzs+PX+4SSkXeCFluJ1F0qL7aRJ5m0AuMS4AR47KTR6DFPnNee9lsgBkscSG5hRk2fX3nZ27twdbE11kRLh90UBq7xEwKQwsO2R+Io/E9Ny2JDGAD+3qiqjH1mdYeG89hQJsLOcSYO/zHgEcNIKSh7DudBCDi6onT1i4UYyM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789388259; c=relaxed/simple; bh=7Zb7OnxO7Mny/vz66A9/MBXG57/GuFvZPzerB1j/a5w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FffsAPTX6tNVT0FVm47BbsL2U10gpAstW7RIFQo5jKvdnwwgEN2hzd4WgIGxkqI8u848BJc24os+oMORG3xtaxglZL6bpK4KBhU98n3nofRVeTBKiTQwV7FrERKzK1ieIeuMkQS5maUB5KeSR/vLP6du0ZeLxUtqAFzE8FEemDU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=f7TxN2xp; arc=none smtp.client-ip=185.171.202.116 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="f7TxN2xp" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id F40E4C6220B; Mon, 14 Sep 2026 12:18:17 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id E4E4260323; Mon, 14 Sep 2026 12:17:34 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id EAF9E11C7AFD6; Mon, 14 Sep 2026 14:17:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1789388254; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=4ezhkt5ekErlzxGHOhL+IX2dbEJfJAw1qa/3ps0UkOQ=; b=f7TxN2xpPa9gp7q9ivXSxOlOLLsZOKtKg3PrSincjcFCovzqUpdCbKM7F6XMNi0bf2Zk66 C9PTCQNXNKONh4OcE3N55tqohiWWeRZFYnpGLeY+eY/+2CTanKIenI+WDdicvGfijFvFQI LCPUHypneNXnjBjdOv/3KLXHn5u2yiBV81lVkC+QCv0TNnemXd5bgMOoJQnw+eJ+RPQig3 pkTV9M8ItP62pXOqABHsHwo1FCvJHkhTyOh6Pc32FrPKV+sY4C1yQFh0Cp058xm9gNlg4N En3TSgqtK1EQYVpGUIKh6OkSVmkBvBmqwKtZc/mEzlVl3BpTVVwJjvQtN8sBSw== From: =?utf-8?q?Beno=C3=AEt_Monin?= Date: Mon, 14 Sep 2026 14:16:45 +0200 Subject: [PATCH v2 2/2] clk: eyeq: Add mobileye,eyeq6h-central-olb compatible 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: <20260914-clk-eyeq-res-v2-2-687e5de3aba7@bootlin.com> References: <20260914-clk-eyeq-res-v2-0-687e5de3aba7@bootlin.com> In-Reply-To: <20260914-clk-eyeq-res-v2-0-687e5de3aba7@bootlin.com> To: Vladimir Kondratiev , Gregory CLEMENT , =?utf-8?q?Th=C3=A9o_Lebrun?= , Stephen Boyd , Brian Masney , Jerome Brunet Cc: =?utf-8?q?Beno=C3=AEt_Monin?= , Thomas Petazzoni , Tawfik Bayouk , linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org X-Mailer: b4 0.16.0 X-Last-TLS-Session-Version: TLSv1.3 Add an entry for mobileye,eyeq6h-central-olb without match data: its clocks are all registered by the early init and it has no auxiliary devices, so probe() now reserves its region and stops there. Signed-off-by: Beno=C3=AEt Monin --- drivers/clk/clk-eyeq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk-eyeq.c b/drivers/clk/clk-eyeq.c index 3662e6990bf7..b32f251614c7 100644 --- a/drivers/clk/clk-eyeq.c +++ b/drivers/clk/clk-eyeq.c @@ -1170,6 +1170,7 @@ static const struct of_device_id eqc_match_table[] = =3D { { .compatible =3D "mobileye,eyeq5-olb", .data =3D &eqc_eyeq5_match_data }, { .compatible =3D "mobileye,eyeq6l-olb", .data =3D &eqc_eyeq6l_match_data= }, { .compatible =3D "mobileye,eyeq6lplus-olb", .data =3D &eqc_eyeq6lplus_ma= tch_data }, + { .compatible =3D "mobileye,eyeq6h-central-olb" /* no data, early only */= }, { .compatible =3D "mobileye,eyeq6h-west-olb", .data =3D &eqc_eyeq6h_west_= match_data }, { .compatible =3D "mobileye,eyeq6h-east-olb", .data =3D &eqc_eyeq6h_east_= match_data }, { .compatible =3D "mobileye,eyeq6h-south-olb", .data =3D &eqc_eyeq6h_sout= h_match_data }, --=20 2.55.0