Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp720028pxb; Tue, 3 Nov 2020 10:36:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVpN9qVJChMT+wmLFftUuPvkYr7tn/KBuk/0n1IlRe6MmKCz402/0qom2aSVpRVciuX3pc X-Received: by 2002:a17:906:31d0:: with SMTP id f16mr20795205ejf.409.1604428613303; Tue, 03 Nov 2020 10:36:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604428613; cv=none; d=google.com; s=arc-20160816; b=ONv7g37OYCZfnMDZYrWgSsj1qwZSz9nA9HXDszJOf9KPpAH2UTAqDb1ogZpX5KjqnE DXxqMRyWyLvg1h+7oqmtumM/Ug13Y72bkaNN9OWFIxm9imE1sZXLt8rK3nSSbis+xkvt lw+9INrrgp2S0I1eXxWI4MdWyAY9FtMWQpXAmK2Uph0eDg/ckvr6UdroPnjLmVQL9Lcx QOXtxTPW1Dc0vGuSKFqIdjAstUJMTLYM4UclLnFYLAjsV3+M+EW18XiEYrX0SixOwO9M +indXvaVi8eEusfCdsamS0vnCeKAmtTOhT2bUbos4SQi99Z5mDdMMvi0/biIWy2QsDrB GM2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=l4JCOmPWAT+yYUBvCZET+yptdj/Tc0NVm0IibQB+PfQ=; b=bG3dIYH54rOinQi6WkvTp7bqFoyNQF7nv51QPh5GZlpyr2kynt/bnWJW9/fSs6HHaK ETRnoSiGI9CYRoCt2yt2c6cb+jcmyrLYz5MsMQc6UzEOwhFrA/DspmXyZKzTKASkh/uj Q9rd20RTJulQ1ecznIPunA2lp3zMdyhy8bvkcyBLzEhfSMcLZYLZzfScyj73EfIJZdKj HwehOtdrLXVfOKMjj6Pb/xkZ81Ox7mdfttRKK+bhz6qRm1VMwJy7rVxXwzpeqdBgb2nK ThJl9brHNMgU76vpvHY6OQgZMh3bJS7/vqzuBL3HklZuIJb3Uk1LCw1nSjrj4nTS6Jiu 8zJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=txDAmFVb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r15si9521235ejb.482.2020.11.03.10.36.29; Tue, 03 Nov 2020 10:36:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=txDAmFVb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729103AbgKCSc0 (ORCPT + 99 others); Tue, 3 Nov 2020 13:32:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbgKCScZ (ORCPT ); Tue, 3 Nov 2020 13:32:25 -0500 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5CF0C0613D1; Tue, 3 Nov 2020 10:32:25 -0800 (PST) Received: by mail-pf1-x443.google.com with SMTP id x13so14988936pfa.9; Tue, 03 Nov 2020 10:32:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=l4JCOmPWAT+yYUBvCZET+yptdj/Tc0NVm0IibQB+PfQ=; b=txDAmFVb38CY1nzZOdVrps35WpTW/egoyq+ZQwWkhr1p7LPJUqzVkXNpsPXj9EF8kw XvlQ+hWIeF+xPL5kkLIUopLElRQAEKVsXsC5DFAhhnAquT8aVWLfoz2xc3ToZe9pijhg 323BGdu6O7G8yMgVn35CkYcMBDy3a5i9a1WpOAKnDVfbxTfPL4UOygILSD1ysqNvMG5E veVzRWIbXpnFzmG6Ebx1JIJk8ffeZvmtKnMBsFZs0yb2thLEFrsgApOLRNQuSDMReM3q B6mx1Sy8H+Z1w7aYx1iA3IfIeiOxC5bvK2pcPKMQUF/cWYn3KB6BssO8o6Y12EK7qX3w CExQ== 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:in-reply-to; bh=l4JCOmPWAT+yYUBvCZET+yptdj/Tc0NVm0IibQB+PfQ=; b=Vdy0UZBxZAxfEoN6++9q5MVjdCAOR+JP+1AA6luB1XBTnlwa4QLDBm/nP0oMl/XUbj FkxnKmI205EP8ftUdlSIz/Cyu8yDMTFffUQXKAcOWtvFNwOqS/DCqjSTdunAYb6O3ECf GeRhkrwD3EE19AhZ4Mu2vIlYyJzgxmJJcJEddbibjQIowcgRhY/5pnN/vWprNf0BgGwC 2Q+yE9eZ0+3RJYltYtniOpJE/H7u7XaMtaPNM10+HfQyeEjO21wHx04ywb46vJrbVstW kEOBo4hOs8a6Wpv9hJO0zJJ9kR9hGjQSONhS2RSgcMKnS9W33Oh9Zxz9rweB6z6UD+rZ sIPg== X-Gm-Message-State: AOAM533csAVoI57n543RZCH1iKENiCuXjhZCBm7xAC20e/fLoKO3M5Pv 1pxiaIFoSQg1bLQHfUnUbx0= X-Received: by 2002:a63:fc15:: with SMTP id j21mr18250946pgi.258.1604428345144; Tue, 03 Nov 2020 10:32:25 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:a6ae:11ff:fe11:fcc3]) by smtp.gmail.com with ESMTPSA id t26sm11495683pfl.72.2020.11.03.10.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 10:32:24 -0800 (PST) Date: Tue, 3 Nov 2020 10:32:21 -0800 From: Dmitry Torokhov To: Benjamin Tissoires Cc: Hans de Goede , Rob Herring , Douglas Anderson , Jiri Kosina , Greg Kroah-Hartman , Linux Input , Stephen Boyd , Kai Heng Feng , andrea@borgia.bo.it, Aaron Ma , Daniel Playfair Cal , Jiri Kosina , Pavel Balan , You-Sheng Yang , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 2/3] HID: i2c-hid: Allow subclasses of i2c-hid for power sequencing Message-ID: <20201103183221.GA1003057@dtor-ws> References: <20201102161210.v3.1.Ibb28033c81d87fcc13a6ba28c6ea7ac154d65f93@changeid> <20201102161210.v3.2.Ied4ce10d229cd7c69abf13a0361ba0b8d82eb9c4@changeid> <28e75d51-28d8-5a9a-adf9-71f107e94dfb@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 03, 2020 at 01:42:47PM +0100, Benjamin Tissoires wrote: > > I also want to say that I like the general idea of Doug's patch. > Having a separate driver that handles the specific use case of goodix > is really nice, as it allows to just load this driver without touching > the core of i2c-hid. I believe this is in line with what Google tries > to do with their kernel that OEMs can not touch, but only add overlays > to it. The implementation is not polished (I don't think this new > driver belongs to the input subsystem), but I like the general idea of > having the "subclassing". Maybe we can make it prettier with Hans' > suggestion, given that this mainly means we are transforming > i2c-hid-core.c into a library. > > As for where this new goodix driver goes, it can stay in > drivers/hid/i2c-hid IMO. Yep, I agree, it has nothing to do with input (except the device being physically a touchscreen ;) ), so driver/hid/i2c-hid makes most sense to me too. Thanks. -- Dmitry