From patchwork Wed May 12 14:49:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 435609 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp5060837jao; Wed, 12 May 2021 11:06:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcvUsM/IlqFdOh9/mRas3kFhVCLGa6WCAEDoDkMMh3IRGdj3knYV2imNkn9vvS8OV1ubu7 X-Received: by 2002:a6b:b7c3:: with SMTP id h186mr27737043iof.14.1620842763362; Wed, 12 May 2021 11:06:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620842763; cv=none; d=google.com; s=arc-20160816; b=OtzvgxTAiXmThGfvKC/8PBgVw0K7kt97AQ/L7JZy6+76oRLFT634NKkijhSV0Cx/2i 3pmVZUi8XEEgQxH77BPaJ+zzfuWTNykIT4v0S3r88FN0587QGuV/QrW7NGx//QCE62UU XJ0HduumNnDvGS32td0BLmJT/g1cCPDQXI0Fh7P1yc11s5wIks7JNu/kGjNCbirFsVE2 hIrD/Um902hkwk0ZoTzIrOI7B+RKMvIsJAmBtmA5mmLFWbCinK+cQYTwE04aU2xe0ypW yVLc3HK15w5hYhONzDnNIrL8+LMZFvYOIvL02sRvu4y0i4D948bnKwxyjJfHA6iMQTyO 7Vpw== 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=wIJSidX4TJ3j/NEQ/e714pkh3ydRmA2gWKCuUDJn/3w=; b=QO8FoATEUdk558DJXQfPgxbi9C/NjrWyQLdSgWDfEwvcppbxWSRZzqZrpd8JB79N5V RKwG3RlFXpFFNqVfR9YeN18Bn/q3JM8PA+K6+aQ1dTosxTaqMPa54S1kWkn3WzRCHcwn 34dWBlfXAE8hkiQ8Ib2MXJq1L4ivqkunH8lVEhO4H56l5a+UXZ1TWUKthm1hybzosxBo hAMO/VBoWGZW5UpDFuJZBWyiiea/MYkb6dIO7IDP95Jca5RTVflNo3hm0CJ57D+RF8M/ 12SGKDPGtakC3JX4cP4NmuSxchjL2Ki5wRxE5IybIDaSfzXUIUulALXgo9C6cjXNNmos 8RyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RJBTTdjn; 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 q8si330223ior.12.2021.05.12.11.06.03; Wed, 12 May 2021 11:06:03 -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=RJBTTdjn; 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 S237264AbhELQ3w (ORCPT + 12 others); Wed, 12 May 2021 12:29:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:34046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235351AbhELQTl (ORCPT ); Wed, 12 May 2021 12:19:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E134D61D8D; Wed, 12 May 2021 15:45:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620834356; bh=+hDL0Bl3C/XybG1TZGZB7OyFJ4ApaCUz5E/8EGD5HFo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RJBTTdjnshHKLRL1aGjj2fHelbSdKB8GcNz5C7AwAr9vv0i5CT4PdYIgcaK+hmtaU YjG7DETc8+xFKUZyNw9Kos2ZJ0xA+py2w2ChV5W12khZAqAlUTMXBnlDZ0we+WWT3u PdO2660/O4h4gMETnaTKXpkQk98c/F/gDXBpa3qY= 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.11 510/601] ASoC: ak5558: correct reset polarity Date: Wed, 12 May 2021 16:49:47 +0200 Message-Id: <20210512144844.635262137@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144827.811958675@linuxfoundation.org> References: <20210512144827.811958675@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 85bdd0534180..80b3b162ca5b 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); }