mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yang Ruirui <ruirui.r.yang@tieto.com>
To: Felipe Balbi <balbi@ti.com>
Cc: Yang Ruirui R <ruirui.r.yang@tietoenator.com>,
	Greg Kroah-Hartman <gregkh@suse.de>,
	Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>,
	Linus Walleij <linus.walleij@stericsson.com>,
	Felipe Balbi <felipe.balbi@nokia.com>,
	Heikki Krogerus <ext-heikki.krogerus@nokia.com>,
	Tejun Heo <tj@kernel.org>, Samuel Ortiz <sameo@linux.intel.com>,
	Hema HK <hemahk@ti.com>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] usb otg: use atomic notifier instead of blocking notifier
Date: Thu, 20 Jan 2011 10:06:38 +0800	[thread overview]
Message-ID: <20110120020638.GA24396@darkstar> (raw)
In-Reply-To: <20110119104032.GJ2505@legolas.emea.dhcp.ti.com>

On Wed, Jan 19, 2011 at 12:40:32PM +0200, Felipe Balbi wrote:
> hi,
> 
> On Wed, Jan 19, 2011 at 05:20:11PM +0800, Yang Ruirui wrote:
> > 
> > following bug happens with meego 2.6.35 kernel on nokia n900:
> 
> <snip>
> 
> > Actually the blocking notifier chain runs in process context, so not fit for use here.
> > 
> > For mainline kernel there's such issue as well.
> > Here fix this problem by changing to use atomic_notifier.
> > 
> > Signed-off-by: Yang Ruirui <ruirui.r.yang@tieto.com>
> > ---
> >  drivers/usb/otg/ab8500-usb.c  |    6 +++---
> >  drivers/usb/otg/twl4030-usb.c |    6 +++---
> >  drivers/usb/otg/twl6030-usb.c |    6 +++---
> 
> you're missing the other transceivers:
> drivers/usb/otg/langwell_otg.c
> drivers/usb/otg/msm72k_otg.c
> drivers/usb/otg/gpio_vbus.c
> drivers/usb/otg/nop-usb-xceiv.c
> drivers/usb/otg/ulpi.c
> drivers/usb/otg/isp1301_omap.c

Hi, thanks

Actually I does not found where notifiers are used in these files except
langwell_otg

For langwell_otg.c there's a wrapper struct named "intel mid_otg_xceiv"
in include/linux/usb/intel_mid_otg.h, it use an atomic notifier for
interrupt context.

So I think we'd better write another patch to make it use general
otg_transceiver for notifier or just keep current code. What's your opinion?

> 
> -- 
> balbi

  reply	other threads:[~2011-01-20  1:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-19  9:20 Yang Ruirui
2011-01-19 10:33 ` Heikki Krogerus
2011-01-21 15:34   ` Grazvydas Ignotas
2011-01-19 10:40 ` Felipe Balbi
2011-01-20  2:06   ` Yang Ruirui [this message]
2011-01-20  4:01     ` Felipe Balbi
2011-01-19 15:18 ` Ming Lei
2011-01-19 15:30   ` Felipe Balbi
2011-01-19 15:38     ` Ming Lei
2011-01-19 16:01       ` Felipe Balbi
2011-01-20 15:51 ` Mian Yousaf Kaukab
2011-01-19  9:22 Yang Ruirui
2011-01-19  9:19 ` Dave Young
2011-01-20  6:46 ` Felipe Balbi

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=20110120020638.GA24396@darkstar \
    --to=ruirui.r.yang@tieto.com \
    --cc=balbi@ti.com \
    --cc=ext-heikki.krogerus@nokia.com \
    --cc=felipe.balbi@nokia.com \
    --cc=gregkh@suse.de \
    --cc=hemahk@ti.com \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mian.yousaf.kaukab@stericsson.com \
    --cc=ruirui.r.yang@tietoenator.com \
    --cc=sameo@linux.intel.com \
    --cc=tj@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®