From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757702Ab1KPRfd (ORCPT ); Wed, 16 Nov 2011 12:35:33 -0500 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:51790 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757435Ab1KPRfb (ORCPT ); Wed, 16 Nov 2011 12:35:31 -0500 Date: Wed, 16 Nov 2011 17:35:29 +0000 From: Mark Brown To: Lars-Peter Clausen Cc: Dimitris Papastamos , Jonathan Cameron , Michael Hennerich , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, device-drivers-devel@blackfin.uclinux.org, drivers@analog.com Subject: Re: [PATCH 4/7] regmap: Try cached read before checking if a hardware read is possible Message-ID: <20111116173529.GC31558@opensource.wolfsonmicro.com> References: <1321457302-8724-1-git-send-email-lars@metafoo.de> <1321457302-8724-4-git-send-email-lars@metafoo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1321457302-8724-4-git-send-email-lars@metafoo.de> X-Cookie: Today is what happened to yesterday. User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 16, 2011 at 04:28:19PM +0100, Lars-Peter Clausen wrote: > For some register format types we do not provide a parse_val so we can not do a > hardware read. But a cached read is still possible, so try to read from the > cache first, before checking whether a hardware read is possible. Otherwise the > cache becomes pretty useless for these register types. Applied, thanks.