Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757498AbaKUBQ4 (ORCPT ); Thu, 20 Nov 2014 20:16:56 -0500 Received: from emcscan.emc.com.tw ([192.72.220.5]:63113 "EHLO emcscan.emc.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756640AbaKUBQz convert rfc822-to-8bit (ORCPT ); Thu, 20 Nov 2014 20:16:55 -0500 From: =?UTF-8?B?RUxBTiDlionlmInpp78=?= To: "'Dmitry Torokhov'" Cc: "'Oliver Neukum'" , , , "'Vincent Wang'" , "'Jeff Chuang'" , "'Benson Leung'" , "'Benjamin Tissoires'" , "'Henrik Rydberg'" , "'David Herrmann'" , , =?UTF-8?B?J+iUoeS7geixqic=?= References: <1388146515-19481-1-git-send-email-scott.liu@emc.com.tw> <20141120081113.GA37534@dtor-ws> <1416479490.28599.13.camel@linux-0dmf.site> <000001d004bd$0ad90830$208b1890$@emc.com.tw> <20141120175158.GB14798@dtor-glaptop> In-Reply-To: <20141120175158.GB14798@dtor-glaptop> Subject: RE: [PATCH v1] Input: elants_i2c: Add Elan touchscreen support Date: Fri, 21 Nov 2014 09:16:37 +0800 Message-ID: <001101d00528$ce525f80$6af71e80$@emc.com.tw> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGPAtNJZnsxghQAUQdBW7YNhjLKyQLlfmrAAacox4YBx1wzUQFtRhPJnK479NA= Content-Language: zh-tw Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry: > -----Original Message----- > From: 'Dmitry Torokhov' [mailto:dmitry.torokhov@gmail.com] > Sent: Friday, November 21, 2014 1:52 AM > To: ELAN 劉嘉駿 > Cc: 'Oliver Neukum'; linux-kernel@vger.kernel.org; linux-input@vger.kernel.org; > 'Vincent Wang'; 'Jeff Chuang'; 'Benson Leung'; 'Benjamin Tissoires'; 'Henrik > Rydberg'; 'David Herrmann' > Subject: Re: [PATCH v1] Input: elants_i2c: Add Elan touchscreen support > > On Thu, Nov 20, 2014 at 08:25:15PM +0800, ELAN 劉嘉駿 wrote: > > > > Hi Oliver: > > > > -----Original Message----- > > From: Oliver Neukum [mailto:oneukum@suse.de] > > Sent: Thursday, November 20, 2014 6:32 PM > > To: Dmitry Torokhov > > Cc: scott; linux-kernel@vger.kernel.org; linux-input@vger.kernel.org; > > Vincent Wang; Jeff Chuang; Benson Leung; Benjamin Tissoires; Henrik > > Rydberg; David Herrmann > > Subject: Re: [PATCH v1] Input: elants_i2c: Add Elan touchscreen > > support > > > > > > > > > +static int elants_i2c_sw_reset(struct i2c_client *client) { > > > + const u8 soft_rst_cmd[] = { 0x77, 0x77, 0x77, 0x77 }; > > > + int error; > > > + > > > + error = elants_i2c_send(client, soft_rst_cmd, > > > + sizeof(soft_rst_cmd)); > > > + if (error) { > > > + dev_err(&client->dev, "software reset failed: %d\n", > > > error); > > > + return error; > > > + } > > > + > > > + /* > > > + * We should wait at least 10 msec (but no more than 40) > > > before > > > + * sending fastboot or IAP command to the device. > > > + */ > > > + msleep(30); > > > > If timing is critical in both ways, you should take our guarantee if sufficient > sleep. I suggest you sleep 11msecs. > > > > Sorry, this is our firmware tricky but it should be sleep longer than 30ms. > Actually 70ms. > > (Dmitry, I need to modify this delay time to 70ms. Sorry for the changed over > and over again; > > because we consider big sensor solution which need to use more ICs > > and need more longer delay) > > > > Wait, before you said that upper bound is critical, otherwise the device will > ignore the next command and will not enter IAP mode. So what will happen if > we increase the wait to 70 msecs and use the driver with smaller sensors? > I think the timeout(40ms) was wrong information. (We do have that, but we will no longer use it on Chrome projects) As we encountered some problem on Chrome project of big sensor solution, and we already have resolved by modify bootcode timeout value. Precisely speaking, the 40ms bootcode is special solution for specific project, and general solution is the 100ms bootcode. So we have replaced 40ms bootcode with 100ms bootcode. That’s what our firmware engineer told me. Thanks. -- Scott > Thanks. > > -- > Dmitry -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/