Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp708968rdb; Fri, 22 Dec 2023 02:40:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFi5RaVAtILOt1eUSWg0N8Y3CIj03lHbt4CMjbHgR31nrlg0V3f0QrZCr8alHXrszsL9zNp X-Received: by 2002:a17:906:71d9:b0:a23:6e17:74b9 with SMTP id i25-20020a17090671d900b00a236e1774b9mr711987ejk.69.1703241615634; Fri, 22 Dec 2023 02:40:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703241615; cv=none; d=google.com; s=arc-20160816; b=Om7EClZN8fb+6VitdpHhvrQtIozsI0YVrVq5aBiyq1fSsrZtO5Df+UQ5u6DW9Vs2EI u8gpvw6jpRHX90mHiy44YPX2H4bJ6Wyjkmv9dnALLKiuiwNlmbF2pUHXn2qdGwZk5Ktl 5hhyLeCkImDlsvexWFeYP7nt6wzNUIJqJFRhgwKq1j5nyYm61n4bi1s2WgIF7NKAer1z BvT5CcUK3vI3di/rmydtxlnY76AklIuvdMaeBrH+t1TnxsbMklmtl4dYIZ7bNa3DX+9X 18CIQ0qJAsHWccLTidrGLHvtRFvxnl6pJW9gRUjZbhhXoU5uj7mIkGW3qCA6wYculhdN jO4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=Y9aDN/aCebzp1lWY0WgJd+6w8r8IdBN4//b5Jt5bNEQ=; fh=6hfhTVEgZrO20arCdfmpM6Ku1MSc3B/Duf2qxxmOSt8=; b=IsVidmnfkDDH6Irfhwj5wyDGAk/6Fmz2jvLDLGe23r53c+Kh5Nywn2FmoogcUTREa4 OY/Qfqs69O5dedvlOn4zvvmMSAfs2jKH7ftHiyl+t5SIaq7jUNkOnSKqJq06xeAofGKT mSwhIaky3wfHi0Q1WJGLK7eg4UXcIJ46M/fMY+eJrcTNQwK6COXXs33XegALSa3rMOtY yav57gDwhVvpAmr0b9q2HeYVQYMCoZYeKIO7PJaLf2hFRh6IkJybAu4cYJzZQJQO1Lsh mfA5dimNeM2dGgoMJimD/UnDzR2ZD27wxNuyvjqNJLxM6oQt80QDOZKuok6fFWNpvkP8 d3Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A56G4zdb; spf=pass (google.com: domain of linux-kernel+bounces-9602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h1-20020a17090791c100b00a26a284b143si1514885ejz.660.2023.12.22.02.40.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 02:40:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A56G4zdb; spf=pass (google.com: domain of linux-kernel+bounces-9602-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5FA9F1F25B90 for ; Fri, 22 Dec 2023 10:40:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7FE51426C; Fri, 22 Dec 2023 10:40:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="A56G4zdb" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 163AE1173C; Fri, 22 Dec 2023 10:40:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 038E4C433C7; Fri, 22 Dec 2023 10:40:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703241606; bh=6OCSEbFa5VjqhrZXUbS6iLLH3FBSj9uWLxp9Nea6BMk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=A56G4zdbW6PJhc8aFp8/SzaFix/169m/K0ZI7iFHEQb4Gg728GjWZdTxJaWctJrXM /3melLT/isNGPY9pdDL4ZthT+v+z8FI7OKYkTRcRSIWCoUa/vRUPEXH718JCu3Jt3E T69QyXl0whtyP9q/BCLDOlLLSzgYWkMmpYLHbFVDe7QvsCtOSJXjXyjAMe3bj4M55k vOK7PzQI/Sc4udnXbNwqQxnkeUHrDtlUbD6XxaMfvsAlV110y4oAAuaBD+O+qpnTlQ oRCrzF2d4Ai5dVsdphvdjErDoGHsbv5foqOBO3WnMQF2lYfTgGyjSp+HUXveaFMzKv OOWKOBxxZcpog== Date: Fri, 22 Dec 2023 11:40:03 +0100 From: Wolfram Sang To: Paul Menzel Cc: Jean Delvare , Andi Shyti , Pali =?utf-8?B?Um9ow6Fy?= , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] i2c: i801: Add =?utf-8?Q?0?= =?utf-8?Q?x29_as_I=C2=B2C?= address for lis3lv02d in Dell Precision 3540 Message-ID: Mail-Followup-To: Wolfram Sang , Paul Menzel , Jean Delvare , Andi Shyti , Pali =?utf-8?B?Um9ow6Fy?= , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231220161003.68310-1-pmenzel@molgen.mpg.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="e5C/NluWS5tnimeo" Content-Disposition: inline In-Reply-To: <20231220161003.68310-1-pmenzel@molgen.mpg.de> --e5C/NluWS5tnimeo Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 20, 2023 at 05:10:01PM +0100, Paul Menzel wrote: > On the Dell Precision 3540/0M14W7, BIOS 1.7.4 05/12/2020, Linux prints > the warning below. >=20 > i801_smbus 0000:00:1f.4: Accelerometer lis3lv02d is present on SMBus = but its address is unknown, skipping registration >=20 > With the help of Wolfram Sang, the test to probe it on I=C2=B2C bus 6 at = address > 0x29 was successful. >=20 > $ cd /sys/bus/pci/drivers/i801_smbus/0000:00:1f.4 > $ ls -d i2c-? > i2c-6 > $ sudo i2cdetect 6 > WARNING! This program can confuse your I2C bus, cause data loss and w= orse! > I will probe file /dev/i2c-6. > I will probe address range 0x08-0x77. > Continue? [Y/n] Y > 0 1 2 3 4 5 6 7 8 9 a b c d e f > 00: 08 -- -- -- -- -- -- -- > 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > 20: -- -- -- -- -- -- -- -- -- 29 -- -- -- -- -- -- > 30: 30 -- -- -- -- 35 UU UU -- -- -- -- -- -- -- -- > 40: -- -- -- -- 44 -- -- -- -- -- -- -- -- -- -- -- > 50: UU -- 52 -- -- -- -- -- -- -- -- -- -- -- -- -- > 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > 70: -- -- -- -- -- -- -- -- >=20 > $ echo lis3lv02d 0x29 | sudo tee /sys/bus/i2c/devices/i2c-6/new_device > $ sudo dmesg > [=E2=80=A6] > [ 2110.787000] i2c i2c-6: new_device: Instantiated device lis3lv02d a= t 0x29 > [ 2110.791932] lis3lv02d_i2c 6-0029: supply Vdd not found, using dumm= y regulator > [ 2110.791981] lis3lv02d_i2c 6-0029: supply Vdd_IO not found, using d= ummy regulator > [ 2110.809233] lis3lv02d: 8 bits 3DC sensor found > [ 2110.900668] input: ST LIS3LV02DL Accelerometer as /devices/platfor= m/lis3lv02d/input/input23 >=20 > So, the device has that accelerometer. Add the I2C address to the > mapping list. >=20 > Link: https://lore.kernel.org/linux-i2c/97708c11-ac85-fb62-2c8e-d37739ca8= 26f@molgen.mpg.de/ > Signed-off-by: Paul Menzel Applied to for-next, thanks! --e5C/NluWS5tnimeo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmWFZ4MACgkQFA3kzBSg KbYXwg/+OO6AsH+D/2ATwmM/XRpIwMBWdRD+zra9TogbhD6D1LytGW83U5mYLV0z pEhJHcrxtxKXcE4sAR26G3li5CWjwZb8UdF5lai/4wjC9kuWtD3nwwui8df86rmt 3S4BkK6Onxf/XkMGv1Gu+k+y9wJSEKWfLEL2jWz9Lvb70Zws5jdV1IWKy4V6w9ZW SC6KTYZlm9g8IxWAS7Gyz/G26gDmQ0kaqCExqMrBsAn3P79Tgb6yInhK2IoDBVCL 4DSgbhFCyC8Pz9fHnFatKfuL5gYNX20rkehHrOp5Su9aputbYhYfQ09x9D6shboC +g+Hoq1rdPaAikL2zEnJdMCVAAyFBGbcpZtqct6yIXa0bS3kfuo3SeE2/p8yD8LO fBym5j4KkuaWD0+/v/dsaxksUIXT+evhwU3/4dEHKbgq9RfZSXXUq94rRQaQaPis 995eat4EB9reeSZz/wS8BkscOdyyBfglw115oYfQb2tpPx/5MK6F1rhAQhtlZLXy XyYd0AhAqVDwUtBjz+SJjoqPR/rwLegmXRxNLfx9GqL1r6NQkJ4rGNoc7rf5hQJP F+h1YZyr7+2PFhB0AC7sOkMdg7DkWL3Cu5DlSwl2YRiEQD+HSSQ8iM0/VnZ8Lpg0 c9oL5Pol78q23qyonxh+Rpmlhwpp0lAsOjvuNi3kw+NCvXQFgjk= =lhaU -----END PGP SIGNATURE----- --e5C/NluWS5tnimeo--