Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2705015lqo; Tue, 14 May 2024 07:01:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUU8nNMkV3siVM4gw+NptHyclTP+tX0zIHMoLvCwAK7RV/IF+xxC1myE0nl5ZvCztQjEdX0G9sXW+L5k0HCrjO/Ukp6+vKmdwRj4yg8yA== X-Google-Smtp-Source: AGHT+IGht+g6Vt25hWftc+LqXzuqYEKBYr9rZj68aWPnGC4HENqoOQZhMWAnMGgA57hWFjt9XvcE X-Received: by 2002:a37:ef14:0:b0:790:72ef:50cb with SMTP id af79cd13be357-792c75efc2emr1358537585a.60.1715695303612; Tue, 14 May 2024 07:01:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715695303; cv=pass; d=google.com; s=arc-20160816; b=wI64i1677gRNPI+KdZE4BDXuVodRxJt4fE8uDUMxNWG31p6GbvCUDUizWi0Rb0liwq RO38H1ksX4WfbANviAu7leT6C3abt0zv6s3buLgUZ2W4ssgBdF2pIdf0KLAIH3AAtWGk je7My8ofj+c9aa8El4GtIAugdyaEv7Qzvizc2PQIE7RnK2r0Sx2+78P50bb4Ajcz3Wyr 7/Q49Oaj2pWMHdkBjQ2IVUGTWSvvIMZulnfyq07pKX5uEOSpaKw1N+6jTXnXTIe5pvrp sBlc+dZPMRUgTmkWsMgFw00VDUmSoUrgrOVbVcJJImW/WD65hgw3Nb4tfsgdVV+QpakM Lj3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=1DbleZUcyOeQ+xpwumpPDRNYNQ1wnxSzV1kZWNcVPl0=; fh=R4W2zLyHeJ/hHKqBEXQezWuWBUKXPPl5I/CJAYrcgSs=; b=DDT+1YBguZ47MdEYeI3hMk5Q2g7//1rZHXLA3vM3UNOx5YNbcB21Yh0tYXwnT78wHE LIXihlGwdxuAagK7Rws2rmn5o7ZV6Gafbxn8H4pGlJbaChxWtjxYhRYF+X07+n9bH/s3 zfbis61x6HGxjzaF+7IVHClmyqIVdJ270Wz9nU142dtg3XgH41AQIeQPdVtkrLWmgGB5 mNUgtINjpi5vhJxC9u08vI4bYsKBO26XU0SSeKEkwXSx8k8LBZeJPdjPWM58yNgsHsm7 BSVhc1sWRNAHeIEn14AY3wez9RKyskGy9+ysW0dsakUFJEfzNYslu6OAUWz4DypLyrPR ydGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kaechele.ca header.s=201907 header.b=QUvGf7HF; arc=pass (i=1 spf=pass spfdomain=kaechele.ca dkim=pass dkdomain=kaechele.ca dmarc=pass fromdomain=kaechele.ca); spf=pass (google.com: domain of linux-kernel+bounces-178775-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178775-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kaechele.ca Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-792bf297cc8si1041737985a.218.2024.05.14.07.01.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 07:01:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178775-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=@kaechele.ca header.s=201907 header.b=QUvGf7HF; arc=pass (i=1 spf=pass spfdomain=kaechele.ca dkim=pass dkdomain=kaechele.ca dmarc=pass fromdomain=kaechele.ca); spf=pass (google.com: domain of linux-kernel+bounces-178775-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178775-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kaechele.ca 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 A51A71C2154C for ; Tue, 14 May 2024 14:01:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E99CF144D02; Tue, 14 May 2024 14:01:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=kaechele.ca header.i=@kaechele.ca header.b="QUvGf7HF" Received: from mail.kaechele.ca (mail.kaechele.ca [54.39.219.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15ACE6D1A7; Tue, 14 May 2024 14:01:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.39.219.105 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715695295; cv=none; b=KHRXNE1xyN4lGXjKI206ELUbRp9aWf+6icDQ6VdIZtQ/rkJRr6kB3DUmCCB6vqs3jGKoRxwv0Gh71BgDSMH/O+9sITfO1UPG8SkiPmmPniaE7eW7pG0E55WQEWaLi9vfsKsK+yf66cnEwlLohfJFHXAvZkEOgNaMdpADwi/iZ84= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715695295; c=relaxed/simple; bh=YgSzUyN9lZ6Q/NxD40/+BCSIfvnuzEnChocl9jnMGTQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=b8PSVopjIy6AKmi2Tc/tZaVNE6+otFmefomoHqrORoNwLbgOA7QOyP8bnsnSKv+rb7FJNH/1n53g/3wyMYtba7VxgEZYlbeK/L1TQurj/dGy/uGueQFnqRBQZWdRDReG/0e5zDBWI19XWhTKy6SdnY4wfgKYnh8eNYFQICnGrwk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=kaechele.ca; spf=pass smtp.mailfrom=kaechele.ca; dkim=pass (1024-bit key) header.d=kaechele.ca header.i=@kaechele.ca header.b=QUvGf7HF; arc=none smtp.client-ip=54.39.219.105 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=kaechele.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kaechele.ca Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id F33FAC005F; Tue, 14 May 2024 10:01:53 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kaechele.ca; s=201907; t=1715695316; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=1DbleZUcyOeQ+xpwumpPDRNYNQ1wnxSzV1kZWNcVPl0=; b=QUvGf7HFPDJHo1Q4joPoI5npTTCt2hRNsggtpbakvsSqo1z4JsgMLXwnChNvTTy4caxnRx /t7ClUZt7vbM8ma+CvBLRvUmUOBgYcmQAVUCf8C0iPVgX9XMWdJaRsUwR/tFU9oHi5oMSv br+1tMeaMVogDffiLhITByQJf15/MxA= Message-ID: Date: Tue, 14 May 2024 10:01:19 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 3/5] input: himax_hx83112b: implement MCU register reading To: Mark Brown , Dmitry Torokhov Cc: Job Noorman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240511121245.109644-1-felix@kaechele.ca> <20240511121245.109644-4-felix@kaechele.ca> <44570cd2-9540-47f8-a409-26220b0812fb@sirena.org.uk> Content-Language: en-US, en-CA From: Felix Kaechele In-Reply-To: <44570cd2-9540-47f8-a409-26220b0812fb@sirena.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 On 2024-05-14 05:46, Mark Brown wrote: > On Mon, May 13, 2024 at 04:01:59PM -0700, Dmitry Torokhov wrote: >> On Sat, May 11, 2024 at 08:12:24AM -0400, Felix Kaechele wrote: >>> Implement reading from the MCU in a more universal fashion. This allows >>> properly handling reads of more than 4 bytes using the AHB FIFO >>> implemented in the chip. > >> Mark, do we have anything in regmap to support this better or having a >> wrapper is the best solution here? > > No, I've not seen something that explicitly requires toggling a burst > mode on and off to do a bulk operation. Off the top of my head I'd > suggest just always leaving the burst mode enabled but I assume there's > some downside to doing that. We could add something but I'm not sure if > it's worth it without having seen any other devices with the same need. I can experiment some more with just leaving burst mode enabled. Since the vendor driver invariably enables burst mode before any transaction of more than 4 bytes I'll have to see if burst mode does remain enabled under all circumstances of normal operation. Since I don't have access to the datasheet I cannot know what the intended behaviour and/or downsides are. Due to that I played it safe and mimicked the behaviour of the vendor driver. I'm guessing not having to enable burst mode on every touch event interrupt could also mean an improvement in latency, since we save two write cycles on the bus for each fetching of the event data. Not sure how measurable that would be though. I'm thinking to myself Himax at some point recognized this and that is why we see a dedicated touch event read register on later models in this chip family. Regards, Felix