Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4715051yba; Wed, 8 May 2019 01:16:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYL35Gg31AHKXBXnLnPl8CdTn5g/qiRbA4iw062pIvfN5XYuaKu1OdsElh4fz/f4R9qjM9 X-Received: by 2002:a63:730f:: with SMTP id o15mr45135002pgc.315.1557303372909; Wed, 08 May 2019 01:16:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557303372; cv=none; d=google.com; s=arc-20160816; b=oky5quSHE0M1ppxDFhqKf8gZH5djNqKSZqTuWN3EHcsQYYL35PD7y0hgKFGwU7WuKn B66yFf6oK++WxbkOHOvgjg5tfR0fEgWG3bEuw/uMaNVuochNI5SCFjJ3wIuG4dWMw3CT tvHvN3j7+U48SBDJvtI3c2KfpyrSvoiqRZCZp7s5+5dY7yh9lvGrdUE9fj1pvliDATup MsV4V5H2/YUvvrWzHOTAd+jcteIm9eLxd1SD0be9rqMgWjZ20uMG30Ia1yO2/7inDN9b Ribqw0uzrNqk/9sg2+sANo5u+AumibwlnWGlVwPeo6Wp4/iiyA1+ird+msuBB6kAETTp ZRAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=pkLrRM8WwERKArH5Dv/+tMtKVp5mCK9iWIXDavXWmDQ=; b=dbrwSSLG6BSE4mUVsJ+lzLiYfyGmiy2q4Z81OdMT+pY6YdBVUDgNywRpTduEE2mFts lPD8fvQunOoZlakVYb/XSNrEkGw2R/Uu6DSVC7LYm07XjiEIXRYTHT0cXRQWL2SLZlBb Z+YvSVMuMQbznLPS/7o4/SsVwnTiWoX9tggh1rzvW8uHVXWMrcP8UjFU2WCiDEnRhz6L uLoyo6/Kh+Ysgf8GJjY7Y+YBiozcBioLqa/AWXf5wm8dB3D+77L3/86ULxWjmY7kyPFO NbZbcNvazUI0zKJaKljz4coiJXi4jpaM0o8v4CeNXdyiHY6U/j3e86AguyL8BtJqLbpf IGHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=hE7eLT+9; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c15si13750220pgg.357.2019.05.08.01.15.56; Wed, 08 May 2019 01:16:12 -0700 (PDT) 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=@sirena.org.uk header.s=20170815-heliosphere header.b=hE7eLT+9; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726972AbfEHINW (ORCPT + 99 others); Wed, 8 May 2019 04:13:22 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:48244 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbfEHINW (ORCPT ); Wed, 8 May 2019 04:13:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=pkLrRM8WwERKArH5Dv/+tMtKVp5mCK9iWIXDavXWmDQ=; b=hE7eLT+9OnW9jXDsqOAzlbnaq UxB75RtNBP5JXBawrzP51jpflo7rSj2vVrhYlBF3OQZVoQ3UulYCHI/qAgA0TEaF0dvLk+AAMZKr9 WICI1mezyowfhM6Bwwaj6my6T8djibMVhareRgZ1LKmY45IvORgSOt4fj9n2ZLBSoUBWc=; Received: from [61.199.190.11] (helo=finisterre.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hOHh1-0007RG-IF; Wed, 08 May 2019 08:12:48 +0000 Received: by finisterre.sirena.org.uk (Postfix, from userid 1000) id 6ECD7440034; Wed, 8 May 2019 09:12:40 +0100 (BST) Date: Wed, 8 May 2019 17:12:40 +0900 From: Mark Brown To: "S.j. Wang" Cc: "brian.austin@cirrus.com" , "Paul.Handrigan@cirrus.com" , "lgirdwood@gmail.com" , "perex@perex.cz" , "tiwai@suse.com" , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] ASoC: cs42xx8: Add reset gpio handling Message-ID: <20190508081240.GA14916@sirena.org.uk> References: <1556534756-15630-1-git-send-email-shengjiu.wang@nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="H6fQM4Loq/u8aogQ" Content-Disposition: inline In-Reply-To: <1556534756-15630-1-git-send-email-shengjiu.wang@nxp.com> X-Cookie: -- I have seen the FUN -- User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --H6fQM4Loq/u8aogQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 29, 2019 at 10:46:03AM +0000, S.j. Wang wrote: > + cs42xx8->gpio_reset =3D of_get_named_gpio(dev->of_node, "gpio-reset", 0= ); > + if (gpio_is_valid(cs42xx8->gpio_reset)) { > + ret =3D devm_gpio_request_one(dev, cs42xx8->gpio_reset, > + GPIOF_OUT_INIT_LOW, "cs42xx8 reset"); You should just be able to request the GPIO by name without going through of_get_named_gpio() using devm_gpio_get(). > @@ -559,6 +577,7 @@ static int cs42xx8_runtime_resume(struct device *dev) > =20 > regcache_cache_only(cs42xx8->regmap, false); > =20 > + regcache_mark_dirty(cs42xx8->regmap); > ret =3D regcache_sync(cs42xx8->regmap); > if (ret) { > dev_err(dev, "failed to sync regmap: %d\n", ret); This looks like an unrelated bugfix. --H6fQM4Loq/u8aogQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlzSj3cACgkQJNaLcl1U h9DXlAf+NZvbXIKXu1i3ZnsLWQy9duLtWvd5Tqm52AG4yzPuCM4MW7+jUxPLDQz/ TX/C3cXHNDXdERXQbOBIUli6xRFu/4Nom56dXbLPbWiA77RNwAC5LuX+BEJJc5xa mEUtDpoXFU3/+V5y9iSYRTwWW0JVq06LI/lFfhC0DfB8aHVzBJAVzWGMMt4uh1fA IZxiKXGNU53fqM9SMtb1FJ8t5lZHwqRK1Ra/2fe0yivHq3+m71ZQXkCfy5DYDlnX m3iew6+A0bDr+z0cdJmA8jgIAGyy6Po/+iYIASerYPGH3kJoFMytubH+fB+uVieP QZCtbRlG+JJtBuBBHjivJk2UQvyWlQ== =nWb3 -----END PGP SIGNATURE----- --H6fQM4Loq/u8aogQ--