* a new problem with the hso driver
@ 2008-09-11 15:55 Denis Joseph Barrow
[not found] ` <48C93F75.4000703-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Denis Joseph Barrow @ 2008-09-11 15:55 UTC (permalink / raw)
To: Linux USB kernel mailing list, Linux netdev Mailing list,
Greg Kroah-Hartman, Andrew Bird
Hi Greg/Andrew,
I've a minor problem.
If you put the hso driver into powersave mode
by going into /sysfs
cd /sys/
find . -name idVendor | xargs -n 1 | grep -H af0
cd ./devices/pci0000:00/0000:00:1d.7/usb5/5-4/
or wherever the idVendor is at.
cd power/
echo auto > level
Then let the driver sleep for about 2 minutes.a
It can't be woken up, it appears that the
usb layer is looking for a reset_resume
function to be implemented.
We get the following messages from the kernel
[12518.790072] hso 2-2:1.0: no reset_resume for driver hso?
[12518.790081] hso 2-2:1.1: no reset_resume for driver hso?
[12518.790085] hso 2-2:1.2: no reset_resume for driver hso?
How do I implement a reset resume function?
could somebody tell me & put in a few comments in include/linux/usb.h
Our customer says the device has gone into an S3 sleep
whatever the difference between this & the reduced power mode
it goes into after 2 seconds when it calls hso_suspend I don't know.
On a slightly related issue
we get an error -22 ie -EINVAL from usb_submit_urb
this though I haven't investigated properly appears to happen when the device is suspended
but appears to have no adverse effect on the driver
it still seems to work, I haven't really investigated this, whats happening?
but would greatly appreciate being pointed in the right direction.
--
best regards,
D.J. Barrow
^ permalink raw reply [flat|nested] 4+ messages in thread[parent not found: <48C93F75.4000703-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org>]
* Re: a new problem with the hso driver [not found] ` <48C93F75.4000703-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> @ 2008-09-11 22:39 ` Alan Stern [not found] ` <Pine.LNX.4.44L0.0809111835350.3949-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Alan Stern @ 2008-09-11 22:39 UTC (permalink / raw) To: Denis Joseph Barrow Cc: Linux USB kernel mailing list, Linux netdev Mailing list, Greg Kroah-Hartman, Andrew Bird On Thu, 11 Sep 2008, Denis Joseph Barrow wrote: > Hi Greg/Andrew, > I've a minor problem. > If you put the hso driver into powersave mode > by going into /sysfs > > cd /sys/ > find . -name idVendor | xargs -n 1 | grep -H af0 > cd ./devices/pci0000:00/0000:00:1d.7/usb5/5-4/ > or wherever the idVendor is at. > cd power/ > echo auto > level > > Then let the driver sleep for about 2 minutes.a > > It can't be woken up, it appears that the > usb layer is looking for a reset_resume > function to be implemented. > > We get the following messages from the kernel > [12518.790072] hso 2-2:1.0: no reset_resume for driver hso? > [12518.790081] hso 2-2:1.1: no reset_resume for driver hso? > [12518.790085] hso 2-2:1.2: no reset_resume for driver hso? > > How do I implement a reset resume function? > could somebody tell me & put in a few comments in include/linux/usb.h See Documentation/usb/power-management.txt. > Our customer says the device has gone into an S3 sleep > whatever the difference between this & the reduced power mode > it goes into after 2 seconds when it calls hso_suspend I don't know. > > On a slightly related issue > we get an error -22 ie -EINVAL from usb_submit_urb > this though I haven't investigated properly appears to happen when the device is suspended > but appears to have no adverse effect on the driver > it still seems to work, I haven't really investigated this, whats happening? > but would greatly appreciate being pointed in the right direction. -EINVAL can indicate several possible errors, but as far as I remember, none of them are associated with the device being suspended. If you try to submit an URB to a suspended device, you'll get -EHOSTUNREACH. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <Pine.LNX.4.44L0.0809111835350.3949-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>]
* Re: a new problem with the hso driver [not found] ` <Pine.LNX.4.44L0.0809111835350.3949-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org> @ 2008-09-11 23:18 ` Oliver Neukum 2008-09-12 7:26 ` Denis Joseph Barrow 1 sibling, 0 replies; 4+ messages in thread From: Oliver Neukum @ 2008-09-11 23:18 UTC (permalink / raw) To: Alan Stern Cc: Denis Joseph Barrow, Linux USB kernel mailing list, Linux netdev Mailing list, Greg Kroah-Hartman, Andrew Bird > > On a slightly related issue > > we get an error -22 ie -EINVAL from usb_submit_urb > > this though I haven't investigated properly appears to happen when the device is suspended suspend? Are you sure it doesn't come from resume? BTW: if (serial->shared_int) { mutex_lock(&serial->shared_int->shared_int_lock); if (serial->shared_int->use_count && (--serial->shared_int->use_count == 0)) { This code deserves a honourable mentioning in the obfuscated C contest. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: a new problem with the hso driver [not found] ` <Pine.LNX.4.44L0.0809111835350.3949-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org> 2008-09-11 23:18 ` Oliver Neukum @ 2008-09-12 7:26 ` Denis Joseph Barrow 1 sibling, 0 replies; 4+ messages in thread From: Denis Joseph Barrow @ 2008-09-12 7:26 UTC (permalink / raw) To: Alan Stern Cc: Linux USB kernel mailing list, Linux netdev Mailing list, Greg Kroah-Hartman, Andrew Bird Thank you Alan Alan Stern wrote: > On Thu, 11 Sep 2008, Denis Joseph Barrow wrote: > >> Hi Greg/Andrew, >> I've a minor problem. >> If you put the hso driver into powersave mode >> by going into /sysfs >> >> cd /sys/ >> find . -name idVendor | xargs -n 1 | grep -H af0 >> cd ./devices/pci0000:00/0000:00:1d.7/usb5/5-4/ >> or wherever the idVendor is at. >> cd power/ >> echo auto > level >> >> Then let the driver sleep for about 2 minutes.a >> >> It can't be woken up, it appears that the >> usb layer is looking for a reset_resume >> function to be implemented. >> >> We get the following messages from the kernel >> [12518.790072] hso 2-2:1.0: no reset_resume for driver hso? >> [12518.790081] hso 2-2:1.1: no reset_resume for driver hso? >> [12518.790085] hso 2-2:1.2: no reset_resume for driver hso? >> >> How do I implement a reset resume function? >> could somebody tell me & put in a few comments in include/linux/usb.h > > See Documentation/usb/power-management.txt. > >> Our customer says the device has gone into an S3 sleep >> whatever the difference between this & the reduced power mode >> it goes into after 2 seconds when it calls hso_suspend I don't know. >> >> On a slightly related issue >> we get an error -22 ie -EINVAL from usb_submit_urb >> this though I haven't investigated properly appears to happen when the device is suspended >> but appears to have no adverse effect on the driver >> it still seems to work, I haven't really investigated this, whats happening? >> but would greatly appreciate being pointed in the right direction. > > -EINVAL can indicate several possible errors, but as far as I remember, > none of them are associated with the device being suspended. If you > try to submit an URB to a suspended device, you'll get -EHOSTUNREACH. > > Alan Stern -- best regards, D.J. Barrow -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-12 7:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-11 15:55 a new problem with the hso driver Denis Joseph Barrow
[not found] ` <48C93F75.4000703-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org>
2008-09-11 22:39 ` Alan Stern
[not found] ` <Pine.LNX.4.44L0.0809111835350.3949-100000-IYeN2dnnYyZXsRXLowluHWD2FQJk+8+b@public.gmane.org>
2008-09-11 23:18 ` Oliver Neukum
2008-09-12 7:26 ` Denis Joseph Barrow
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).