From: sshtylyov@mvista.com (Sergei Shtylyov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 6/7] pxa25x: drop handling of udc_is_connected
Date: Fri, 01 Apr 2011 23:02:33 +0400 [thread overview]
Message-ID: <4D962149.9090507@ru.mvista.com> (raw)
In-Reply-To: <1301666188-11822-6-git-send-email-dbaryshkov@gmail.com>
Hello.
Dmitry Eremin-Solenikov wrote:
> There are no more users of udc_is_connected. Drop this field from mach_info
If I don't mistake, this patch does more than just that.
> and stop using it in pxa25x_udc.
Hm, I don't see where you're doing that. Instead you're changing some checks
for gadget speed and adding some code. And you've said that the driver never
used that thing before. Hm?
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
[...]
> diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c
> index 6cb32b8..40ceb73 100644
> --- a/drivers/usb/gadget/pxa25x_udc.c
> +++ b/drivers/usb/gadget/pxa25x_udc.c
> @@ -1072,7 +1072,7 @@ udc_seq_show(struct seq_file *m, void *_d)
> (tmp & UDCCFR_ACM) ? " acm" : "");
> }
>
> - if (dev->gadget.speed != USB_SPEED_FULL || !dev->driver)
> + if (dev->gadget.speed == USB_SPEED_UNKNOWN || !dev->driver)
> goto done;
>
> seq_printf(m, "ep0 IN %lu/%lu, OUT %lu/%lu\nirqs %lu\n\n",
> @@ -1700,9 +1700,13 @@ pxa25x_udc_irq(int irq, void *_dev)
> if (unlikely(udccr & UDCCR_SUSIR)) {
> udc_ack_int_UDCCR(UDCCR_SUSIR);
> handled = 1;
> - DBG(DBG_VERBOSE, "USB suspend\n");
> + DBG(DBG_VERBOSE, "USB suspend%s\n",
> + dev->gadget.speed != USB_SPEED_UNKNOWN
> + ? "" : "+disconnect");
>
> - if (dev->gadget.speed != USB_SPEED_UNKNOWN
> + if (dev->gadget.speed == USB_SPEED_UNKNOWN)
> + stop_activity(dev, dev->driver);
> + else if (dev->gadget.speed != USB_SPEED_UNKNOWN
This is redundant, as it will always be true after your first *if*.
WBR, Sergei
next prev parent reply other threads:[~2011-04-01 19:02 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-01 13:56 [PATCH 1/7] balloon3: drop udc_is_connected Dmitry Eremin-Solenikov
2011-04-01 13:56 ` [PATCH 2/7] mioa701: " Dmitry Eremin-Solenikov
2011-04-01 14:10 ` Sergei Shtylyov
2011-04-01 14:50 ` Dmitry Eremin-Solenikov
2011-04-04 6:58 ` Eric Miao
2011-04-01 13:56 ` [PATCH 3/7] stargate2: udc_is_connected is ignored for pxa27x, drop it Dmitry Eremin-Solenikov
2011-04-01 13:56 ` [PATCH 4/7] pxa25x: separate lubbock handling to lubbock-usb transceiver Dmitry Eremin-Solenikov
2011-04-04 7:01 ` Eric Miao
2011-04-04 7:04 ` Eric Miao
2011-04-06 21:21 ` Dmitry Eremin-Solenikov
2011-04-07 1:48 ` Eric Miao
2011-07-01 11:48 ` Dmitry Eremin-Solenikov
2011-07-05 7:26 ` Eric Miao
2011-07-05 13:26 ` Greg KH
2011-07-05 14:35 ` Dmitry Eremin-Solenikov
2011-04-01 13:56 ` [PATCH 5/7] lubbock: switch to using lubbock_usb_xceiv transceiver Dmitry Eremin-Solenikov
2011-04-01 13:56 ` [PATCH 6/7] pxa25x: drop handling of udc_is_connected Dmitry Eremin-Solenikov
2011-04-01 19:02 ` Sergei Shtylyov [this message]
2011-04-02 14:46 ` Dmitry Eremin-Solenikov
2011-04-01 13:56 ` [PATCH 7/7] gpio-vbus: ask for vbus_draw regulator before registering xceiv Dmitry Eremin-Solenikov
2011-04-18 8:42 ` Eric Miao
2011-05-02 23:38 ` Greg KH
2011-05-03 8:46 ` [PATCH] " Dmitry Eremin-Solenikov
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=4D962149.9090507@ru.mvista.com \
--to=sshtylyov@mvista.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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.