From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Keepax Subject: Re: ASoC: PATCH: wm8731 - reinitialize regmap cache after hardware reset Date: Tue, 2 Jun 2015 12:55:43 +0100 Message-ID: <20150602115543.GF3449@opensource.wolfsonmicro.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from opensource.wolfsonmicro.com (opensource.wolfsonmicro.com [80.75.67.52]) by alsa0.perex.cz (Postfix) with ESMTP id 1C90326506E for ; Tue, 2 Jun 2015 13:55:45 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Sergey Kiselev Cc: Liam Girdwood , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Thu, May 28, 2015 at 09:34:09AM -0700, Sergey Kiselev wrote: > Hi, > > I am working on a machine driver that uses wm8731 codec and I've > noticed that it will not work after rmmod/modprobe of that machine > driver. The issue is that wm8731_probe() resets the hardware, but it > doesn't reinitialize the regmap cache to the default values. > > The patch below fixes this issue. > > I also skimmed through other codecs, and some of them might have > similar issue (wm8510.c, wm8711.c, wm8750.c, wm8753.c, wm8940.c, > wm8960.c, wm8971.c, wm8974.c, wm8988.c, wm8990.c) > > Another way to avoid this issue might be resetting the codec in the > *_spi_probe()/*_i2c_probe(), so that it only gets reset once when > codec is loading. > > Thanks in advance for any comments/suggestions on the patch. > > Thanks, > Sergey > > Signed-off-by: Sergey Kiselev > In addition to the comments from Mark and Liam, if you could CC patches@opensource.wolfsonmicro.com when submitting patches to the Wolfson stuff, ensures we will see them going through, it is easy to miss stuff on the generic lists. Thanks, Charles