[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZfK4c/wZX9RmBHXj@shell.armlinux.org.uk>
Date: Thu, 14 Mar 2024 08:42:27 +0000
From: "Russell King (Oracle)" <linux@...linux.org.uk>
To: Duanqiang Wen <duanqiangwen@...-swift.com>
Cc: mturquette@...libre.com, sboyd@...nel.org, linux-clk@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH clk v2] clk: clkdev: add error messages for name
exceeding maximum length
On Thu, Mar 14, 2024 at 10:39:09AM +0800, Duanqiang Wen wrote:
> if one device register clkdev with dev_id or con_id
> greater than maximum length, clkdev_create functions
> will not return err, but clk_find functions will not
> match the device, it's difficult to identify issues
> for developers.So add error messages for dev_id greater
> than 20 characters and con_id greater than 16 characters.
>
> eg. clkdev_create(clk, NULL, "i2c_designware.16796")
> it will create clk_lookup with dev_id "i2c_designware.1679",
> because clk_name exceeds dev_id maximum, but clkdev_create not
> return err. when driver call clk_find functions, use "i2c_desig
> nware.16796" to find clk, it will return failed,but I don't know
> where the problem is. It took a long time to find the problem.
>
> Signed-off-by: Duanqiang Wen <duanqiangwen@...-swift.com>
This looks like v1 just reposted with a v2 tag. I don't see any obvious
changes in the patch.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
Powered by blists - more mailing lists