Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3677366pxb; Mon, 24 Jan 2022 15:07:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLWTA9EA71fxNcl+zDA/7MNWxtbs+CD9+veMiNWrla3Q6iP12xmjOv7tWcEm+hbuY8op4w X-Received: by 2002:a05:6a00:84d:b0:4c9:df2f:51e2 with SMTP id q13-20020a056a00084d00b004c9df2f51e2mr4664697pfk.49.1643065634838; Mon, 24 Jan 2022 15:07:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643065634; cv=none; d=google.com; s=arc-20160816; b=OymRCn4/F0438NjmEUYbmBOnJ96BimGOtV7SVGvIWwQScygLhUiWQIIuJ7vJr7EuvE 4br2spRd2nSZCrGjLz05/fpUQzn9gjZcfFHx7D7ta026YHZIMUYQe8NpeiMI6P1yFhau Yrisn8HqDoeeKEYQPeBtDcxl/Q1EbdUXFnY+IymBs5uXRHDN5IyoycePtkKmvfrRBgr7 /IZuAK2BN6hdusbqKyCbFP5339mQK/EXUuNI06/Mt1anq4/hPSFwzGcKNzpnPcvf+ep9 4nHzb+P263/V8IY7tWVrlvR239o66DnD3DzTTc7bQntRxIXC8fRHfCvFuwZHh66iELXJ IJxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Bmy6kIVL7aqn8Ntn5u5/RKjO+kcg3bjHPIXPm3AAe+M=; b=q/P/2xHGpQeZdeTmEy5IsE391mlOZz7cGd68IWka99bpIBiJU48bBUJdLndDkyoxOM YrdvW6quWumFJPemfArj/IEhnc0zS3nw5l4iXnrI03X/m9jiJjd8XpJAOBr7cxtwxofa XiUDHsGW8Njm1IIBK5cWs/8ly7Jql/T9Zy5kRdyJ3YE0wq0AP0Dz1QnNfVR+w3E4R2uB ycYNCkAo/8Glt0PG+oTE0cKmei9AinwbMwLlXL4aNfI6QPQ8nvFujdCXeWczLKLxbEFA KgqcscYsZW4YBu8AkRewespLrDGc98LbG3PK1Q8XTAaaKQF5PxQvuozdSohXhNi1Md4O aANQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=jnObaf8y; 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=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o4si12512867pls.567.2022.01.24.15.06.33; Mon, 24 Jan 2022 15:07:14 -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=@collabora.com header.s=mail header.b=jnObaf8y; 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=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1843425AbiAXXD6 (ORCPT + 99 others); Mon, 24 Jan 2022 18:03:58 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:46620 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1578136AbiAXWBq (ORCPT ); Mon, 24 Jan 2022 17:01:46 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: detlev) with ESMTPSA id 00A691F438FC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1643061705; bh=NKf8TvwzU0j7IGKB6x0vL0tnEezd/yNb8Y6+kHqjC5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jnObaf8yIubXRT8EWRCozHf1frnWUj1CvdgrSl+UVhQ0Fws4oJAJlz9/U24/v2C8z UElVzD64if7lhfUNI4TnEQcimOoyvR7h3qLEWEqbgfmdrLIczdPbkgrBN9zP6Pv/K3 1av1cZdI+NN/bjs3ZUbovXOly5dU5eUbWrdXZWuGKobufO0CZLG3/Y/qBAmkugBNyp hfFQG3EDqVrKiASVd/YplS2IHkNYUEO/6BIqRxyKcd+gjXr3DfWLzq1Pvl8uYIRqf9 SYPF1gafP9FCfSAnAMAU7bcYNkg93vPSPpxlVF1I+O3BNK8zPqiUAaFJV+G0GB+65C 3XjM8TU6ZlWoQ== From: Detlev Casanova To: linux-kernel@vger.kernel.org Cc: Dave Stevenson , Liam Girdwood , Mark Brown , Detlev Casanova Subject: [PATCH v3 8/9] regulator/rpi-panel-attiny: Use the regmap cache Date: Mon, 24 Jan 2022 17:01:28 -0500 Message-Id: <20220124220129.158891-9-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124220129.158891-1-detlev.casanova@collabora.com> References: <20220124220129.158891-1-detlev.casanova@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Stevenson The I2C to the Atmel is very fussy, and locks up easily on Pi0-3 particularly on reads. The LCD power status is controlled solely by this driver, so rather than reading it back from the Atmel, use the regmap cache to avoid reading values. Signed-off-by: Dave Stevenson Signed-off-by: Detlev Casanova --- drivers/regulator/rpi-panel-attiny-regulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/rpi-panel-attiny-regulator.c b/drivers/regulator/rpi-panel-attiny-regulator.c index 8090b9a485b5..6e408a4b2c21 100644 --- a/drivers/regulator/rpi-panel-attiny-regulator.c +++ b/drivers/regulator/rpi-panel-attiny-regulator.c @@ -76,7 +76,7 @@ static const struct regmap_config attiny_regmap_config = { .val_bits = 8, .disable_locking = 1, .max_register = REG_WRITE_DATA_L, - .cache_type = REGCACHE_NONE, + .cache_type = REGCACHE_RBTREE, }; static int attiny_set_port_state(struct attiny_lcd *state, int reg, u8 val) -- 2.34.1