Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1447646
| From | Dmitry Torokhov <dmitry.torokhov@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 4/5] input: touchscreen: support Allwinner SoCs' touchscreen |
| Date | 2016-07-21 08:50 +0200 |
| Message-ID | <rXfXX-3QS-5@gated-at.bofh.it> (permalink) |
| References | <rWVcR-7sY-3@gated-at.bofh.it> <rWVcR-7sY-1@gated-at.bofh.it> <rXfOh-3JM-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Jul 21, 2016 at 08:29:50AM +0200, Maxime Ripard wrote:
> On Wed, Jul 20, 2016 at 10:29:10AM +0200, Quentin Schulz wrote:
> > + irq = regmap_irq_get_virq(sunxi_gpadc_mfd_dev->regmap_irqc, irq);
> > + ret = devm_request_any_context_irq(&pdev->dev, irq,
> > + sunxi_gpadc_tp_up_irq_handler, 0,
> > + "tp_up", info);
> > + if (ret < 0) {
> > + dev_err(&pdev->dev,
> > + "could not request TP_UP_PENDING interrupt: %d\n", ret);
> > + goto err;
> > + }
>
> You enable the interrupts...
>
> > + info->tp_up_irq = irq;
> > + disable_irq(irq);
> > +
> > + ret = input_register_device(input);
> > + if (ret) {
> > + dev_err(&pdev->dev, "failed to register input device\n");
> > + goto err;
> > + }
>
> ... but your driver isn't registered yet. How does input_report and
> input_sync behave in such a case?
This is explicitly allowed:
"
...
* NOTE: input_event() may be safely used right after input device was
* allocated with input_allocate_device(), even before it is registered
* with input_register_device(), but the event will not reach any of the
* input handlers. Such early invocation of input_event() may be used
* to 'seed' initial state of a switch or initial position of absolute
* axis, etc.
*/
"
Thanks.
--
Dmitry
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 4/5] input: touchscreen: support Allwinner SoCs' touchscreen Quentin Schulz <quentin.schulz@free-electrons.com> - 2016-07-20 10:40 +0200
Re: [PATCH 4/5] input: touchscreen: support Allwinner SoCs' touchscreen Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-20 19:30 +0200
Re: [PATCH 4/5] input: touchscreen: support Allwinner SoCs' touchscreen Jonathan Cameron <jic23@kernel.org> - 2016-07-20 22:20 +0200
Re: [PATCH 4/5] input: touchscreen: support Allwinner SoCs' touchscreen Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-07-21 08:40 +0200
Re: [PATCH 4/5] input: touchscreen: support Allwinner SoCs' touchscreen Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-21 08:50 +0200
Re: [PATCH 4/5] input: touchscreen: support Allwinner SoCs' touchscreen maxime.ripard@free-electrons.com - 2016-07-25 11:50 +0200
Re: [PATCH 4/5] input: touchscreen: support Allwinner SoCs' touchscreen Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-07-25 19:10 +0200
Re: [PATCH 4/5] input: touchscreen: support Allwinner SoCs' touchscreen Jonathan Cameron <jic23@kernel.org> - 2016-07-24 13:30 +0200
csiph-web