From patchwork Thu May 20 09:20:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 443192 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp2134292jac; Thu, 20 May 2021 03:01:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBtRNtIJt98Xqj7lPVr3pm6eqhfmTUzWZDq4zdnizxMt2dPfhcTcYUxWPEDt7wwhPSF12n X-Received: by 2002:a92:4b08:: with SMTP id m8mr4135943ilg.183.1621504874229; Thu, 20 May 2021 03:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621504874; cv=none; d=google.com; s=arc-20160816; b=DxexcAwDhkGvUtN/EzW/u2A/uiMNB2R4Ezo6W2xBV7d2DKADF5dq38xaSanlWg61Pa eTOz11SEwYqDrMcU0xXX5ygCWl2VHGBN+X05XQWPzgnqefs1xsBQis3TmWbm9fhfE3H5 MdxMMLccpJwGj146zS1bf6X7ngP9CiKmbJbib/JgGfdeqUP9vTorWvHL8nSi/Gk1fTKL x8Ok80/iQHiqYENaiNwIb8fr/UUWKqZBR9/KG2/3v5j+Wk0/Q+Ur6d8yvIsxuq0Qun1O cm7ZvTZYpdiF1mP37/lMdmtwyC9Eu9B+j3CxE1Pk/VsidNmc8jmks+hDqfGiWFlieff9 ujvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Tt8GLEsmigZdRBQNRQwCR5YNquxXoFoH5Jsz154i5aY=; b=fXi8JlI8aX/aEshFtwpaSEbEpdPvVFy6SakM6hVfN8atj6E/t/mrX7uRa4+WX/AegJ lojEQ4pGj1O/41A2/wbD04hJ4s8C0dl9n8x/Zf6RBTtZqV0HoBBxwmAH/8NXRhxYU7zS bVEwOWKnTJZ3W4gMU3LewiuuRnSXE6F10fuiYtmK3FcvHNLG0v/KTb/+pX0DDKR78WRM TK7RimwDNn3P2o3R+/+yy6HWMahsKiGEYKhdj3XdYIdqWcEPvz53JH4a5QwBKBB62vYD hy+A05tg+rBTV3ExQoI3d2g+7vorpEiQAOt4yNRIgTMNDl5/uDtUgA3J/f2WFiPB/vcO 8Yxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JGAaP+bX; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b12si1709878iob.37.2021.05.20.03.01.14; Thu, 20 May 2021 03:01:14 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JGAaP+bX; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235140AbhETKC0 (ORCPT + 12 others); Thu, 20 May 2021 06:02:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:60394 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234492AbhETKAY (ORCPT ); Thu, 20 May 2021 06:00:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EF478613CB; Thu, 20 May 2021 09:39:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503546; bh=03+9eMx7MuugkvL3VbqTibyPzQJwSWfXjP0G3pkTcpw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JGAaP+bXQ8BAhEvnrdJKka+ZBoAHTmn5p4DGRDAq9U66weMRvQ6I9YmMDi3f3yxjv g/ULkER6VlquWDxKh1oxs0vHqRG7x0EwtViqc7mw09Va3mU5pHvA7VvItQ4RhA+hnd SqEnd4c84PZRV+nUCF7kzz6dU2pWD0Kki681+y7g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shengjiu Wang , Mark Brown , Sasha Levin Subject: [PATCH 4.19 271/425] ASoC: ak5558: correct reset polarity Date: Thu, 20 May 2021 11:20:40 +0200 Message-Id: <20210520092140.347388850@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Shengjiu Wang [ Upstream commit 0b93bbc977af55fd10687f2c96c807cba95cb927 ] Reset (aka power off) happens when the reset gpio is made active. The reset gpio is GPIO_ACTIVE_LOW Fixes: 920884777480 ("ASoC: ak5558: Add support for AK5558 ADC driver") Signed-off-by: Shengjiu Wang Link: https://lore.kernel.org/r/1618382024-31725-1-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/ak5558.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.30.2 diff --git a/sound/soc/codecs/ak5558.c b/sound/soc/codecs/ak5558.c index 73c418517f8d..dda165b14222 100644 --- a/sound/soc/codecs/ak5558.c +++ b/sound/soc/codecs/ak5558.c @@ -271,7 +271,7 @@ static void ak5558_power_off(struct ak5558_priv *ak5558) if (!ak5558->reset_gpiod) return; - gpiod_set_value_cansleep(ak5558->reset_gpiod, 0); + gpiod_set_value_cansleep(ak5558->reset_gpiod, 1); usleep_range(1000, 2000); } @@ -280,7 +280,7 @@ static void ak5558_power_on(struct ak5558_priv *ak5558) if (!ak5558->reset_gpiod) return; - gpiod_set_value_cansleep(ak5558->reset_gpiod, 1); + gpiod_set_value_cansleep(ak5558->reset_gpiod, 0); usleep_range(1000, 2000); }