Linux Media Controller development
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Hans Verkuil <hansverk@cisco.com>
Cc: linux-media@vger.kernel.org,
	Hans Verkuil <hans.verkuil@cisco.com>,
	Lars-Peter Clausen <lars@metafoo.de>
Subject: Re: [PATCH] adv7611: Set HPD GPIO direction to output
Date: Wed, 26 Mar 2014 11:03:53 +0100	[thread overview]
Message-ID: <2189761.hxRNmn9JuL@avalon> (raw)
In-Reply-To: <5332A35E.3000504@cisco.com>

Hi Hans,

On Wednesday 26 March 2014 10:52:30 Hans Verkuil wrote:
> Hi Laurent,
> 
> Stupid question perhaps, but why is gpiod_set_value_cansleep() removed?
> Does setting the output direction force the value to 0 as well?

The last argument to gpiod_direction_output() sets the initial output level, 
yes.

> On 03/26/14 03:28, Laurent Pinchart wrote:
> > The HPD GPIO is used as an output but its direction is never set. Fix
> > it.
> > 
> > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > ---
> > 
> >  drivers/media/i2c/adv7604.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > This patch applies on top of the ADV7611 support series queued for v3.16.
> > 
> > diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c
> > index 51f14ab..b38ebb9 100644
> > --- a/drivers/media/i2c/adv7604.c
> > +++ b/drivers/media/i2c/adv7604.c
> > @@ -2845,7 +2845,7 @@ static int adv7604_probe(struct i2c_client *client,
> >  		if (IS_ERR(state->hpd_gpio[i]))
> >  			continue;
> > 
> > -		gpiod_set_value_cansleep(state->hpd_gpio[i], 0);
> > +		gpiod_direction_output(state->hpd_gpio[i], 0);
> > 
> >  		v4l_info(client, "Handling HPD %u GPIO\n", i);
> >  	}

-- 
Regards,

Laurent Pinchart


  reply	other threads:[~2014-03-26 10:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-26  2:28 [PATCH] adv7611: Set HPD GPIO direction to output Laurent Pinchart
2014-03-26  9:52 ` Hans Verkuil
2014-03-26 10:03   ` Laurent Pinchart [this message]
2014-03-26 10:01     ` Hans Verkuil

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=2189761.hxRNmn9JuL@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=hans.verkuil@cisco.com \
    --cc=hansverk@cisco.com \
    --cc=lars@metafoo.de \
    --cc=linux-media@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox