Re: How to use ACPI for touchscreen

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

 



"However, you got an ACPI name (CHPN0001), which leads me to conclude that some
interaction was going on."

Hi, Gregor.
Unfortunately it is not so :(
In previous reply, version 0.0.2 - I have changed i2c dev name to icn8528.
I have added the module to the /lib/modules/KVER, with right depmod and booted.
The output is only - registering i2c drv: bus: 'i2c': add driver icn8528.

And again only manual! echo icn8528 0x48 >/sys/bus/devices/i2c-4/newdevice
is called probe_ts funct but output shows bad news:

Mar 02 15:45:06 archiso kernel: i2c i2c-4: new_device: Instantiated
device icn8528 at 0x48
Mar 02 15:45:06 archiso kernel: bus: 'i2c': add driver icn8528
Mar 02 15:45:06 archiso kernel: bus: 'i2c': driver_probe_device:
matched device 4-0048 with driver icn8528
Mar 02 15:45:06 archiso kernel: bus: 'i2c': really_probe: probing
driver icn8528 with device 4-0048
Mar 02 15:45:06 archiso kernel: icn8528 4-0048: no default pinctrl state
Mar 02 15:45:06 archiso kernel: devices_kset: Moving 4-0048 to end of list
Mar 02 15:45:06 archiso kernel: Hello from probe_ts_probe
Mar 02 15:45:06 archiso kernel: icn8528 4-0048: probe info:
gsl_ts_probe: got a device named icn8528 at address 0x48, IRQ 0, flags
0x0
Mar 02 15:45:06 archiso kernel: icn8528 4-0048: gsl_ts_probe: missing
IRQ configuration
Mar 02 15:45:06 archiso kernel: icn8528: probe of 4-0048 rejects match -19.

Parameters it takes just from my manual creating of i2cdev through sysfs.

Kind regards,
                      Serge Kolotylo.

On Wed, Mar 2, 2016 at 1:07 PM, Gregor Riepl <onitake@xxxxxxxxx> wrote:
>> echo icn8528 0x48 > /sys/bus/i2c/devices/i2c-4/newdevice
>> After this kernel automatically loads myicn_ts_acpi.ko module.
>>
>> ...
>>
>> gsl_ts_probe: got a device named icn8528 at address 0x48, IRQ 0, flags
>> 0x0
>> Mar 02 12:07:31 archiso kernel: icn8528 4-0048: gsl_ts_probe: missing
>> IRQ configuration
>> Mar 02 12:07:31 archiso kernel: icn8528: probe of 4-0048 rejects match -19
>>
>> So, based on main line output: archiso kernel: CHPN0001 4-0048: probe
>> info: gsl_ts_probe: got a device named CHPN0001 at address 0x48, IRQ
>> 0, flags 0x0
>>
>> It looks that via ACPI no info is provided? No IRQ, no flags?
>
> Umm... Ok, this seems a bit weird. Normally, you wouldn't create devices from
> user space, as the kernel should automatically instantiate them when parsing
> the DSDT or DT.
>
> However, you got an ACPI name (CHPN0001), which leads me to conclude that some
> interaction was going on.
>
> Ok, now about the interrupt. The DSDT you posted previously contained this:
>
> Interrupt (ResourceConsumer, Level, ActiveHigh, Exclusive, ,, )
>                         {
>                             0x00000044,
>                         }
>
> So the irq field should have been set. I don't really understand why this
> wasn't the case, sorry.
>
> I recommend you try to load the module without creating a device from user
> space first. Either install the module and reboot or load the module manually.
>
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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