public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: "Lu, Baolu" <baolu.lu@linux.intel.com>
Cc: David Cohen <david.a.cohen@linux.intel.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	qiuxu.zhuo@intel.com, Sasha Levin <sasha.levin@oracle.com>
Subject: Re: [PATCH v2 1/1] usb: ulpi: ulpi_init should be executed in subsys_initcall
Date: Fri, 22 May 2015 13:07:08 +0300	[thread overview]
Message-ID: <20150522100708.GA26704@kuha.fi.intel.com> (raw)
In-Reply-To: <555ED0CF.3060903@linux.intel.com>

> >>>Many drivers and modules depend on ULPI bus registeration to
> >>>register ULPI interfaces and drivers. It's more appropriate
> >>>to register ULPI bus in subsys_initcall instead of module_init.
> >>>
> >>>Kernel panic has been reported with some kind of kernel config.
> >>Even though I agree subsys_initcall is better to register ulpi bus, it's
> >>still no excuse to have kernel panic. What about ULPI bus being compiled
> >>as module?
> 
> No kernel panic if ULPI is built as a module.
> 
> >>IMHO this is avoiding the proper kernel panic fix which should be
> >>failing gracefully (or defer probe) from tusb1210 driver.
> >Maybe I need to express myself better :)
> >IMHO we should not consider work done with this patch only. It's still
> >incomplete.
> 
> I am with you on that we should know the real problem.
> 
> I could go ahead with further debugging. Do you have any suggestions
> about which direction should I go?

This patch does not address all the cases where the panic may occur,
like the case where the bus itself fails register, while Sasha's patch
does. For the panic, we'll use Sasha's patch. I though we were clear
on this.

This patch addresses an issue with the load order. Even with the panic
fixed, we still may end up loading the drivers depending on the bus,
i.e. ulpi phy drivers or the ulpi interface providers, before the bus.
That is a different issue, but we need to fix it as well.

To fix the panic, you can already pick Sasha's patch titled:
"usb: ulpi: don't register drivers if bus doesn't exist"

Baolu, please fix the commit message to explain this patch is fixing
the problem with the load order.


Thanks,

-- 
heikki

  parent reply	other threads:[~2015-05-22 10:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-22  2:07 [PATCH v2 1/1] usb: ulpi: ulpi_init should be executed in subsys_initcall Lu Baolu
2015-05-22  3:09 ` David Cohen
2015-05-22  3:11   ` David Cohen
2015-05-22  6:46     ` Lu, Baolu
2015-05-22  7:50       ` Lu, Baolu
2015-05-22 16:12         ` David Cohen
2015-05-22 10:07       ` Heikki Krogerus [this message]
2015-05-24 16:25     ` Greg Kroah-Hartman

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=20150522100708.GA26704@kuha.fi.intel.com \
    --to=heikki.krogerus@linux.intel.com \
    --cc=baolu.lu@linux.intel.com \
    --cc=david.a.cohen@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=qiuxu.zhuo@intel.com \
    --cc=sasha.levin@oracle.com \
    /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