Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1681121rwi; Wed, 19 Oct 2022 14:01:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7KZt/0l528iYn01ViRF2pxqk0n61xle2ZZtsG9fK5aBumMoAvKoJfTKjNdId2lEcoTsrrj X-Received: by 2002:a05:6402:5483:b0:45c:1336:6d9b with SMTP id fg3-20020a056402548300b0045c13366d9bmr9322966edb.100.1666213266812; Wed, 19 Oct 2022 14:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666213266; cv=none; d=google.com; s=arc-20160816; b=tucctTTFoZINEzMNvMH97r5mJBJsRpfx/ya6WcxgRD5sva0aE2FnAqcOmsrs2N9SlZ GwbjtIHhqdY/QOIzJD2k9vc2+JvjMP7ZVjeMkR9o5sAgsvqKcFMcv6vOUMfTiFvFlSY1 /5mvOB8YqmCWGT8/F/1ged/vAF+A4irUA4vUnBBfDjkgqp6kfYoh6rzunQMm0VoCb/Ws iLf7kqSdMd+CX9fTSe1RUj8tvnqaj97NxLki1GUkFFghQVXt6r5tYttU8YGHjHmvMqDd D2rUBEe3PncCDdqHUscEfawXqnzEeQvnUi5jp67GepRNMWOR52M2Qqw8PFYURfn6NZ3F zIVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=iwyPoVh3KRG/sYICa+FdChtuOcY8pdooBREMcoexsRc=; b=CYYS7rWViG82fYeC8OatfSHy7ac3euj6MEsfKeugxcgiWGfNCz+6Obir6eVWSHqrd5 MTHtbW5uy9xwvxL3TMobeDGhctIyRQoLsppRjQDqQLlvssVsJ/KKJ+CSk5129/GJXfn8 kPf6RapnIHQH4RW2vdEFxmy/OSuzI9G8Bg5z6GJMeQ/wmoasjCWJRpYAjqv82eocur0H FlHcLLlNuMOqKrK4WhTmc+/1UhTj0Qrs2SMW2pqSpMd0tVp7OU9a3ehj6jqkdPvRex8n LcS2wMx7GEds+qQziAri7BG2S/gAhu/ASs7mK4OLAQCiBxnjNZKX5HXP1gFmOCkQtpC3 J4XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p172OvXv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a056402148e00b00459e39448b3si13518023edv.254.2022.10.19.14.00.29; Wed, 19 Oct 2022 14:01:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=p172OvXv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231556AbiJSUwq (ORCPT + 99 others); Wed, 19 Oct 2022 16:52:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230266AbiJSUwp (ORCPT ); Wed, 19 Oct 2022 16:52:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 291F48B2EC; Wed, 19 Oct 2022 13:52:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B8AD3619A9; Wed, 19 Oct 2022 20:52:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAEA9C433D7; Wed, 19 Oct 2022 20:52:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666212763; bh=vUMA+KIEyk/mYPhfmyufPAgBG9tekFxdVUbAeXTernc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=p172OvXvWm/p6RKTQNulUGe+kEr9zh/MoX+B0PaLbFGYaCtEweB95zPuTVG2Dib1l 3eFX65O9mcEtg8K+ZGAP095XFU0sXw8WRMWUB1ahMLe9bQd30eACPNLy1SGojiJ6bx 2StzfEOxWFj/VapNszY8oJR1iiJPt3PHwx2aWbocpq77QdoMKxwwEFwaP8jdMHxKFW BLIMJ0d2sj7YrHYnxwofGtxSkWk12SozvzcJoSBDOoKNbhjPQ+Fn4L2r5tOLk3vRor wJzNnjI+xMcY8a4H4hUgt1TzUcJMmSSPrjaYmE/uZPclQaORMCIQ6T1/DwThLhI9xM QLVU4ggVcN+MQ== Received: by pali.im (Postfix) id 07FC13AC; Wed, 19 Oct 2022 22:52:39 +0200 (CEST) Date: Wed, 19 Oct 2022 22:52:39 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Nam Cao Cc: Jean Delvare , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] i2c: i801: add lis3lv02d's I2C address for Vostro 5568 Message-ID: <20221019205239.6n5sfqejtljlpyci@pali> References: <20221006145440.10281-1-namcaov@gmail.com> <20221018193951.40787445@endymion.delvare> <20221018180051.236tz4yxsdzrgguq@pali> <20221019203403.GA149239@nam-dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221019203403.GA149239@nam-dell> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 19 October 2022 22:34:03 Nam Cao wrote: > On Tue, Oct 18, 2022 at 08:00:51PM +0200, Pali Rohár wrote: > > On Tuesday 18 October 2022 19:39:51 Jean Delvare wrote: > > > On Thu, 06 Oct 2022 16:54:40 +0200, Nam Cao wrote: > > > > Dell Vostro 5568 laptop has lis3lv02d, but its i2c address is not known > > > > to the kernel. Add this address. > > > > > > > > Output of "cat /sys/devices/platform/lis3lv02d/position" on Dell Vostro > > > > 5568 laptop: > > > > - Horizontal: (-18,0,1044) > > > > - Front elevated: (522,-18,1080) > > > > - Left elevated: (-18,-360,1080) > > > > - Upside down: (36,108,-1134) > > > > > > > > Signed-off-by: Nam Cao > > > > --- > > > > 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 a176296f4fff..e46561e095c6 100644 > > > > --- a/drivers/i2c/busses/i2c-i801.c > > > > +++ b/drivers/i2c/busses/i2c-i801.c > > > > @@ -1243,6 +1243,7 @@ static const struct { > > > > */ > > > > { "Latitude 5480", 0x29 }, > > > > { "Vostro V131", 0x1d }, > > > > + { "Vostro 5568", 0x29 }, > > > > }; > > > > > > > > static void register_dell_lis3lv02d_i2c_device(struct i801_priv *priv) > > > > > > Fine with me. > > > > > > Reviewed-by: Jean Delvare > > > > > > Pali, OK with you? > > > > Yes, nice to see that other people discovered another hidden hardware > > devices in their own laptops :-) > > > > Reviewed-by: Pali Rohár > > > > > > Nam Cao, could you check your ACPI DSDT table if there is not specified > > this smbus/i2c address 0x29? Autodiscovery would be better than > > hardcoding. At least for E6440 I was told that BIOS does not provide it. > > My reply got rejected by mailing list because the attachment was too big. > So I re-send this without the attachment, so that everyone can see. > > I searched the DSDT table for "29", but none of them looks like an i2c > address. > > But this is the first time I hear about ACPI DSDT table, so I may did > something incorrectly. I did: > - cp /sys/firmware/acpi/tables/DSDT table > - iasl -d table > - Search through table.dsl > > Best regards, > Nam You did it correctly. I'm not surprised that you have not found anything. When I did experiments in the past, I was not able too... That is why there is that harcoded table... It just means that Dell did not fixed it or they perfectly hidden it.