All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ondrej Zary <linux@rainbow-software.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org, linux-usb@vger.kernel.org,
	Daniel Ritz <daniel.ritz@gmx.ch>, Oliver Neukum <oneukum@suse.de>
Subject: Re: [0000/0003]full power management for usb touchscreens
Date: Wed, 9 Jun 2010 15:40:04 +0200	[thread overview]
Message-ID: <201006091540.06003.linux@rainbow-software.org> (raw)
In-Reply-To: <20100607161920.GA7706@core.coreip.homeip.net>

On Monday 07 June 2010, Dmitry Torokhov wrote:
> On Mon, Jun 07, 2010 at 03:13:29PM +0200, Oliver Neukum wrote:
> > Hi,
> >
> > this patch series implements:
> >
> > - full support for suspend/resume/reset_resume
> > - runtime power management
> >
> > It does so by adding normal methods for suspend/resume,
> > splitting device intialization into a part that needs to be repeated
> > after reset_resume() and a part that does not.
> > Runtime power management is possible while the device is
> > active if the device supports remote wakeup, otherwise a fallback
> > to a method based on open/close is implemented.
> >
> > I lack the hardware. Therefore I need testers.
>
> Ondrej,
>
> You are the latest person I know who users usbtouchscreen driver, any
> chance you could lend a hand to Oliver here, please?

Looking at the patches from archive:

If I understand it correctly, usbtouch_resume submits the irq URB only if
the input device is open. That will fail with Nexio as it has an internal
watchdog which needs URBs or the device will reconnect - see irq_always
(Zytronic seems to need it too).


>From patch 3/3:
> @@ -1449,14 +1483,23 @@ static int usbtouch_probe(struct usb_interface
> *intf, usbtouch->irq->transfer_dma = usbtouch->data_dma;
>         usbtouch->irq->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
>
> -       /* device specific init */
> +       /* device specific allocations */
>         if (type->init) {

Looks like a copy&paste bug, should be "if (type->alloc) {".

> -               err = type->init(usbtouch);
> +               err = type->alloc(usbtouch);
>                 if (err) {
> -                       dbg("%s - type->init() failed, err: %d", __func__,
> err); +                       dbg("%s - type->alloc() failed, err: %d",
> __func__, err); goto out_free_urb;
>                 }
>         }
> +
> +       /* device specific init*/
> +       if (type->init) {
> +               err = type->alloc(usbtouch);
> +               if (err) {
> +                       dbg("%s - type->init() failed, err: %d", __func__,
> err); +                       goto out_do_exit;
> +               }
> +       }
>
>         err = input_register_device(usbtouch->input);
>         if (err) {


-- 
Ondrej Zary

  parent reply	other threads:[~2010-06-09 13:40 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-07 13:13 [0000/0003]full power management for usb touchscreens Oliver Neukum
     [not found] ` <201006071513.29478.oneukum-l3A5Bk7waGM@public.gmane.org>
2010-06-07 16:19   ` Dmitry Torokhov
     [not found]     ` <20100607161920.GA7706-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
2010-06-08 12:49       ` Ondrej Zary
2010-06-09 13:40     ` Ondrej Zary [this message]
2010-06-09 16:36       ` Oliver Neukum
     [not found]         ` <201006091836.14136.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2010-06-10 11:33           ` Ondrej Zary
2010-06-10 13:46             ` Oliver Neukum
     [not found]               ` <201006101546.55460.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2010-06-10 14:13                 ` Ondrej Zary
     [not found]                   ` <201006101613.52736.linux-ZCIryABCsrmttCpgsWEBFmD2FQJk+8+b@public.gmane.org>
2010-06-10 14:25                     ` Oliver Neukum
2010-06-18 18:22                   ` Oliver Neukum
2010-06-18 18:34                     ` Ondrej Zary
     [not found]                       ` <201006182034.05793.linux-ZCIryABCsrmttCpgsWEBFmD2FQJk+8+b@public.gmane.org>
2010-06-18 18:41                         ` Oliver Neukum
2010-06-22 11:06                           ` Ondrej Zary
2010-06-22 13:24                             ` Oliver Neukum
     [not found]                               ` <201006221524.25084.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2010-06-22 13:43                                 ` Ondrej Zary
     [not found]                                   ` <201006221543.27169.linux-ZCIryABCsrmttCpgsWEBFmD2FQJk+8+b@public.gmane.org>
2010-06-24  6:56                                     ` Oliver Neukum
2010-06-29 13:51                                       ` Ondrej Zary

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201006091540.06003.linux@rainbow-software.org \
    --to=linux@rainbow-software.org \
    --cc=daniel.ritz@gmx.ch \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=oneukum@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.