Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753503AbbH3OGb (ORCPT ); Sun, 30 Aug 2015 10:06:31 -0400 Received: from mout.gmx.net ([212.227.17.20]:55641 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753153AbbH3OGa (ORCPT ); Sun, 30 Aug 2015 10:06:30 -0400 Date: Sun, 30 Aug 2015 16:06:16 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: Josh Wu cc: Linux Media Mailing List , Laurent Pinchart , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: soc-camera: increase the length of clk_name on soc_of_bind() In-Reply-To: <1438685469-12230-1-git-send-email-josh.wu@atmel.com> Message-ID: References: <1438685469-12230-1-git-send-email-josh.wu@atmel.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Provags-ID: V03:K0:rMsy1Z0JJlGK+LAhGxDmF6dfH02MDgpmnd+zOdlT4PACTyeme3F 8caIuoEdjpwVKXyxlaCHAE5f1t/2pDTs+wXacZg5ic89xqKCorQk41HtYsRkxu9MFtKavJv PFQrGwb69e6h6C1D+08eUxetok0Jl0QFBSkr+VaD6TYWDyjo89U8Wu2yg1E8yKJFgz2s9kR 9LoTRznOsjiAX2ezA0zgA== X-UI-Out-Filterresults: notjunk:1;V01:K0:XIDlmYpX6rA=:vzRrsdjHEbmyW0j6pVYzX0 APzS83/QoBvKYWwL8PaDyJtiKc8YcSEs8BfbS8vmQPW22WkiEOsCBzuotFqBL3LBdiE9odO6x +j9PxkjH4jcUwZDnYJuQ2WsceD/ItTNf1mW8Gyum52keFikjO332PFW4JVdxu3bbWMvi3f1at 5MWdf+4TdlBOOI6RE9ZwRiB+4+QzcVsnW7ROrwYy/hzZelXLVSFiH7XEtwHUTw/6UI7MW0lDw BEKu/a3aHyVt1yNWYD0wsCKXcX4GEplNdVLYEfMdksyhk1FarkncIiistbPxoClp02t9ZazPg BG0s0PBYPuLKdAm43Oc9OH3HUhiZsE8Z4zx6mhsVc4LcYo6thYhPH8oEDDKTEsdXxC9Cvamqh pSOoWzr5HrThJrGsIYira2Bym9srPSbgy0TjZV38Jfz25S/nvBMDhLSf4RKGpbYrFvXyFMp9x 1/9Hso8MUuyCpQyW+Fwy0z1s2/ddwnmICRnBxgFSnQI6xi2Y7XdJOfOPjl8iEslN820AJtGnB xGx4C4nD1plBB70dVAhPH/zPE3TH21qBVW0HOE5tqoYInZsBscjbjdj3R4P6ZJ/0OcAS5ExwY vdfVUcLndSz/ThfdDbbhApVmqx+RODd/TZeekwp0vRwjBgyGoCDPXCfrK5hfKSCEUf66CZz/2 4zWASzHq2BlRpJsSvDSpEa6rYIufCApdtiHpTw6epdZbgJjOy8RGtD0sVnnB1hj/nc64W/iiI f/ztV1xxw+1qkeWBzYzkhsQqY817SiL5AESk9Q== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1737 Lines: 48 Hi Josh, Sorry, I missed the 4.3 merge cycle, but isn't this patch a fix? Isn't it fixing soc-camera / atmel-isi on a specific platform, where the clock name is longer, than currently supported? Is this platform in the mainline and its current camera support is broken because of this? In such a case we could still push it in for 4.3 Thanks Guennadi On Tue, 4 Aug 2015, Josh Wu wrote: > Since in soc_of_bind() it may use the of node's full name as the clk_name, > and this full name may be longer than 32 characters, take at91 i2c sensor > as an example, length is 34 bytes: > /ahb/apb/i2c@f8028000/camera@0x30 > > So this patch increase the clk_name[] array size to 64. It seems big > enough so far. > > Signed-off-by: Josh Wu > --- > > drivers/media/platform/soc_camera/soc_camera.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/soc_camera/soc_camera.c b/drivers/media/platform/soc_camera/soc_camera.c > index d708df4..fcf3e97 100644 > --- a/drivers/media/platform/soc_camera/soc_camera.c > +++ b/drivers/media/platform/soc_camera/soc_camera.c > @@ -1621,7 +1621,7 @@ static int soc_of_bind(struct soc_camera_host *ici, > struct soc_camera_async_client *sasc; > struct soc_of_info *info; > struct i2c_client *client; > - char clk_name[V4L2_SUBDEV_NAME_SIZE]; > + char clk_name[V4L2_SUBDEV_NAME_SIZE + 32]; > int ret; > > /* allocate a new subdev and add match info to it */ > -- > 1.9.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/