[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#704242: Driver for PL-2303 HX not working



On Fri, Apr 19, 2013 at 10:36:57AM +0200, Karsten Malcher wrote:
> Am 18.04.2013 12:56, schrieb Johan Hovold:
> >
> > Can you generate a log where bytes are actually lost? Nothing seemed to
> > get lost in the previous log you posted.
> 
> This was a log with lost data.
> The logs seems to make politics. ;-)

Then the problem is most likely not in the driver as the characters are
being read back in the log you provided.

Now that you have compiled your own kernel, you could run a git bisect
to learn if anything else has changed in the kernel (possibly
interacting with your test setup) which can explain why things
stopped working.

I would suggest that you convince yourself that your minimal test setup
is correct first, though. Perhaps using the same minimal program (init,
write, read) on a working pl2303 device if you have one.

> >> How can i enable the debugging in kernel 3.8.5?
> > Make sure debugfs is mounted:
> >
> > 	mount -t debugfs none /sys/kernel/debug
> >
> > and then enable debugging:
> >
> > 	echo "module usbserial +p">/sys/kernel/debug/dynamic_debug/control
> > 	echo "module pl2303 +p">/sys/kernel/debug/dynamic_debug/control
> >
> > Johan
> 
> Sorry - this does not work for me?
> 
> root@PC# mount -t debugfs none /sys/kernel/debug
> 
> root@PC# mount
> sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
> proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
> udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=1014924,mode=755)
> devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
> tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=819796k,mode=755)
> /dev/disk/by-uuid/5166cbb1-8234-4127-bb0b-bbfda1658b68 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
> tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
> tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=1679740k)
> fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
> none on /sys/kernel/debug type debugfs (rw,relatime)
> 
> root@PC# echo "module usbserial +p" >/sys/kernel/debug/dynamic_debug/control
> bash: /sys/kernel/debug/dynamic_debug/control: Datei oder Verzeichnis nicht gefunden

Your kernel is not configured to use dynamic debugging. You need to
enable CONFIG_DYNAMIC_DEBUG=y.

Johan


Reply to: