Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7643152ybi; Wed, 5 Jun 2019 22:21:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwW/O/qDi6/289osBQ8MMSWLDHoTy7FZmofn7sHD+wz+hVo/YgBDqYBodtllLbQOQyr+5gP X-Received: by 2002:a63:135d:: with SMTP id 29mr1614570pgt.38.1559798518967; Wed, 05 Jun 2019 22:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559798518; cv=none; d=google.com; s=arc-20160816; b=zrjwHdHbupBLDKHPYCrptiHUcXBU/YQh5LR0GA4qqiWtE8/JEibj87eitq58/lPVNd ZGX+6NOmBN5ZW7QwqkUbuDvos/JTxmcqZ/sMMnaYEzYO0HCPyvm/O8tCpKgxigtX1P2o Kz4NiMpl9ZGcTHjjYi3X1kCySGAW1wlPbYbHjcSZO3RAiR6jYL0fE0DqC/LWmiD3DkK2 UaybQ52hFWjeE5lquNCFsva4iZPN0Ph8kpl+dPjeI+T2NdWRaeMxalrtH4oo/DG24NhV JE5UtW59LjGrM49+uVBFPLeLBB9sVUeYm5LVWM6DfVDz3XNaovZ5kvyZMe21C0KL+MWo gFKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MtXzwtsPXMZuGm5S7Wt5QqtWB5p6F/HX65Y8+M45wGE=; b=efKkAPfvpo+w2yUW5cNf/Vvh87DRCzD2sAlhE5GtCHrlJ5+N+nXdqkkrXYGIR3Ff0z sZn4Me3DxMvOhwtmDxRpgWV0rMkYPqSdayn69BYcbdShP9OyJMQm3U80D93+rjHyCYd9 x18z+Klmg7pG0TQeYdXv1PLefkqM8c/2HNzYT+sKqktzo8yJoTJAtKFzgMSF0ozx6fth 4MYcyBADIzRBM2bgwhvOCFT37ab5jhEwgZT67kjFBKeoU2wMqhs3h/cX0Dc+OEHRMHQW vYFQOabPNCiM7yINMpckAmk2IIIcDRap/CC7Q8sskhWfBZoDSy40S6EZvBt2euAkpdGE fZPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p4C6n5EJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n19si985020pjo.31.2019.06.05.22.21.41; Wed, 05 Jun 2019 22:21:58 -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; dkim=pass header.i=@linaro.org header.s=google header.b=p4C6n5EJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726173AbfFFFUd (ORCPT + 99 others); Thu, 6 Jun 2019 01:20:33 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42564 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbfFFFUd (ORCPT ); Thu, 6 Jun 2019 01:20:33 -0400 Received: by mail-wr1-f68.google.com with SMTP id x17so923269wrl.9 for ; Wed, 05 Jun 2019 22:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=MtXzwtsPXMZuGm5S7Wt5QqtWB5p6F/HX65Y8+M45wGE=; b=p4C6n5EJHuI9vL+mnsfJhnxJhd2W6xHIE6RgPzS8Kin29QH0SWW8SrHd+/MkNiNgIx c0Q61roJTynhbgtXMouySryytcLFvX8mD0RvO7tBbZ6zj3O2/T6QqZULHJ9/8HwEun4j 3kbwkoCMb3e8jKORTTf45GJTbW+PxWYrwGogre9RZ1n+1cU+2J+MphYPrJgC1uUrYHSH Zj4k1TnWRYS4wOgNTPOx3GQXY6Fz3oHlq8cAT7DZxUdrUfhnH1hu8MeiOAlLw2dHvSDy Kr20iC+BWnkx1UoaMTkzd5Ebaxo8Ny1nl89ECFnbsbmjOdYtwdGVgWizjSMGmrblF16Z yp0g== 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:content-transfer-encoding :in-reply-to:user-agent; bh=MtXzwtsPXMZuGm5S7Wt5QqtWB5p6F/HX65Y8+M45wGE=; b=SXBN/zMgucp9yjHs9brIucFiN7bUYmkoM5i2Xfu8KqxNir65ZKbTA/+49D/dM5Mu30 Hztz9lHXnvv5Z2gEq4l28k1TZGTa+2cETbKKGmWiORtgJCi0ECaoy9u7RH5ZFtTy8Bs2 U7VbEuDillHCFvqc+3GZ3Y79e4rJnOduy+8gdsyVuiJwpSSOoFQ3pVr6m6qqEW9oO+uk 6IwGjMu6v9BRexh1+7wjp0CqB8nm8lm1Swot5XAcz5db1UiCBurBwXgh+ZkfFBVBVIS4 XRz6wMkQvRysrTtXP+m9kFfni/RdnWBlMppkdfFPXfBAF2YUkQG/4SPhhj5TFuq3jmry dQog== X-Gm-Message-State: APjAAAWvx3l6UH8jTO7/6TPpTjh1KvyFFnlFLN0NoZzg1aNnPMWZysvl xxshnpEa0AjlTn8ZkswtB7YtOA== X-Received: by 2002:a5d:4e50:: with SMTP id r16mr1392999wrt.197.1559798431594; Wed, 05 Jun 2019 22:20:31 -0700 (PDT) Received: from dell ([2.31.167.229]) by smtp.gmail.com with ESMTPSA id k10sm600470wmj.37.2019.06.05.22.20.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Jun 2019 22:20:30 -0700 (PDT) Date: Thu, 6 Jun 2019 06:20:28 +0100 From: Lee Jones To: Jeffrey Hugo Cc: dmitry.torokhov@gmail.com, jikos@kernel.org, benjamin.tissoires@redhat.com, bjorn.andersson@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, agross@kernel.org, david.brown@linaro.org, hdegoede@redhat.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/2] HID: quirks: Refactor ELAN 400 and 401 handling Message-ID: <20190606052028.GY4797@dell> References: <20190423160543.9922-1-jeffrey.l.hugo@gmail.com> <20190423160605.9970-1-jeffrey.l.hugo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190423160605.9970-1-jeffrey.l.hugo@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Apr 2019, Jeffrey Hugo wrote: > There needs to be coordination between hid-quirks and the elan_i2c driver > about which devices are handled by what drivers. Currently, both use > whitelists, which results in valid devices being unhandled by default, > when they should not be rejected by hid-quirks. This is quickly becoming > an issue. > > Since elan_i2c has a maintained whitelist of what devices it will handle, > use that to implement a blacklist in hid-quirks so that only the devices > that need to be handled by elan_i2c get rejected by hid-quirks, and > everything else is handled by default. The downside is the whitelist and > blacklist need to be kept in sync. > > Suggested-by: Benjamin Tissoires > Signed-off-by: Jeffrey Hugo > --- > drivers/hid/hid-quirks.c | 64 ++++++++++++++++++++++++----- > drivers/input/mouse/elan_i2c_core.c | 4 ++ > 2 files changed, 58 insertions(+), 10 deletions(-) Reviewed-by: Lee Jones Tested-by: Lee Jones -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog