All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@googlemail.com>
To: "Juha Yrjölä" <juha.yrjola@nokia.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] Convert drivers to new irq trigger modes
Date: Wed, 08 Feb 2006 20:10:44 +0100	[thread overview]
Message-ID: <43EA4234.4070807@gmail.com> (raw)
In-Reply-To: <20060208051451.GA22845@two.research.nokia.com>

Hello Juha,

Juha Yrjölä wrote:
> Hi Dirk,
> 
> On Tue, Feb 07, 2006 at 06:32:58PM +0100, ext Dirk Behme wrote:
> 
>>  	int			irq;
>> +	int			irq_type;
> 
> This doesn't seem to be used anywhere.

To which file do you refer here? isp1301_omap.c, tps65010.c 
or omap_ts.h? I use irq_type in all of them.

I thought I use irq_type in all three files: isp->irq_type, 
  tps->irq_type and ts->irq_type?

>> +	isp->irq_type = SA_SAMPLE_RANDOM;
>>  	isp->client.addr = address;
>>  	i2c_set_clientdata(&isp->client, isp);
>>  	isp->client.adapter = bus;
>> @@ -1602,7 +1604,7 @@ fail1:
>>  		isp->irq = OMAP_GPIO_IRQ(2);
>>  		omap_request_gpio(2);
>>  		omap_set_gpio_direction(2, 1);
>> -		set_irq_type(isp->irq, IRQT_FALLING);
>> +		isp->irq_type = SA_TRIGGER_FALLING;
> 
> You should be ORring here.  Otherwise you lose the SA_SAMPLE_RANDOM flag.

It is intended to lose SA_SAMPLE_RANDOM here. 
SA_SAMPLE_RANDOM is the default and shall be used by 
request_irq() on boards which don't need special trigger 
setting. But on boards which need special trigger level 
setting this shall be overridden by the correct setting.

Best regards

Dirk

  reply	other threads:[~2006-02-08 19:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-07 17:32 [PATCH] Convert drivers to new irq trigger modes Dirk Behme
2006-02-07 23:16 ` Tony Lindgren
2006-02-08  5:14 ` Juha Yrjölä
2006-02-08 19:10   ` Dirk Behme [this message]
2006-02-09  6:25     ` Juha Yrjölä
2006-02-12 15:43       ` Dirk Behme
2006-02-13  9:17         ` Juha Yrjölä

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=43EA4234.4070807@gmail.com \
    --to=dirk.behme@googlemail.com \
    --cc=juha.yrjola@nokia.com \
    --cc=linux-omap-open-source@linux.omap.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 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.