linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Koen Kooi <koen@dominion.thruhere.net>, linux-omap@vger.kernel.org
Subject: Re: [PATCH] OMAP: Beagle: fix DVI GPIO request
Date: Mon, 21 May 2012 09:11:21 -0700	[thread overview]
Message-ID: <20120521161120.GL17852@atomide.com> (raw)
In-Reply-To: <1337600181.2078.32.camel@lappyti>

* Tomi Valkeinen <tomi.valkeinen@ti.com> [120521 04:40]:
> On Mon, 2012-05-21 at 13:28 +0200, Koen Kooi wrote:
> > Op 21 mei 2012, om 13:12 heeft Tomi Valkeinen het volgende geschreven:
> > 
> > > On Mon, 2012-05-21 at 12:59 +0200, Koen Kooi wrote:
> > >> Op 21 mei 2012, om 11:41 heeft Tomi Valkeinen het volgende geschreven:
> > >> 
> > >>> Commit e813a55eb9c9bc6c8039fb16332cf43402125b30 ("OMAP: board-files:
> > >>> remove custom PD GPIO handling for DVI output") moved TFP410 chip's
> > >>> powerdown-gpio handling from the board files to the tfp410 driver. One
> > >>> gpio_request_one(powerdown-gpio, ...) was mistakenly left unremoved in
> > >>> the Beagle board file. This causes the tfp410 driver to fail to request
> > >>> the gpio on Beagle, causing the driver to fail and thus the DVI output
> > >>> doesn't work.
> > >>> 
> > >>> This patch removes the gpio_request_one() from the board file.
> > >>> 
> > >>> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
> > >>> ---
> > >>> arch/arm/mach-omap2/board-omap3beagle.c |    3 +--
> > >>> 1 file changed, 1 insertion(+), 2 deletions(-)
> > >>> 
> > >>> diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
> > >>> index 8ede8d2..72ad1f6 100644
> > >>> --- a/arch/arm/mach-omap2/board-omap3beagle.c
> > >>> +++ b/arch/arm/mach-omap2/board-omap3beagle.c
> > >>> @@ -510,9 +510,8 @@ static void __init omap3_beagle_init(void)
> > >>> 	omap_sdrc_init(mt46h32m32lf6_sdrc_params,
> > >>> 				  mt46h32m32lf6_sdrc_params);
> > >>> 
> > >>> +	/* DVI power down GPIO */
> > >>> 	omap_mux_init_gpio(170, OMAP_PIN_INPUT);
> > >> 
> > >> Wouldn't it be an output rather than an input?
> > > 
> > > Indeed. Note that I didn't change the line above =).
> > > 
> > > It seems this was changed last December:
> > > 
> > > -       omap_cfg_reg(J25_34XX_GPIO170);
> > > +       omap_mux_init_gpio(170, OMAP_PIN_INPUT);
> > > 
> > > I wonder if the mux init is even necessary. Shouldn't the bootloader set
> > > the muxes?
> > 
> > It'd rather have the kernel reset the muxes to the proper value to ensure a known state.
> 
> Well, I think all this needs to be handled differently anyway with
> device tree. If I've understood correctly the driver using the GPIO
> should configure the pin when the driver starts. But if the driver is
> not loaded/compiled-in, then it's again up to the bootloader.
> 
> Or is there going to be a board specific mux-init with devtree?

For device tree the mux setting will come from devicetree. Until
that works, it's best to keep the omap_mux_init_gpio() calll.

Regards,

Tony


  reply	other threads:[~2012-05-21 16:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-21  9:41 [PATCH] OMAP: Beagle: fix DVI GPIO request Tomi Valkeinen
2012-05-21  9:41 ` Tomi Valkeinen
2012-05-21 10:59   ` Koen Kooi
2012-05-21 11:12     ` Tomi Valkeinen
2012-05-21 11:28       ` Koen Kooi
2012-05-21 11:36         ` Tomi Valkeinen
2012-05-21 16:11           ` Tony Lindgren [this message]
2012-05-21 12:56   ` Tomi Valkeinen
2012-05-21 15:52 ` Russ Dill
2012-05-21 15:55   ` Tomi Valkeinen
2012-05-21 16:01     ` Russ Dill
2012-05-21 16:02       ` Tomi Valkeinen

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=20120521161120.GL17852@atomide.com \
    --to=tony@atomide.com \
    --cc=koen@dominion.thruhere.net \
    --cc=linux-omap@vger.kernel.org \
    --cc=tomi.valkeinen@ti.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).