linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@ti.com>
To: Keshava Munegowda <keshava_mgowda@ti.com>
Cc: linux-omap@vger.kernel.org, linux-usb@vger.kernel.org,
	balbi@ti.com, sameo@linux.intel.com, parthab@india.ti.com
Subject: Re: [PATCH] OMAP: config : disable the usb host configuration in omap2plus_defconfig
Date: Fri, 06 Jul 2012 07:13:06 -0700	[thread overview]
Message-ID: <87d349c70t.fsf@ti.com> (raw)
In-Reply-To: <1341575380-11972-1-git-send-email-keshava_mgowda@ti.com> (Keshava Munegowda's message of "Fri, 6 Jul 2012 17:19:40 +0530")

Keshava Munegowda <keshava_mgowda@ti.com> writes:

> The usb host is disabled in the omap2 build; This is because
> usb host is causing the retention to break in cpu idle.

... and causes warnings during boot, and hangs in suspend, can't suspend
using NFSroot, etc. etc.

Thank you for disabling this by default, But I don't think this fix
is targetted enough (more below.)

Tony, when v3.5 came out, I asked them to fix this properly, but nothing
was done.  So I've resorted to requesting that this feature be disabled
by default since it introduced PM regressions.  Of course, I'd like to
see this fixed properly instead, but we've run out of time for v3.5 and
IMO, this PM regression needs to be fixed for v3.5.  See my more
targetted patches below.

> Signed-off-by: Keshava Munegowda <keshava_mgowda@ti.com>
> ---
>  arch/arm/configs/omap2plus_defconfig |   11 -----------
>  1 file changed, 11 deletions(-)
>
> diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
> index 9854ff4..7b32da6 100644
> --- a/arch/arm/configs/omap2plus_defconfig
> +++ b/arch/arm/configs/omap2plus_defconfig
> @@ -170,17 +170,6 @@ CONFIG_SND_USB_AUDIO=m
>  CONFIG_SND_SOC=m
>  CONFIG_SND_OMAP_SOC=m
>  CONFIG_SND_OMAP_SOC_OMAP3_PANDORA=m
> -CONFIG_USB=y
> -CONFIG_USB_DEBUG=y
> -CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
> -CONFIG_USB_DEVICEFS=y
> -CONFIG_USB_SUSPEND=y
> -CONFIG_USB_MON=y
> -CONFIG_USB_EHCI_HCD=y
> -CONFIG_USB_WDM=y
> -CONFIG_USB_STORAGE=y
> -CONFIG_USB_LIBUSUAL=y
> -CONFIG_USB_TEST=y

Why disable all of these?  With that, it's not terribly clear what is
going on, or why.

Instead, what you need is a targetted fix to just disable the problem
driver by default:

Either this:

diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig
index 9854ff4..11828e6 100644
--- a/arch/arm/configs/omap2plus_defconfig
+++ b/arch/arm/configs/omap2plus_defconfig
@@ -176,7 +176,6 @@ CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
 CONFIG_USB_DEVICEFS=y
 CONFIG_USB_SUSPEND=y
 CONFIG_USB_MON=y
-CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_WDM=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_LIBUSUAL=y

or this:

diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index e129c82..3747826 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -825,7 +825,7 @@ config MFD_WL1273_CORE
 config MFD_OMAP_USB_HOST
 	bool "Support OMAP USBHS core driver"
 	depends on USB_EHCI_HCD_OMAP || USB_OHCI_HCD_OMAP3
-	default y
+	default n
 	help
 	  This is the core driver for the OAMP EHCI and OHCI drivers.
 	  This MFD driver does the required setup functionalities for

Will have the inteded affect with the benefit of being much clearer
about what is actually being disabled, and why.

Kevin

  parent reply	other threads:[~2012-07-06 14:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-06 11:49 [PATCH] OMAP: config : disable the usb host configuration in omap2plus_defconfig Keshava Munegowda
2012-07-06 11:55 ` Munegowda, Keshava
2012-07-06 11:59   ` Shilimkar, Santosh
2012-07-06 12:01     ` Munegowda, Keshava
2012-07-06 12:07       ` Tony Lindgren
2012-07-06 12:25         ` Munegowda, Keshava
2012-07-06 12:39           ` Tony Lindgren
2012-07-06 13:34             ` Munegowda, Keshava
2012-07-06 14:13 ` Kevin Hilman [this message]
     [not found]   ` <87d349c70t.fsf-l0cyMroinI0@public.gmane.org>
2012-07-06 18:11     ` Kevin Hilman

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=87d349c70t.fsf@ti.com \
    --to=khilman@ti.com \
    --cc=balbi@ti.com \
    --cc=keshava_mgowda@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=parthab@india.ti.com \
    --cc=sameo@linux.intel.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;
as well as URLs for NNTP newsgroup(s).