Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4806373ybi; Tue, 28 May 2019 02:51:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzX2v/IL2s3BT7M1FDO8lsC+56jcsy8YQG9K0hO4fMZyASBkDtXr76kk8voFjg+3aboQrSq X-Received: by 2002:a63:4045:: with SMTP id n66mr116698623pga.386.1559037103762; Tue, 28 May 2019 02:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559037103; cv=none; d=google.com; s=arc-20160816; b=JfB6xQoMTcHA4K00M6cJa9mzpPe4n0ZCzVxYi9nve9BMwPnzWp6EdIyI0che/F+00T 6pIXwUFNKawoQPyXkJ49ECtHKAE+bNDhOIXG/RvNPh3P35fWzHjlNXNJs4MPm7/wQgzh TyqLl1LIBJIAedFXQmG+V98woxcHzotLOV3qlmAjl+C1Syps43Y4ieyOUKhhXS5WBOiH vEmAQ06BytVFOEo5QefbsOgxhTvFkIY6A/zgCRNXuHrg7fPsFdPZTg0VRVgbCauXVpcP h9Q3kPxmVqIYQu81D/GXnaLvdphOErhVMinBNGyCkATVVBZNl5gXsTi+B91jwJyXpPcb p32g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id; bh=t+wOyCHAU3WbELpuQ62f1RZklYIz8f9ostyb0V3wRWE=; b=fBO0ioPKejHkhc9VY5LhN5Ua7Lyabns9TOR1BsnmDU5RktzN+a0+MkagpTbYh11DY2 bV/vLnKKJ1QWAfLoQF0nDDwjrmsyxWpOwQdleM0HWxbB3DyNl6HQHW++i63NiJdF2zHR hxNV6izuUnwOEZY9InMkdUFEwzX60urtlR+yPtbjqb0ajzrs7tNcoGm5KUCWKu3LKyBx iMv6/B378WsfX26YvLGMSwHVeKu75w0BfToxkC9wkmowmAsUdTZOoJT6mvd0eKK2J5H/ IzlxrWjbj9sHDrpwyhNf5FzdvUWVb14yU/IrBsKDbRPVXuJoq/nbpMPxxvQ6yC9P/vW1 aVUQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si20637547pgd.64.2019.05.28.02.51.27; Tue, 28 May 2019 02:51:43 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726580AbfE1JuT (ORCPT + 99 others); Tue, 28 May 2019 05:50:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:53812 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726203AbfE1JuS (ORCPT ); Tue, 28 May 2019 05:50:18 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 67666AF38; Tue, 28 May 2019 09:50:17 +0000 (UTC) Message-ID: <1559037015.6521.3.camel@suse.de> Subject: Re: [PATCH v2] i2c: i801: Register optional lis3lv02d i2c device on Dell machines From: Jean Delvare To: Pali =?ISO-8859-1?Q?Roh=E1r?= Cc: Wolfram Sang , Andy Shevchenko , =?UTF-8?Q?Micha=C5=82_K=C4=99pie=C5=84?= , Steven Honeyman , Valdis Kletnieks , Jochen Eisinger , Gabriele Mazzotta , Andy Lutomirski , Mario Limonciello , Alex Hung , Takashi Iwai , linux-i2c , Linux Kernel Mailing List , Platform Driver Date: Tue, 28 May 2019 11:50:15 +0200 In-Reply-To: <20190528094132.ytsittb5hcgthoy2@pali> References: <20180131120348.azy25aqvn5wrdkeh@pali> <20180212153012.vffvjmz26ifyxbj5@pali> <20180213150004.5d2v7y7wwuure4io@pali> <20180213165023.xmzovx7fd3gdljxw@pali> <20180226203255.lnnzipipjz5l2itz@ninjato> <20190528111953.0e5415f4@endymion> <20190528094132.ytsittb5hcgthoy2@pali> Organization: Suse Linux Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2019-05-28 at 11:41 +0200, Pali Rohár wrote: > This is not a problem. lis3lv02d provides two things: > > 1) 3 axes accelerometer > 2) optional interrupt and signal it to userspace via misc device > > dell-smo8800 does not call any parts of lis2lv02d module. It just > provides for userspace same misc device API as lis3lv02d. > > As lis3lv02d has misc device optional, registered i2c device from > i2c-i801 does not enable it. > > So technically it is one device, but their functionality divided into > two modules. One which reports accelerometer axes and one which signals > disk fall interrupt. These two modules and functionalities does not have > to interact, so it is safe to have them separated. OK, thanks for the explanation. But assuming that we now instantiate the lis2lv02d device from i2c-i801 for exactly all the same machines, can't we just *enable* the freefall misc device feature of lis2lv02d and kill the dell-smo8800 driver completely? Seems more simple to maintain going forward. -- Jean Delvare SUSE L3 Support