Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp951775lqb; Wed, 29 May 2024 16:16:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKRMWNvCG+284gMGW0uoHzfuwpqfMkJlhZiz9V7zcC+AV5e/O+G0SKx6SPYvn6cT571Wspji23o2zgsiHzYVIQahBNE6UmgQsR5x026A== X-Google-Smtp-Source: AGHT+IEhU9im+zEO3mnTZ4u/mo2dU40TOZ7UMGGKA5QqezfEEh0AyeVK775JsJCen686E4ptDN22 X-Received: by 2002:a05:6a21:789e:b0:1ad:7e66:659a with SMTP id adf61e73a8af0-1b2645bf099mr549266637.15.1717024603867; Wed, 29 May 2024 16:16:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717024603; cv=pass; d=google.com; s=arc-20160816; b=iChnz0xAALk4jhCOH90BvGFza+mEMMHc67el3HHWJHF2jnM9urL4uI3xC1WNrRLvgR pvv44XnbOhtgqrQ/DTeaEjrydw7Gj5fnWY7ZuFlF1PzSX5bpcbykiRf6Zd6ewJ1KX5Dp jcFI1xlTH/KGN5hxihFbEqYC6mSLSO4ed6vQcexuEGDuR6DddmiKKyCiiCaI7ErC7QKf fpfYHh5Xd97McDAvoM5b/gqihTx/JRmZQwMSWZWlZGjsitjOzvsEc2xZk/uPpVQjd1bf ZXfl73QlL7OtcFuKYIFUT1yVONw0TiZG4yHfdHY5FDPz8dKb+9Y8eLh1moBfm5rc+LRO EwJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=PDLpjtD8+3OyvFRYxZd0ZhadxMjnIfuZmLlbltpqaZ4=; fh=R4W2zLyHeJ/hHKqBEXQezWuWBUKXPPl5I/CJAYrcgSs=; b=Y8MifmqyHqFYbB0VmJTkhOd86E8G4T+uYWq+P3xi/aLYj6NCN4GhgEmNYpEh2ID5z1 6agDie8TdIAHhfP11P2cBge+I/9qeWm135/a9n0a3ymb2RPkqE3xZZ68lZF5g1tNECaI AEMUQ1DFyHkQxcK4LQS7BmtLIbdRb9/aYnPqEfe3SpFOaWxwG4M7WH1m3nCn5/5Gv2j1 6rxaSXKcSmesXRGx9yYqPSUhW8LKT99e1Rt0+RISBt+HpakZ67dbXd8VoQQuvv1HGkJw TvLPttcuLhEn0rR0oPf5X9G/odoP6uq0HLb2IlS3/Nt1nZrOwLOJz4KSk4qcsngyY+n8 d8QA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kaechele.ca header.s=201907 header.b=dA3Qf+Bx; 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-194781-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194781-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kaechele.ca Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-68221b757ecsi1038706a12.61.2024.05.29.16.16.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 16:16:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194781-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kaechele.ca header.s=201907 header.b=dA3Qf+Bx; 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-194781-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194781-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7C86A284AA0 for ; Wed, 29 May 2024 23:16:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9B2E167DB4; Wed, 29 May 2024 23:16:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=kaechele.ca header.i=@kaechele.ca header.b="dA3Qf+Bx" 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 48B3928F3; Wed, 29 May 2024 23:16:13 +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=1717024577; cv=none; b=qAvNgY6AJQ4mtRUfFQnCRzYrAf2d6h4ZTjYoIpf/bPkvG8/d+jKXFWMrAWxP72vfO+3f2ZlNFeT7dJ0TfORTk0fBgfDP7SctehonbvYbtoiutdKY7AIS7PrFodqs8+iAI1LWvvbRN9sqEaWW4P+I0AcE1y5WvPSoiPWEXsafvz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717024577; c=relaxed/simple; bh=0mxyy6nmrKWMs62jGYfJK+jI1mtrNo02vUVORzUuSmM=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=NF4N7R3+c5UT1/2kBDsq5oYU0g/1Ztrpri+1VnbjKdhy5bOjSrzY60VGa59btLs4OMZUlilw4HUlVD4l3jUIGRnPnoutJfbTrp4H14bjZFxvBY5L0lNvtNeuPrM3+23LzZB0s9kXdKOsuZ1OvkCfZ5xC4/s41+5upVTQo0EocgY= 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=dA3Qf+Bx; 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 89CD9C005F; Wed, 29 May 2024 19:08:26 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kaechele.ca; s=201907; t=1717024109; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=PDLpjtD8+3OyvFRYxZd0ZhadxMjnIfuZmLlbltpqaZ4=; b=dA3Qf+BxPAIQ7NCoICy7S3OpYAGFkO3PKWXmv7LQ/YiG5E4Uim1T12jk0pqy3ACnzqhXUL gpjQl8704UWBpWOD3J19fZeuEHSUSEapfZwLi2HVq3Mtbq2uwEK7RuVekibABdryz6MLGL oOLl+hux41Zz5Vc3h5rFyZi+N7mntDc= Message-ID: Date: Wed, 29 May 2024 19:07:23 -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 From: Felix Kaechele 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 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 On 2024-05-14 10:01, Felix Kaechele wrote: > 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. I've done some testing now and can confirm that, unfortunately, not enabling burst mode for every read of the FIFO register results in unreliable touchscreen operation. For testing purposes I only enabled burst mode once at both probe and resume. The touchscreen will stop working both randomly in normal operation and reproducibly after returning from screen blanking. My wild guess is that DSI commands (e.g. for re-initializing the panel) alter the state of the IC such that the burst mode on the I2C interface ends up disabled again. That means the bus read function from this current v2 series could be used as-is. I have a v3 in the pipeline to address the comments Conor made on another patch in the series. So far those are the only changes compared to this v2. If you have any other ideas for what I could test in regards to this, please let me know. Otherwise I'll be sending v3 in the next few days. Regards, Felix