From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from galahad.ideasonboard.com ([185.26.127.97]:33134 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751725AbcHIIQV convert rfc822-to-8bit (ORCPT ); Tue, 9 Aug 2016 04:16:21 -0400 From: Laurent Pinchart To: Niklas =?ISO-8859-1?Q?S=F6derlund?= Cc: Kuninori Morimoto , duclm , wsa@sang-engineering.com, ryusuke.sakato.bx@renesas.com, magnus.damm@gmail.com, geert+renesas@glider.be, =?utf-8?B?56iy5ZCJ?= , yoshihiro.shimoda.uh@renesas.com, nv-dung@jinso.co.jp, cm-hiep@jinso.co.jp, 'Xuan Truong Jinso' , laurent.pinchart+renesas@ideasonboard.com, horms+renesas@verge.net.au, linux-renesas-soc@vger.kernel.org Subject: Re: The failure summary report of GEN3 for linux stable v4.7 Date: Tue, 09 Aug 2016 11:16:25 +0300 Message-ID: <1547042.76US3mHF9I@avalon> In-Reply-To: <20160809070314.GB6864@bigcity.dyn.berto.se> References: <57A94A79.30304@jinso.co.jp> <87bn127aiz.wl%kuninori.morimoto.gx@renesas.com> <20160809070314.GB6864@bigcity.dyn.berto.se> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-renesas-soc-owner@vger.kernel.org List-ID: Hi Niklas, On Tuesday 09 Aug 2016 09:03:14 Niklas S�derlund wrote: > On 2016-08-09 06:01:48 +0000, Kuninori Morimoto wrote: > > Hi duclm > > > > > root@linaro-nano:~# cd /sys/bus/platform/drivers/i2c-rcar; find -type l > > > ./e6510000.i2c > > > root@linaro-nano:/sys/bus/platform/drivers/i2c-rcar# echo e6510000.i2c > > > > unbind [ 30.505950] clk_unregister: unregistering prepared clock: > > > clk_multiplier root@linaro-nano:/sys/bus/platform/drivers/i2c-rcar# ls > > > -d e6510000.i2c ls: cannot access e6510000.i2c: No such file or > > > directory > > > root@linaro-nano:/sys/bus/platform/drivers/i2c-rcar# echo e6510000.i2c > > > > bind [ 40.825298] cs2000-cp 2-004f: revision - C1 > > > [ 40.829587] i2c-rcar e6510000.i2c: probed > > > root@linaro-nano:/sys/bus/platform/drivers/i2c-rcar# ls -d e6510000.i2c > > > e6510000.i2c > > > root@linaro-nano:/sys/bus/platform/drivers/i2c-rcar# > > > root@linaro-nano:/sys/bus/platform/drivers/i2c-rcar# aplay > > > /home/board-lager/FSI/data/test.wav> > > Thank you for your report. > > This is open (and deep) issue (Oops after "unbind" -> "rebind") > > We have similar issue on I2C / ALSA SoC / DMAEngine / V4L2 SoC etc... > > and we should care about it, but it is still under discussion I think. > > ALSA SoC had started to solve this issue, but it will take over 2 years > > FWIW the VIN patches for Gen3 which are posted to ML solves the > unbind/bind problem for the rcar-vin driver. Given that the driver - allocates struct rvin_dev structure with devm_kzalloc - embeds struct video_device in rvin_dev - sets video_device::release to video_device_release_empty I have some doubts about this :-) Could you try the following sequence ? - Open the video device node and keep it open (yavta --sleep-forever) - Unbind the VIN device from the driver - Close the video device node -- Regards, Laurent Pinchart