All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Dudley Du <dudl@cypress.com>
Cc: 'Jeremiah Mahler' <jmmahler@gmail.com>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>
Subject: Re: [BUG] [PATCH] next: cyapa: fix inop touchpad after resume on Acer C720
Date: Wed, 3 Dec 2014 15:42:46 -0800	[thread overview]
Message-ID: <20141203234246.GA10327@dtor-ws> (raw)
In-Reply-To: <9d446cdf85214727b1cd02d7e1537e2b@BN1PR06MB070.namprd06.prod.outlook.com>

Dudley,

On Fri, Nov 28, 2014 at 01:49:15AM +0000, Dudley Du wrote:
> Dmitry,
> 
> Yes, I remebered the discussion, and I said it was working.
> At that time, I though it was the suggestion to my patches, so I merged the solution to my pathces,
> and verified on my pathces. But did not run test on the patch you attached.
> Sorry for the misunderstood and the troubles to you. :)

Sorry I was not clear in my request. Anyway, I just applied the patch
(with a minor edit) and pushed it out. It shoudl make it's way into next
today or tomorrow.

Thanks.

> 
> Regards,
> Dudley
> 
> > -----Original Message-----
> > From: Dmitry Torokhov [mailto:dmitry.torokhov@gmail.com]
> > Sent: 2014年11月28日 2:16
> > To: Dudley Du; 'Jeremiah Mahler'
> > Cc: linux-kernel@vger.kernel.org; Dudley Du
> > Subject: RE: [BUG] [PATCH] next: cyapa: fix inop touchpad after resume on Acer
> > C720
> >
> > On November 26, 2014 9:45:49 PM PST, Dudley Du <dudley.dulixin@gmail.com>
> > wrote:
> > >Jeremiah,
> > >
> > >I didn't make the special patch for the linux-next before, so I don't
> > >know why
> > >this patch is there and have issue.
> >
> > That was the patch we've discussed some times back and you mentioned it was
> > working for you so I applied it to next.
> >
> > I'll make sure to apply the fixup promptly.
> >
> > >Based on current code in the linux-next, I made below patch to fix this
> > >issue.
> > >Could you please try again with attached patch fix.
> > >
> > >Thanks,
> > >Dudley
> > >
> > >> -----Original Message-----
> > >> From: Jeremiah Mahler [mailto:jmmahler@gmail.com]
> > >> Sent: 2014?11?27? 4:03
> > >> To: Dudley Du
> > >> Cc: linux-kernel@vger.kernel.org
> > >> Subject: Re: [BUG] [PATCH] next: cyapa: fix inop touchpad after
> > >resume on Acer
> > >> C720
> > >>
> > >> Dudley,
> > >>
> > >> On Wed, Nov 26, 2014 at 06:16:00AM +0000, Dudley Du wrote:
> > >> > More info: I did all testings based on kernel 3.14.0 on Acer C70.
> > >> >
> > >>
> > >> I am testing with linux-next 3.18-rc6 on an Acer C720.
> > >>
> > >> http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/
> > >>
> > >> > Thanks,
> > >> > Dudley
> > >> >
> > >> []
> > >>
> > >> --
> > >> - Jeremiah Mahler
> > >
> > >From bb717b1c1525ef6b889f0ef735d920eed9e76e72 Mon Sep 17 00:00:00 2001
> > >From: Dudley Du <dudley.dulixin@gmail.com>
> > >Date: Thu, 27 Nov 2014 13:35:09 +0800
> > >Subject: [PATCH] input: cyapa: fix irq error issue in cyapa_resume
> > >To: dmitry.torokhov@gmail.com,
> > >    jmmahler@gmail.com
> > >Cc: bleung@google.com,
> > >    linux-input@vger.kernel.org
> > >
> > >This patch is aimed to fix the irq error happened on cyapa_resume when
> > >doing suspend/resume testing.
> > >The root cause of this issue is that the cyapa->irq has been removed
> > >but
> > >still used in the driver.
> > >
> > >Signed-off-by: Dudley Du <dudley.dulixin@gmail.com>
> > >---
> > > drivers/input/mouse/cyapa.c | 6 +++---
> > > 1 file changed, 3 insertions(+), 3 deletions(-)
> > >
> > >diff --git a/drivers/input/mouse/cyapa.c b/drivers/input/mouse/cyapa.c
> > >index c84a9eb..caaba7b 100644
> > >--- a/drivers/input/mouse/cyapa.c
> > >+++ b/drivers/input/mouse/cyapa.c
> > >@@ -938,7 +938,7 @@ static int __maybe_unused cyapa_suspend(struct
> > >device *dev)
> > >  power_mode, error);
> > >
> > > if (device_may_wakeup(dev))
> > >-cyapa->irq_wake = (enable_irq_wake(cyapa->irq) == 0);
> > >+cyapa->irq_wake = (enable_irq_wake(cyapa->client->irq) == 0);
> > >
> > > mutex_unlock(&input->mutex);
> > >
> > >@@ -956,7 +956,7 @@ static int __maybe_unused cyapa_resume(struct
> > >device *dev)
> > > mutex_lock(&input->mutex);
> > >
> > > if (device_may_wakeup(dev) && cyapa->irq_wake)
> > >-disable_irq_wake(cyapa->irq);
> > >+disable_irq_wake(cyapa->client->irq);
> > >
> > > power_mode = input->users ? PWR_MODE_FULL_ACTIVE : PWR_MODE_OFF;
> > > error = cyapa_set_power_mode(cyapa, PWR_MODE_FULL_ACTIVE);
> > >@@ -964,7 +964,7 @@ static int __maybe_unused cyapa_resume(struct
> > >device *dev)
> > > dev_warn(dev, "resume: set power mode to %d failed: %d\n",
> > >  power_mode, error);
> > >
> > >-enable_irq(cyapa->irq);
> > >+enable_irq(cyapa->client->irq);
> > >
> > > mutex_unlock(&input->mutex);
> > >
> >
> > Hi Dudley,
> > 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.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2014-12-03 23:42 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-19  8:37 [PATCH v11 00/19] input: cyapa: instruction of cyapa patches Dudley Du
2014-11-19  8:37 ` [PATCH v11 01/19] input: cyapa: modify code to following kernel code style Dudley Du
2014-11-19  8:37 ` [PATCH v11 02/19] input: cyapa: add device resource management infrastructure support Dudley Du
2014-11-19  8:37 ` [PATCH v11 03/19] input: cyapa: re-design driver to support multi-trackpad in one driver Dudley Du
2014-11-19  8:37 ` [PATCH v11 04/19] input: cyapa: add gen5 trackpad device basic functions support Dudley Du
2014-11-19  8:37 ` [PATCH v11 05/19] input: cyapa: add power management interfaces supported for the device Dudley Du
2014-11-19  8:37 ` [PATCH v11 06/19] input: cyapa: add runtime " Dudley Du
2014-11-19  8:37 ` [PATCH v11 07/19] input: cyapa: add sysfs interfaces supported in the cyapa driver Dudley Du
2014-11-19  8:37 ` [PATCH v11 08/19] input: cyapa: add gen3 trackpad device firmware update function support Dudley Du
2014-11-19  8:37 ` [PATCH v11 09/19] input: cyapa: add gen3 trackpad device read baseline " Dudley Du
2014-11-19  8:37 ` [PATCH v11 10/19] input: cyapa: add gen3 trackpad device force re-calibrate " Dudley Du
2014-11-19  8:37 ` [PATCH v11 11/19] input: cyapa: add gen5 trackpad device firmware update " Dudley Du
2014-11-19  8:37 ` [PATCH v11 12/19] input: cyapa: add gen5 trackpad device read baseline " Dudley Du
2014-11-19  8:37 ` [PATCH v11 13/19] input: cyapa: add gen5 trackpad device force re-calibrate " Dudley Du
2014-11-19  8:37 ` [PATCH v11 14/19] input: cyapa: add read firmware image debugfs interface support Dudley Du
2014-11-19  8:37 ` [PATCH v11 15/19] input: cyapa: add gen3 trackpad device read firmware image function support Dudley Du
2014-11-19  8:37 ` [PATCH v11 16/19] input: cyapa: add gen5 " Dudley Du
2014-11-19  8:37 ` [PATCH v11 17/19] input: cyapa: add read sensors raw data debugfs interface support Dudley Du
2014-11-19  8:37 ` [PATCH v11 18/19] input: cyapa: add gen5 trackpad device read raw data function support Dudley Du
2014-11-19  8:37 ` [PATCH v11 19/19] input: cyapa: add acpi device id supported Dudley Du
2014-11-21  8:56 ` [PATCH v11 00/19] input: cyapa: instruction of cyapa patches Jeremiah Mahler
2014-11-24  3:06   ` Dudley Du
2014-11-24  8:50     ` Jeremiah Mahler
2014-11-25 10:07       ` [BUG] [PATCH] next: cyapa: fix inop touchpad after resume on Acer C720 Jeremiah Mahler
2014-11-26  6:01         ` Dudley Du
2014-11-26 19:59           ` Jeremiah Mahler
2014-11-26  6:16         ` Dudley Du
2014-11-26 20:02           ` Jeremiah Mahler
2014-11-27  5:45             ` Dudley Du
2014-11-27  9:05               ` Jeremiah Mahler
2014-11-27 18:16               ` Dmitry Torokhov
2014-11-28  1:49                 ` Dudley Du
2014-12-03 23:42                   ` Dmitry Torokhov [this message]

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=20141203234246.GA10327@dtor-ws \
    --to=dmitry.torokhov@gmail.com \
    --cc=dudl@cypress.com \
    --cc=jmmahler@gmail.com \
    --cc=linux-input@vger.kernel.org \
    /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.