From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935435AbcJZX1u (ORCPT ); Wed, 26 Oct 2016 19:27:50 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34972 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932721AbcJZX1s (ORCPT ); Wed, 26 Oct 2016 19:27:48 -0400 Date: Wed, 26 Oct 2016 16:27:45 -0700 From: Dmitry Torokhov To: Benjamin Tissoires Cc: KT Liao , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: Re: [PATCH v2] Input: elan_i2c - always output the device information Message-ID: <20161026232745.GE27930@dtor-ws> References: <1476357810-11324-1-git-send-email-benjamin.tissoires@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476357810-11324-1-git-send-email-benjamin.tissoires@redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 13, 2016 at 01:23:30PM +0200, Benjamin Tissoires wrote: > it's always easier to retrieve these information in bug reports when > it is always printed in the dmesg. > > Signed-off-by: Benjamin Tissoires Applied, thank you. > > --- > > changes in v2: > - split the version information message and the touchpad characteristics > - keep sending the versions as info (on one line) > - send the characteristics on debug only > > Hi Dmitry, > > This is a respin of one of the patches I sent for elan_i2c. Given that you > applied the fixed one for SMBus and that I don't currently have a way to > check from I2C if the trackstick is going to be used, this one is the only > one left (also given SMBus Host Notify might meld into client->irq). > > So, well, yes, there it comes, a single patch which IMO is useful > when we receive bug reports. > > Cheers, > Benjamin > > --- > drivers/input/mouse/elan_i2c_core.c | 17 ++++++++--------- > 1 file changed, 8 insertions(+), 9 deletions(-) > > diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c > index d15b338..dc7c94d 100644 > --- a/drivers/input/mouse/elan_i2c_core.c > +++ b/drivers/input/mouse/elan_i2c_core.c > @@ -1093,19 +1093,18 @@ static int elan_probe(struct i2c_client *client, > if (error) > return error; > > + dev_info(&client->dev, > + "Elan Touchpad: Module ID: 0x%04x, Firmware: 0x%04x, Sample: 0x%04x, IAP: 0x%04x\n", > + data->product_id, > + data->fw_version, > + data->sm_version, > + data->iap_version); > + > dev_dbg(&client->dev, > - "Elan Touchpad Information:\n" > - " Module product ID: 0x%04x\n" > - " Firmware Version: 0x%04x\n" > - " Sample Version: 0x%04x\n" > - " IAP Version: 0x%04x\n" > + "Elan Touchpad Extra Information:\n" > " Max ABS X,Y: %d,%d\n" > " Width X,Y: %d,%d\n" > " Resolution X,Y: %d,%d (dots/mm)\n", > - data->product_id, > - data->fw_version, > - data->sm_version, > - data->iap_version, > data->max_x, data->max_y, > data->width_x, data->width_y, > data->x_res, data->y_res); > -- > 2.7.4 > -- Dmitry