RE: qt1070: Why IRQF_TRIGGER_NONE?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jean,
  Thank you for your information. Although the irq_flag can not be added into "struct i2c_board_info" till now, I will try to find other solution.

  Thanks again.

Hi Javier,
  As to the IRQ flag depends on SOC. We try to find other solution. Please describe you issue in detail. And what's the mode does your SOC support.

Best Regards,
Voice Shen
-----Original Message-----
From: Jean Delvare [mailto:khali@xxxxxxxxxxxx] 
Sent: Thursday, May 03, 2012 14:15 申波
To: Shen, Voice
Cc: Wu, Josh; javier Martin; linux-input@xxxxxxxxxxxxxxx; Wolfram Sang; Axel Lin; Dmitry Torokhov
Subject: Re: qt1070: Why IRQF_TRIGGER_NONE?

On Thu, 3 May 2012 05:15:14 +0000, Shen, Voice wrote:
> Hi All,
>   Some information as following,
> 
>   According to the datasheet of qt1070, we can use IRQF_TRIGGER_FALLING or IRQF_TRIGGER_LOW (I think this is the best) for IRQ flag. However, the IRQ line is a GPIO of a SOC. Some SOC can detect the level change of the GPIO, while can not distinguish the falling or rising. So, the IRQ flag depends on the trigger mode of GPIO line.
> 
>   Maybe use the "flags" element in "struct i2c_board_info" to pass the IRQ flag, or add another element named "irqflags" into "struct i2c_board_info". I think this will be better, but I am not sure whether this is a good solution.

i2c_board_info.flags is for I2C client flags, please do not abuse it
for IRQ information.

I have no objection to an irq_flag member being added, however I
remember past discussions where people argued whether it was the right
thing to do or whether the IRQ mode was best set by platform
initialization code. Part of that discussion was archived here:
http://marc.info/?t=128743170300002&r=1&w=2
Said discussion did not result in any code being merged as I don't
think we came to an agreement. Feel free to restart the discussion with
the interested people.

-- 
Jean Delvare
?韬{.n?????%??檩??w?{.n???{炳)楹哜?^n?■???h?璀?{?夸z罐?+€?zf"?????i?????_璁?:+v??撸?



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux