Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2254608imj; Sun, 10 Feb 2019 22:50:37 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibp9yIFj3w7AkepnqxrfPM31Riq03+biI8sBtTHRVKiasMJbG9ytpSUoUINtLRPJD7SsQx8 X-Received: by 2002:a62:3541:: with SMTP id c62mr35186226pfa.19.1549867837602; Sun, 10 Feb 2019 22:50:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549867837; cv=none; d=google.com; s=arc-20160816; b=T3LY6y1AamRm8/X5P32zxqJz9WGiGGT66qx5NQhKqWM+kCQhIik0mOXzsDbnQ6tZjx VzylwJ+A8+HQPS/TMjRjy1AGtgzdfiYhQCm16Tj552nJ3GY4MHfGvZlCpTIXF7FEPlUD 9OvXmKWxrLZoMgfKe8jyKJQuzs+6htBbV3+URfU2w5nOXILmcaj2pVi8sed4kZ9F71r9 zdfAjIp+EEX8Wp5tLXG8/eDICf4snZ2F4q5ABV28ILiZCqtTFicz3l4T5YMKg2er4UGs wuNlM+SD9T2/4imRp6/4ns9UH9bKSFM/pT5HwOqQt0wy/jVqp8CizNaxNsh442/Mf4JR GYqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=TIZQT3bwdAXw37qkVf0LlRxUXbQzzIx23lY3MwciOJQ=; b=cGzyQPCS3qn3TB1aUVjFAGIWlb6U7e5GytGzhYQMgqKqS/GOJMyWmSL22UFke4KO/6 zLj2FgBRu8YV/BBQMj9EHdQJwVHJEbpO0BV9V7GiQ0yD9eU4ZSTAsQMsGdWmmyXp4tAg QcV0EC7byKVET9leBRPVtwBfO5VAFR5Ls4IeQ1JVMWce2/n0b80NI2Y9PEOBsvgW3yVl GNcb0Ggw3iSM8PBl/7UCuJNWlr7F60muWKak/1yJkKTbDZDi9kw1SxYwP1Si4CTgU+GE Wg4oce1IbFd/BC1N56goKCOeHPDs1zpmpGrxtmclDIcICpsX7Bl9uWLpyKUKjAt2LXoC PX7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@birdec.tech header.s=default header.b=A9cImrBL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si9283356pga.328.2019.02.10.22.50.21; Sun, 10 Feb 2019 22:50:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@birdec.tech header.s=default header.b=A9cImrBL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726041AbfBKGuN (ORCPT + 99 others); Mon, 11 Feb 2019 01:50:13 -0500 Received: from host.euro-space.net ([87.117.239.2]:33543 "EHLO host.euro-space.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725931AbfBKGuN (ORCPT ); Mon, 11 Feb 2019 01:50:13 -0500 X-Greylist: delayed 2638 seconds by postgrey-1.27 at vger.kernel.org; Mon, 11 Feb 2019 01:50:12 EST DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=birdec.tech ; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TIZQT3bwdAXw37qkVf0LlRxUXbQzzIx23lY3MwciOJQ=; b=A9cImrBL7muVl+cOQxt7jwcmBN ekM6IiyYB5Zh7bekQ/2uCUovQmIraHkJtmt21stfyrS7PvahDz5AJfjozLHDxoQfE/Pd99OSX7Uya RZy/IBCJKrrkGbfMKdIfuSRPKYHm0jkOJJtW34DpeBK8PJLX6QyYmZ0zGrDn+PuA6L0MlansnLy7q axmr4kt4EG1dqCBJFNseeJGMp+yPiya8OukqeB1LRo4Ryqxe3NWHNVe4R1zbEhWIXZPfBud3NmhSh CX+GDtRSthziaYEQVmVFlZNk0IHYMo2bPPLnGXe/wjAzY1JWUfaJL3UEVfZeSiyQyumA+JKvwJcsj 50nt/Eng==; Received: from x4d03a3f8.dyn.telefonica.de ([77.3.163.248]:51990 helo=gentoo0.localdomain) by host.euro-space.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gt4jN-0005JU-46; Mon, 11 Feb 2019 06:06:13 +0000 From: Kirill Marinushkin To: Mark Brown Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Kirill Marinushkin Subject: [PATCH 1/2] ASoC: pcm3060: Add soft reset on probe Date: Mon, 11 Feb 2019 07:08:38 +0100 Message-Id: <20190211060839.21417-1-kmarinushkin@birdec.tech> X-Mailer: git-send-email 2.13.6 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.euro-space.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - birdec.tech X-Get-Message-Sender-Via: host.euro-space.net: authenticated_id: kmarinushkin@birdec.tech X-Authenticated-Sender: host.euro-space.net: kmarinushkin@birdec.tech X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Softly reset registers values on module probe Signed-off-by: Kirill Marinushkin --- sound/soc/codecs/pcm3060.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sound/soc/codecs/pcm3060.c b/sound/soc/codecs/pcm3060.c index 6714aa8d9026..543cb86fd764 100644 --- a/sound/soc/codecs/pcm3060.c +++ b/sound/soc/codecs/pcm3060.c @@ -287,6 +287,14 @@ int pcm3060_probe(struct device *dev) int rc; struct pcm3060_priv *priv = dev_get_drvdata(dev); + /* soft reset */ + rc = regmap_update_bits(priv->regmap, PCM3060_REG64, + PCM3060_REG_MRST, 0); + if (rc) { + dev_err(dev, "failed to reset component, rc=%d\n", rc); + return rc; + } + if (dev->of_node) pcm3060_parse_dt(dev->of_node, priv); -- 2.13.6