linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dudley Du <dudl@cypress.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Jeremiah Mahler <jmmahler@gmail.com>,
	"rydberg@euromail.se" <rydberg@euromail.se>,
	"bleung@google.com" <bleung@google.com>,
	David Solda <dso@cypress.com>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH v16 00/12] input: cyapa: instruction of cyapa patches
Date: Mon, 22 Dec 2014 02:09:36 +0000	[thread overview]
Message-ID: <BN1PR06MB0701C428956C2E7F7A1DD76D1560@BN1PR06MB070.namprd06.prod.outlook.com> (raw)
In-Reply-To: <20141220073154.GB4637@dtor-ws>

Thanks, Dmitry and Jeremiah,

I reproduced this issue in my side when putting fingers on trackpad when system booting up.
It only happened on gen3 trackpad device.
The root cause is, for gen3 TP, the cyapa->ops->sort_empty_output_data is not set, so when cyapa->input is not set,
the interrupt process should be passed, but since the logica error, it's not, so this issue happen.

The fix code should be as below.
I will correct it and resubmited the patches.

Code to fix this issue.
@@ -585,9 +585,10 @@ static irqreturn_t cyapa_irq(int irq, void *dev_id)
        /* Interrupt event maybe from trackpad device input reporting. */
        if (cont && cyapa->ops->irq_handler) {
                /* Still in probling or in firware image udpating or reading. */
-               if (!cyapa->input && cyapa->ops->sort_empty_output_data) {
-                       cyapa->ops->sort_empty_output_data(cyapa,
-                               NULL, NULL, NULL);
+               if (!cyapa->input) {
+                       if (cyapa->ops->sort_empty_output_data)
+                               cyapa->ops->sort_empty_output_data(cyapa,
+                                       NULL, NULL, NULL);
                        goto out;
                }

Thanks,
Dudley


> -----Original Message-----
> From: Dmitry Torokhov [mailto:dmitry.torokhov@gmail.com]
> Sent: 2014?12?20? 15:32
> To: Jeremiah Mahler; Dudley Du; rydberg@euromail.se; bleung@google.com;
> David Solda; linux-input@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH v16 00/12] input: cyapa: instruction of cyapa patches
>
> On Fri, Dec 19, 2014 at 11:15:33PM -0800, Jeremiah Mahler wrote:
> > Dudley,
> >
> > On Thu, Dec 18, 2014 at 06:00:44PM +0800, Dudley Du wrote:
> > > V16 patches have below updates, details of other updates see history list:
> > [...]
> >
> > This version has problems.  I am getting an oops (below) and then things
> > quit working and usually my machine hangs.
> >
> > [    2.388284] input: HDA Intel PCH Headphone as
> /devices/pci0000:00/0000:00:1b.0/sound/card1/input10
> > [    2.412938] FS-Cache: Netfs 'nfs' registered for caching
> > [    2.427645] [drm] Initialized i915 1.6.0 20141121 for 0000:00:02.0 on minor 0
> > [    2.428320] __add_probed_i2c_device failed to register device 1-4a
> > [    2.428331] platform chromeos_laptop: Driver chromeos_laptop requests
> probe deferral
> > [    2.429126] fbcon: inteldrmfb (fb0) is primary device
> > [    2.449066] BUG: unable to handle kernel NULL pointer dereference at
> 0000000000000160
> > [    2.449073] IP: [<ffffffff813f7b2b>] input_mt_sync_frame+0xb/0x60
>
> Sounds like we got an interrupts before we had a chance to initialize
> input device...
>
> Thanks.
>
> --
> Dmitry

This message and any attachments may contain Cypress (or its subsidiaries) confidential information. If it has been received in error, please advise the sender and immediately delete this message.

  reply	other threads:[~2014-12-22  2:09 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-18 10:00 [PATCH v16 00/12] input: cyapa: instruction of cyapa patches Dudley Du
2014-12-18 10:00 ` [PATCH v16 01/12] input: cyapa: re-design driver to support multi-trackpad in one driver Dudley Du
2014-12-30  1:06   ` Dmitry Torokhov
2014-12-30  4:43     ` Dudley Du
2014-12-18 10:00 ` [PATCH v16 02/12] input: cyapa: add gen5 trackpad device basic functions support Dudley Du
2014-12-18 10:00 ` [PATCH v16 03/12] input: cyapa: add power management interfaces support for the device Dudley Du
2014-12-30  0:51   ` Dmitry Torokhov
2014-12-18 10:00 ` [PATCH v16 04/12] input: cyapa: add runtime " Dudley Du
2014-12-30  0:57   ` Dmitry Torokhov
2014-12-18 10:00 ` [PATCH v16 05/12] input: cyapa: add sysfs interfaces support in the cyapa driver Dudley Du
2014-12-18 10:00 ` [PATCH v16 06/12] input: cyapa: add gen3 trackpad device firmware update function support Dudley Du
2014-12-18 10:00 ` [PATCH v16 07/12] input: cyapa: add gen3 trackpad device read baseline " Dudley Du
2014-12-18 10:00 ` [PATCH v16 08/12] input: cyapa: add gen3 trackpad device force re-calibrate " Dudley Du
2014-12-18 10:00 ` [PATCH v16 09/12] input: cyapa: add gen5 trackpad device firmware update " Dudley Du
2014-12-18 10:00 ` [PATCH v16 10/12] input: cyapa: add gen5 trackpad device read baseline " Dudley Du
2014-12-18 10:00 ` [PATCH v16 11/12] input: cyapa: add gen5 trackpad device force re-calibrate " Dudley Du
2014-12-18 10:00 ` [PATCH v16 12/12] input: cyapa: add acpi device id support Dudley Du
2014-12-18 11:06 ` [PATCH v16 00/12] input: cyapa: instruction of cyapa patches Dudley Du
2014-12-18 20:17   ` Benson Leung
2014-12-18 22:14   ` Jeremiah Mahler
2014-12-19  1:45     ` Dudley Du
2014-12-20  7:15 ` Jeremiah Mahler
2014-12-20  7:31   ` Dmitry Torokhov
2014-12-22  2:09     ` Dudley Du [this message]
2014-12-22  2:39       ` Dmitry Torokhov
2014-12-22  2:56         ` Dudley Du
  -- strict thread matches above, loose matches on Subject: below --
2014-12-17  9:55 Dudley Du
2014-12-17 10:03 ` Dudley Du

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=BN1PR06MB0701C428956C2E7F7A1DD76D1560@BN1PR06MB070.namprd06.prod.outlook.com \
    --to=dudl@cypress.com \
    --cc=bleung@google.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=dso@cypress.com \
    --cc=jmmahler@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rydberg@euromail.se \
    /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;
as well as URLs for NNTP newsgroup(s).