Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1220470lqh; Mon, 6 May 2024 00:08:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVhI/xvRIcMYXQZ6FKlQ2IB2Rac/Vy9gCeKAVfhHR3YHkVwREP0IYx8eqMFxg6K8j6P8I9JEY1DRMBE47nCz428xFV+UBS5Aacnk+O3Q== X-Google-Smtp-Source: AGHT+IEtK9fyt5BQax2yde3+5mko4CJj/S1yBfQkLU/iZNPChDICuDHmPDwmfvcNH8TphW8nApRt X-Received: by 2002:a05:6358:5398:b0:186:2990:adb6 with SMTP id z24-20020a056358539800b001862990adb6mr12171815rwe.2.1714979302189; Mon, 06 May 2024 00:08:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714979302; cv=pass; d=google.com; s=arc-20160816; b=IsI22REpA36RZumbZ2DeXfddComWGJp0Ui1/Sc0IfZwRJqrKqCA0pKRsHDlwMyU8+N kNILXjHS+g/AfBcyW5g2uCZAB/7rsXK4l6wcM32tfpl0H2P9Mi/5qJ52dAAAnFlo4J57 thQpBf2JVUoQ6x+D9JojYerktgKTERd9QwQMzxeKXfVB4Fu8RoJoJycFLvraU0w3MYmV TnckaINHgL3hUT6ZKQs1/AkynpRCUCzbOqEHuzx0Zmh8Xan3dsDHxq36MwV3+8R+jmuS LFNJzkhjRIT5HS7yTqrJRJSq1ZNmNZEr664khGaLNaN8jDEX/GNkWJ4G8F+0X/feCMpR IF1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=yryMWZZAGI8jFm2aWruVb5YasBF4gJJfuH4uxiS6Mfg=; fh=N7+ooFOKrD+sMVxFBqq7fkFhU1mF3o1tDMeFFMKsl8Y=; b=h7xINWnL+T+B4dbqtg6X9M3Obe6BZaAUPg0HOOPHMWNVmfhwL2LUNzXFK6jTbfguZf d++cY7GgUUOi6v/GW+IXDwe1gKie9INRPXjU8q+ECqVBIAqxu2EIDK57WMIrW57RA3Uz lw9ZvEpuaQ41uy3wCLCBwr6RLfBiZhtYlmlt/0Xb44SRHWc4w9A0ya9C7EMQm5AQ5KlS 1QnftSE0HhD52bWO0DlfWcqLQtGQdyZoRMf2OIvxpSbU43I44dV/mi5ktmW51gIJbMVX AFosRCjBmPmzaN34gjeloZ3FD7Ezd/xINETIdyKShol4FwqV2L08+k/14tLtlFUbZrAn /vEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-169396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169396-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k67-20020a633d46000000b0061c260b68afsi5137559pga.596.2024.05.06.00.08.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 00:08:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=molgen.mpg.de); spf=pass (google.com: domain of linux-kernel+bounces-169396-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169396-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C3231281AF3 for ; Mon, 6 May 2024 07:08:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 170926BB33; Mon, 6 May 2024 07:08:14 +0000 (UTC) Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8445524AE; Mon, 6 May 2024 07:08:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=141.14.17.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714979293; cv=none; b=pOsBlBi7weTbrDCsygxittUmUELOZvBmKelWKtrM+V3YBjuekhONFDERE+Ex00XQfFnzwgMVqxjMQwzXt5TQyeifjwVDQRZaJcNK2UvrDu96cTFKfe20nlHVrhR7ZYDk35c/K750elBf5uC7kCmvEU4BHnEuNAwiOUcZXqhwMq8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714979293; c=relaxed/simple; bh=ouXFlxXz/N0EJSDtJ4JAA9CLLRGoAnsAgPcAw4wQRk4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=sXgAZNTVdEQaKMQXqTGSyiuuIZYxg+K4dN4F2re1em7QAkjWH0jVqU+akx4EgGj2ztkWj02S6VK3CZDud5/fo94LJ02Qtmgr4G899lbwGsbTYt439k8fzOKQ7b3sdR2Cgvqy1kuLHMCO2+rm4KBUQqszWRmrG0SyHD+QsNeexUI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de; spf=pass smtp.mailfrom=molgen.mpg.de; arc=none smtp.client-ip=141.14.17.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [192.168.0.4] (ip5f5af40c.dynamic.kabel-deutschland.de [95.90.244.12]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 839C561E5FE01; Mon, 6 May 2024 09:07:45 +0200 (CEST) Message-ID: <920294a9-b073-4ec5-93e9-e8135b407f9a@molgen.mpg.de> Date: Mon, 6 May 2024 09:07:44 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] i2c: i801: Add lis3lv02d for Dell Precision M6800 To: Jean Delvare , Andi Shyti , =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Patrick_H=C3=B6hn?= References: <20240312193132.26518-1-hoehnp@gmx.de> <20240312194938.mxmip456xnjdlrbo@pali> Content-Language: en-US From: Paul Menzel In-Reply-To: <20240312194938.mxmip456xnjdlrbo@pali> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dear Linux folks, Am 12.03.24 um 20:49 schrieb Pali Rohár: > On Tuesday 12 March 2024 20:31:31 Patrick Höhn wrote: >> On the Dell Precision M6800/OXD1M5, BIOS A26 06/13/2029, Linux prints the >> warning below. >> >> i801_smbus 0000:00:1f.4: Accelerometer lis3lv02d is present on SMBus but its address is unknown, skipping registration >> >> Following the same suggestions by Wolfram Sang as for the Dell Precision >> 3540 [1], the accelerometer can be successfully found on I2C bus 0 at >> address 0x29. > > Just to note for other users in future. I2C does not have to be assigned > with number 0. This number is chosen by the kernel at runtime as the > first unused number. So in case you have VGA adapter (or GPU) for which > is i2c driver available and loaded + probed before i801_smbus is loaded > and probed then kernel would report accelerometer at different bus > number. On the other hand, accelerometer address on I2C bus normally > should not change (configurable device can change it but we should hope > that it does not happen). > > The correct number of bus can be found by the i2cdetect command too: > > # i2cdetect -l | grep I801 > > For me it prints: > > i2c-0 unknown SMBus I801 adapter at f040 N/A > >> >> $ echo lis3lv02d 0x29 | sudo tee /sys/bus/i2c/devices/i2c-0/new_device >> lis3lv02d 0x29 >> $ dmesg | tail -5 >> [1185.385204] lis3lv02d_i2c 0-0029: supply Vdd not found, using dummy regulator >> [1185.385235] lis3lv02d_i2c 0-0029: supply Vdd_IO not found, using dummy regulator >> [1185.399689] lis3lv02d: 8 bits 3DC sensor found >> [1185.449391] input: ST LIS3LV02DL Accelerometer as /devices/platform/lis3lv02d/input/input371 >> [1185.449577] i2c i2c-0: new_device: Instantiated device lis3lv02d at 0x29 >> >> So, the device has that accelerometer. Add the I2C address to the >> mapping list, and test it successfully on the device. >> >> [1]: https://lore.kernel.org/linux-i2c/97708c11-ac85-fb62-2c8e-d37739ca826f@molgen.mpg.de/ >> Signed-off-by: Patrick Höhn > > Otherwise looks good, > > Acked-by: Pali Rohár Is there anything else to do from Patrick’s side before adding the patch to the git archive? Kind regards, Paul >> --- >> drivers/i2c/busses/i2c-i801.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c >> index 2c36b36d7d51..c1fee2c61da1 100644 >> --- a/drivers/i2c/busses/i2c-i801.c >> +++ b/drivers/i2c/busses/i2c-i801.c >> @@ -1231,6 +1231,7 @@ static const struct { >> */ >> { "Latitude 5480", 0x29 }, >> { "Precision 3540", 0x29 }, >> + { "Precision M6800", 0x29 }, >> { "Vostro V131", 0x1d }, >> { "Vostro 5568", 0x29 }, >> { "XPS 15 7590", 0x29 }, >> -- >> 2.43.2