Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp356480lqo; Wed, 8 May 2024 01:41:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXVOFtMy6QjPdn1VwDGqVzAlvw8X7pkMh4o8BSU+MJmZdTu/MiUJ+SXCGUvi3pA6vy6dIeAtyqqLLA2C9c9/z9MFyWEoM9VCNN1YJ6fOA== X-Google-Smtp-Source: AGHT+IGrRX3DcT8r7M9SvZEsbruZP6WvZnHQbRxGU/LYtVsAT8nu+5oBDabvS/pdyr5bpk6jVPsO X-Received: by 2002:a05:620a:5706:b0:792:aac4:f1fd with SMTP id af79cd13be357-792b27ccc94mr182130985a.19.1715157693977; Wed, 08 May 2024 01:41:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715157693; cv=pass; d=google.com; s=arc-20160816; b=QW+7yNEueevI0r6esRR+SFmGpQ5phbgpnru8Qp7KdeiVuF5wVZfYK+lr9lujf9I8Wn p9tJTRN/+IPgIgINdGvuo7Md2v+DxvH1Oa5MuhZT0NGejNy13m+uRqDpd8CUSwU7VoZU NH8vdJO9GgiKMSontaPpmNoHki/Ftld0IVYRo5rUhAoKInQ7+0HkTAOMfa2zd1Tobx3n akju1/lnro96KNygZ4to/MkyRK0XIeOc7WdxQVt8JBEaRV+SwO8Ojmwq689mmns2etnJ bFX0f6TOLg7GNcSQKxplf5h+CFMDKBpbvkI8AIGPvnxPWDG0MW3SexobAjf66EDDzU1Q 7Pcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=J+PQfd29qCEkIFqLYMfOqB2KUwrBfTwfwKZYBhSKYzc=; fh=fjW1o3Xjg1gI3g0fY6bZXTf1eFUR37qOv/oveR7awhY=; b=awgcBQX5I02NfzLuX5i/b7AMcLnTo6ORnA5pVaM5ms2UkMKkhl/WvpzC8IRcDqtNiL s1WYYNLYXUdHrASgVI3nP8ItI+gfxMQ7eL/HlpAiPedsGY8PV09GAssdlZJ9HpGOMtJu 8JqG9QshVn8Grsg0TfjU1ZNZ5iI7rNP1h1Ux4r3AdKTYhJMLc5T9ylQvsdleuKtDGo2T XlIh5jvDiAQgqxs3P+XKrh0A+06lR6IFjMBMwv68uoYtNeAZqC5CDIAyERzPb5sV6+eR 36Up4x+jiuMZtEPBZl0t6rFYRqmKbumI+LGWJE8fudPAGcEZRnRyePnuvoVDF++27VEQ n7Ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ndCYK31U; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-172932-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172932-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a9-20020a05620a438900b00790eef5afd3si14039758qkp.689.2024.05.08.01.41.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 01:41:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172932-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ndCYK31U; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-172932-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172932-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AFA1F1C2351F for ; Wed, 8 May 2024 08:41:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 445C274BE1; Wed, 8 May 2024 08:39:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ndCYK31U" Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23EDF535DD; Wed, 8 May 2024 08:39:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715157595; cv=none; b=A3A022oMRm2KrJ2RAN3DyC/jFMgpjZb+xPU6BPOUeuqp8uteAe4+wokV6+Xmvp8tpebQNkVirUwxNuVR/v74lA+M9rYBvmZgQ2V6YTqT0qZSqttLrdYIIdeVl241l0CaIrEzzEnMBvWorWcVeWoa6gV6gA1+BQC71DBVfPnQaCs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715157595; c=relaxed/simple; bh=J+PQfd29qCEkIFqLYMfOqB2KUwrBfTwfwKZYBhSKYzc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=S5yCoQedA8YtjtHqLkj2q5dlFV5wTUl/no3j+bAlrh8f0oZgZ3G1vVcuVjhUSufTnkCYUuHDOnhcw0mU7sVoWPEpT82hks/Gpw6NkZhm/08MxpGI9hOXpzv3YXB4QACrqW/dlncY7Ta/GfutrGvE6i28ZU7HGb8dZlaP0jo+tYY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ndCYK31U; arc=none smtp.client-ip=209.85.160.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-f174.google.com with SMTP id d75a77b69052e-43dda802bb3so246991cf.0; Wed, 08 May 2024 01:39:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715157593; x=1715762393; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=J+PQfd29qCEkIFqLYMfOqB2KUwrBfTwfwKZYBhSKYzc=; b=ndCYK31UOffe5aitstDpIoOp5urizJCGFMLMvQv0nxuHWZOaMHOViAM+wvatEjIsNc TUzgVHU9eXf3UG1IGcvi7RN//ee4iEoQB7g2ECWRQUrULWqv1MLabF39MsAVwh9tKB+F 3lnyteN7OZbzfh0qadMfDeDOl7JRpiPcp2tqusRaOzEoMgfYjzv++XRmgtsH+GrSvM4E W/Y2eKozKKvgZ24TfJpn+jo4rW9Q/HZjF/OK/AJXvdprKKw0bAZHO4nS0vCNkRKlJgJt SFJD4prW8SSEc94Mz27q6Zmb3XHqOsye+GmT+YWY1bdyGSB8o9cUkbe4+d6YiyMR4sk4 /PQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715157593; x=1715762393; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=J+PQfd29qCEkIFqLYMfOqB2KUwrBfTwfwKZYBhSKYzc=; b=rQbI1UAGI1cC6BUQE+vPOYE3V85frxxwE5T9177lH5275jVHZncOuwwshlbFe95XNo zlDLUHbWDpRIyn3MRu9h7DyomvloOijwaOBC/H4Ifn+jg1feCaDW476RUcA6gKtm34Lw ede4JAsrcLgUF56U8TLzwWkj0yZAgE7RIFxD6WKZ2JBBNGm+aycyf30XWokV+HFAumZl fvgc9ZvMGRWOlf5FoaaVjwZFKpnZonrIOVzWX2YjKIcTyrAPyFB0l4urev3SeUK2zQ0J syMFLI2GNYZvYx9Aq8+zkUaiG+B8IsYqveR5fMVPpaIcGglClTtKIUS81RTYL+wAWxPF MR8g== X-Forwarded-Encrypted: i=1; AJvYcCXDMX0H8O/z+pGKzwiDLM1u/w0p3VcvoChAGnwGgpwu0txtVt5eZMHPXggljwqiwbzH+CBOqGb9v/4Dts/rfNVouj/D05KLXfK8YZa0Loxay8r74jtOtL4J9tbqNzobiLyE3Y95eZMIDbM= X-Gm-Message-State: AOJu0YzZMx2Xq1CumzdAC2x3I0XMth9qsP6+oW2kIRAfHV/pCnxdeyV4 JDDl8TF0LdB8a8W/6cfubprRggz9bcisQ9OkIhjq2gYobrcnIDlpsqulz2G/pOBAfawTRoIIj3m 0bCD8KlEZVlwssHZyjkeciAtzjJc= X-Received: by 2002:a05:6214:2aac:b0:699:4d3:98dc with SMTP id 6a1803df08f44-6a151418127mr23321276d6.0.1715157593085; Wed, 08 May 2024 01:39:53 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240506114752.47204-1-charles.goodix@gmail.com> <6362e889-7df2-4c61-8ad5-bfe199e451ec@redhat.com> In-Reply-To: From: Richard Hughes Date: Wed, 8 May 2024 09:39:41 +0100 Message-ID: Subject: Re: [PATCH] Input: goodix-berlin - Add sysfs interface for reading and writing touch IC registers To: Mark Brown Cc: Dmitry Torokhov , Jeff LaBundy , Hans de Goede , Charles Wang , hadess@hadess.net, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, neil.armstrong@linaro.org Content-Type: text/plain; charset="UTF-8" On Wed, 8 May 2024 at 03:37, Mark Brown wrote: > The other model I've seen used BTW is to expose a MTD device, if the > device actually looks like a MTD device (perhaps even is just a flash > that's fairly directly exposed) that minimises the kernel code quite > well. If it helps, fwupd already uses mtd for other devices too, although at the moment we're using it only for system firmware -- e.g. intel-spi style. The MTD subsystem doesn't give fwupd much info about the {removable} device itself, and that can pose a problem unless you start using heuristics about the parent device to match firmware to the mtd device. Richard.