From: Frank Agius <ftagius@yahoo.com>
To: linux-omap@vger.kernel.org
Subject: Interaction between USB phy power and MADC driver
Date: Thu, 06 Sep 2012 14:57:42 -0400 [thread overview]
Message-ID: <k2ark9$tdn$1@ger.gmane.org> (raw)
I'm seeing what I think is an unintended consequence of powering down
the USB phy. All the relavent code is in file twl4030_usb.c. My system
is setup to use the USB in otg mode. If nothing is connected to the USB
OTG port, the phy suspension code is called. In the chain of calls that
follows, the vusb3v1 regulator is disabled. However, according to the
OMAP power management manual, vusb3v1 is used "to bias the analog
multiplexers on the four MCPC pins between the carkit and the MADC".
I've seen if there is no bias on this mux, the MADC driver returns
incorrect counts on these 4 pins that should be in A/D mode. If I plug
something into the USB OTG port, the MADC driver returns the expected
counts. I also created a debug version of the twl4030-usb driver, with
the disabling of the vusb3v1 commented out and the MADC returns the
correct counts regardless of the state of the USB OTG port.
Since the vusb3v1 regulator is required for the proper operation of the
mux and by extension the MADC and carkit mode, shouldn't it always be
enabled?
frank
next reply other threads:[~2012-09-06 18:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-06 18:57 Frank Agius [this message]
2012-09-06 20:01 ` Interaction between USB phy power and MADC driver 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='k2ark9$tdn$1@ger.gmane.org' \
--to=ftagius@yahoo.com \
--cc=linux-omap@vger.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 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.