Re: Nokia N900: v4.16-rc4: oops in iio when grepping sysfs

2018-03-10 Thread Jonathan Cameron
On Sat, 10 Mar 2018 13:00:53 +0100 Pavel Machek wrote: > Hi! > > On Sat 2018-03-10 12:19:29, Lars-Peter Clausen wrote: > > On 03/10/2018 12:01 AM, Pavel Machek wrote: > > [...] > > >> What file are you opening to cause this? > > > > > > Strace says: > > > > > > openat(7, "in_intensity_both

Re: Nokia N900: v4.16-rc4: oops in iio when grepping sysfs

2018-03-10 Thread Pavel Machek
Hi! On Sat 2018-03-10 12:19:29, Lars-Peter Clausen wrote: > On 03/10/2018 12:01 AM, Pavel Machek wrote: > [...] > >> What file are you opening to cause this? > > > > Strace says: > > > > openat(7, "in_intensity_both_thresh_rising_en", > >>> O_RDONLY|O_LARGEFILE|O_NOFOLLOW) = 3 > > fstat64(3, {st

Re: Nokia N900: v4.16-rc4: oops in iio when grepping sysfs

2018-03-10 Thread Akinobu Mita
2018-03-10 8:01 GMT+09:00 Pavel Machek : > Hi! > >> > Hmm. Looks like there's a lot of fun to be had with sysfs. >> > >> > >> > pavel@n900:~$ uname -a >> > Linux n900 4.16.0-rc4-59690-g7f84626-dirty #543 Thu Mar 8 19:53:30 CET >> > 2018 armv7l GNU/Linux >> > >> > [ 306.402496] bq2415x: command Tim

Re: Nokia N900: v4.16-rc4: oops in iio when grepping sysfs

2018-03-10 Thread Lars-Peter Clausen
On 03/10/2018 12:01 AM, Pavel Machek wrote: [...] >> What file are you opening to cause this? > > Strace says: > > openat(7, "in_intensity_both_thresh_rising_en", >>> O_RDONLY|O_LARGEFILE|O_NOFOLLOW) = 3 > fstat64(3, {st_mode=S_IFREG|0644, st_size=4096, ...}) = 0 > ioctl(3, SNDCTL_TMR_TIMEBASE or

Re: Nokia N900: v4.16-rc4: oops in iio when grepping sysfs

2018-03-09 Thread Pavel Machek
Hi! > > Hmm. Looks like there's a lot of fun to be had with sysfs. > > > > > > pavel@n900:~$ uname -a > > Linux n900 4.16.0-rc4-59690-g7f84626-dirty #543 Thu Mar 8 19:53:30 CET > > 2018 armv7l GNU/Linux > > > > [ 306.402496] bq2415x: command Timer reset > > [ 312.761322] adp1653 2-0030: Read

Re: Nokia N900: v4.16-rc4: oops in iio when grepping sysfs

2018-03-09 Thread Greg KH
On Fri, Mar 09, 2018 at 11:12:21PM +0100, Pavel Machek wrote: > Hi! > > Hmm. Looks like there's a lot of fun to be had with sysfs. > > Pavel > > > pavel@n900:~$ uname -a > Linux n900 4.16.0-rc4-59690-g7f84626-dirty #543 Thu Mar 8 19:

Nokia N900: v4.16-rc4: oops in iio when grepping sysfs

2018-03-09 Thread Pavel Machek
Hi! Hmm. Looks like there's a lot of fun to be had with sysfs. Pavel pavel@n900:~$ uname -a Linux n900 4.16.0-rc4-59690-g7f84626-dirty #543 Thu Mar 8 19:53:30 CET 2018 armv7l GNU/Linux [ 306.402496] bq2415x: command Timer reset [