Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4635405pxj; Wed, 12 May 2021 09:43:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxA3cj0nkc7572jfAVgPhJLvQ4rsSJrtjuT7rC2T7ju8p9M3zpzmeUW+3h16X4RZ8bEQHQJ X-Received: by 2002:a2e:9acf:: with SMTP id p15mr9204986ljj.337.1620837835582; Wed, 12 May 2021 09:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620837835; cv=none; d=google.com; s=arc-20160816; b=K8k+GgMb7KFacOp2c/CkgL6P2REsWVM1MxCMUVQK3m9nfEx0rGJAqG9f+4/1JMUFpD 67QUZ+Tf0beAG+5o8oX/CP1uoTDprackr9McKGRLgUA+Mdn5/ECe66s/8wf4G3P747Lo cllBl8793aXAiBfZtRqAL1y4qhJZMd0ofCkYXso9da07xdODkCp+NfLdfABbuSDpeWoR essJl4SYZq9TOLZ2Lt0xAmj6fbMlpCMQE3ruh/liFXUBUT1pEnBDYdnGx0XMpS8hdr1U Hn1fc3oKnY3MV/3lJtgRXR2WiQcf4iy2PqIY7fPQrVAs/DdWFcaDYWu16njTk7xYe++O gMrw== 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=5Ut4KJVaKQ2FQVqxnb6Kv6rU/HYrw0mtU4lFaLYPwr4=; b=CthW3JKY0uCzgRoBuAV/Fr7bVI0rA8AsLPa52EDFsPycAt+N/6kaibwxztlddtafb7 B5bqoX4uc1K2NYlDNnao8iJeBSCiiyd3FXarhGvmUJtBqX/ltL/6g67yrD77C3rK9gXP RlPKC7uhovhhAicPu5RRO30UUu351UvD+35Zvf790qh0rOsHFYCoIiw6VZU2hl2v7o4m rRrUDGSv4z/U09LTd3tUqDvFmwwWWn5Ygdzj8uWDeB+Ofp+tHlXfujz4QiAkzpffM04w 5SRteNFH5Z8yWiT6aSbFfT4gdCd7CD2ODBq3siv1WkDdhEtd1+rZw0IolSrWkOS+gwsc wHNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Vz26UzlX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 u18si321826lju.242.2021.05.12.09.43.25; Wed, 12 May 2021 09:43:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=Vz26UzlX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S242504AbhELQe5 (ORCPT + 99 others); Wed, 12 May 2021 12:34:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:41370 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233629AbhELPnA (ORCPT ); Wed, 12 May 2021 11:43:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2A069611AD; Wed, 12 May 2021 15:22:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832932; bh=mziV3u7iRHMD1USzQx3wGZmMRtT/RfJGFzlXuai53fQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vz26UzlXnryPF3fC1cHR113jZ10oLsPJF3Tc9zWmp/DX4vacyLR7LlZPHeciU4Iys 9W4nwfzdPD6Y+BGHaUAMhAZlsybuENu4ZT3Phrrg5uSFG4ECgPNhSbWSAV0bNYaMWA +vEsT8EBDJptQMhusKKnTVyurASjuRx1d9YXWuhA= 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 5.10 446/530] ASoC: ak5558: correct reset polarity Date: Wed, 12 May 2021 16:49:16 +0200 Message-Id: <20210512144834.430287633@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) diff --git a/sound/soc/codecs/ak5558.c b/sound/soc/codecs/ak5558.c index 65a248c92f66..adbdfdbc7a38 100644 --- a/sound/soc/codecs/ak5558.c +++ b/sound/soc/codecs/ak5558.c @@ -272,7 +272,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); } @@ -281,7 +281,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); } -- 2.30.2