From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754056AbcHRJm7 (ORCPT ); Thu, 18 Aug 2016 05:42:59 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:33466 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1945955AbcHRJmy (ORCPT ); Thu, 18 Aug 2016 05:42:54 -0400 Date: Thu, 18 Aug 2016 10:42:30 +0100 From: Mark Brown To: Elaine Zhang Cc: huangtao@rock-chips.com, zyw@rock-chips.com, xxx@rock-chips.com, jay.xu@rock-chips.com, linux-kernel@vger.kernel.org Message-ID: <20160818094230.GN9347@sirena.org.uk> References: <1471510915-24838-1-git-send-email-zhangqing@rock-chips.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="T2TLPR1GNug0LD4g" Content-Disposition: inline In-Reply-To: <1471510915-24838-1-git-send-email-zhangqing@rock-chips.com> X-Cookie: I can't drive 55. User-Agent: Mutt/1.6.0 (2016-04-01) X-SA-Exim-Connect-IP: 2a01:348:6:8808:fab::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH 0/0] regmap: drop cache if the bus transfer error X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: No (on mezzanine.sirena.org.uk); Unknown failure Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --T2TLPR1GNug0LD4g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 18, 2016 at 05:01:54PM +0800, Elaine Zhang wrote: > regmap_write > ->_regmap_raw_write > -->regcache_write first and than use map->bus->write to wirte i2c or = spi > But if the i2c or spi transfer failed, But the cache is updated, So i= f I use > regmap_read will get the cache data which is not the real register va= lue. Please don't send cover letters for single patches, if there is anything that needs saying put it in the changelog of the patch or after the --- if it's administrative stuff. This reduces mail volume and ensures that=20 any important information is recorded in the changelog rather than being lost.=20 --T2TLPR1GNug0LD4g Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXtYMFAAoJECTWi3JdVIfQdhYH+gLYgdfP13OhRGpc0OQEtzKs HD9W+Iu0uUh+NIw9za8Nsjs7Mvug0eDxeLd4OYVAwp7bNkJyBWVTDHhGf9v7QMzf rwptorpvqpI37cPjfCxhjmPo9C5FPfH5LdN6N0ykv4oiOi8jRFEattENnT+q6vhX WU1wLIT5DHJFt5Jkoc+PLeHTayrmvwn6EuDNtIZWSDbFw/KnPVohilW9SgsKw/Q9 GqVUf5WA7gDLL6Jm04mfGh5xeYnVD8wYEXXOfS0SaKfwMwhyRh2fg8zbX1bdlai5 qfzATUCXYfDG3x7tgyzrhDLjzHHx5QgA8cyaFLoZH8s0+JtmwKnFW3M+seOIIjI= =dYKy -----END PGP SIGNATURE----- --T2TLPR1GNug0LD4g--