Received: by 10.223.185.116 with SMTP id b49csp1516936wrg; Sun, 11 Feb 2018 14:05:51 -0800 (PST) X-Google-Smtp-Source: AH8x2271cU59Bome37+1AJ+X/ZWO3BaOKdzNOV16WaIvajvYQpe13dVkw3OBr5Hha043F2ifM04u X-Received: by 2002:a17:902:7681:: with SMTP id m1-v6mr5507628pll.144.1518386751322; Sun, 11 Feb 2018 14:05:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518386751; cv=none; d=google.com; s=arc-20160816; b=BfEHWuhB8vvoIF5bk8ukWB64BBl5NsOeT7x6NF5eMACKpDFii7YdA9J+insHVNHh0E IxhYkoegW/dl+cu20rQPn2kHu3FFfm7AyBQqjONRT+d0C+/sS3e51bv05duj6iOADq5h auSLXnTL92ypj36umAkttizgLlpLHhQ7MaTm7La/tC5rL2EmvIh9BlfAteXvKo/uDv9q TRQz8WXdvsrnVeTJndXgGd+t84Nyr5Cf+vvHRClELR5sNamhIc26fYk2vU7k827SVoTN aAA/JhFQffhBTYpFtWc91n7uW6bWUNi3giDIC8EbtJ9FleolUTzVAgXjmuTs1gGc+ckz idVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=EVFUvQOcIFzr4hDdIHTARQa///oVDk7U7K0Tit+P03Y=; b=RKHugss2tZwip6SS9lQwG8tky+lw+02vOXBT40SRu2gyNnUNJN7QoJiwf9vFI2VBo+ pUmAYpBXu2DN8LzZnvDm1xrEk0IGcSuPwtg+RBRRJwmiDO9KcUi6LUkRkUFRgd8wticE 6dDXj24bFoq3T1KXrvkcWwPd8mNO2Y6yoCJI9Asd1FRYEL4394uIkTRNEQoQgVEsaUNT fPCEFxuq72JbS5wElEGgglsawPiPVZUNkr1Gf7U77QRLVCnvhDgd+eMtA9wiLVmdJvJy 0Kuizchj7wJv7v1lCkWapQ6af04iTqyt/hXsEcusFE6V0ODSTcF3EjcP2t0UnjIkZgRV Uavg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kempniu.pl header.s=google header.b=RfDrtfkQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kempniu.pl Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3-v6si2874457plo.2.2018.02.11.14.05.37; Sun, 11 Feb 2018 14:05:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kempniu.pl header.s=google header.b=RfDrtfkQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kempniu.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932219AbeBKWDY (ORCPT + 99 others); Sun, 11 Feb 2018 17:03:24 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:42716 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932197AbeBKWDW (ORCPT ); Sun, 11 Feb 2018 17:03:22 -0500 Received: by mail-lf0-f68.google.com with SMTP id w10so5226816lfc.9 for ; Sun, 11 Feb 2018 14:03:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kempniu.pl; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=EVFUvQOcIFzr4hDdIHTARQa///oVDk7U7K0Tit+P03Y=; b=RfDrtfkQmOPz2XAUNA9+cgfo+e/IpoAr6CBj+tovYbkdMO9x/ILKbu9AB8yHABTXtk Pbgj6V+mv4Ct3Em1/bVnt3L9ZWbWugvoiYT7+2uo/nyUvzYynpLQmfUaN85E6FolGHK+ Q2li5JhyFiP1MLm2HEUOT9i+2qMqeLnocoUMw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=EVFUvQOcIFzr4hDdIHTARQa///oVDk7U7K0Tit+P03Y=; b=o5y0n3sdyXkbgWp59aYS85TYXPyhlL4gZ0kz5iFNDUfClCOPXg/gyK/KAmgvjMn5lZ ROZKahXhfgkn3Q67n9EfHBF4uBR0ayK21nSIeh9uI8nFIgN9KOdUVQ4cVizbcOYGbOgi 3gpq96E+OarF3g0dfle1tkIUHTm4ZpaEkpw0Pg8bBD4vXcwkFnlulJANitlr4nryPxPO GZruE/x99IkboygQQ59OaWRrTrIMozOzEhur/V5R0AHl/mJ44tQkemkYrHpxo+DCOgeT 5yUOplnPHVcQDzDQCndty12750FrF97dvSNUMY8W+/O1+iYtzf+Lt/yzVs3PzC6kOWvy Geng== X-Gm-Message-State: APf1xPDwfziwa3cxWvAGa08uvHNr/P3zPwAy41lfp8kh+D5ZdjCKX9uv cxq+tycYhlKm/DnPm777vunVQg== X-Received: by 10.25.216.207 with SMTP id r76mr3255391lfi.25.1518386600611; Sun, 11 Feb 2018 14:03:20 -0800 (PST) Received: from kmp-mobile.hq.kempniu.pl (kmp-mobile.hq.kempniu.pl. [2001:470:64df:111::1b01]) by smtp.gmail.com with ESMTPSA id t67sm830223lje.16.2018.02.11.14.03.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Feb 2018 14:03:19 -0800 (PST) Date: Sun, 11 Feb 2018 23:03:17 +0100 From: =?utf-8?B?TWljaGHFgiBLxJlwaWXFhA==?= To: Pali =?utf-8?B?Um9ow6Fy?= Cc: Jean Delvare , Wolfram Sang , Steven Honeyman , Valdis.Kletnieks@vt.edu, Jochen Eisinger , Gabriele Mazzotta , Andy Lutomirski , Mario_Limonciello@dell.com, Alex Hung , Takashi Iwai , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines Message-ID: <20180211220317.GA833@kmp-mobile.hq.kempniu.pl> References: <20180127133209.28995-1-pali.rohar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180127133209.28995-1-pali.rohar@gmail.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Dell platform team told us that some (DMI whitelisted) Dell Latitude > machines have ST microelectronics accelerometer at i2c address 0x29. > > Presence of that ST microelectronics accelerometer is verified by existence > of SMO88xx ACPI device which represent that accelerometer. Unfortunately > ACPI device does not specify i2c address. > > This patch registers lis3lv02d device for selected Dell Latitude machines > at i2c address 0x29 after detection. And for Dell Vostro V131 machine at > i2c address 0x1d which was manually detected. > > Finally commit a7ae81952cda ("i2c: i801: Allow ACPI SystemIO OpRegion to > conflict with PCI BAR") allowed to use i2c-i801 driver on Dell machines so > lis3lv02d correctly initialize accelerometer. > > Tested on Dell Latitude E6440. > > Signed-off-by: Pali Rohár > --- > Changes since v1: > * Added Dell Vostro V131 based on Michał Kępień testing I tested this patch on a Vostro V131 and it seems to work as expected: "lis3lv02d: 8 bits sensor found" is logged during boot, an input device gets registered and its axis values seem to be consistent with laptop's movements. Tested-by: Michał Kępień I did not review the contents of the patch this time, sorry. -- Best regards, Michał Kępień