Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp382377pxj; Thu, 20 May 2021 11:30:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIMRWhfplaeYtPq4XKCXhqkvZNzdgE3tD8r1pi0ls3LEkZv3ty0sK3VHx6hmegfBbwHSAW X-Received: by 2002:a50:eb08:: with SMTP id y8mr6432883edp.89.1621535418615; Thu, 20 May 2021 11:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621535418; cv=none; d=google.com; s=arc-20160816; b=GCYU67IPTADWunUmRmZ1jNHVqgDfgdCxg75V6KhH8vrPt5JvCglj2OOHKmmtmdeOOa 2Vf7K8v8PTcyZYm6HtVxPeOWKmyjXeQABabw3C5OqR/4h5QhvWrJMfH+Rqr8kvdm4ECM 1vVZUJkb44uDfTAx/OUPI/xwLdzzGl4sgxwqYWeBmySYNVqtDzfp6Qdgq7kJJz7QqMU+ 71o+0owBnhRTsuKxOVzHuTjp7mES/bx2h5OOUCYp8KSKx/h+N+kn1aalOzUQ0eBQPiJs pFVDQityoOFom7rVuZSxtPwb9TExUJOVR8lXM3auJ9jLPLbgy6zBWRV+ZyhHKDdQeHXJ MJow== 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=oNYxkYmXYepbjqIMxvDfCFwjvM9WiWt14gehkf3QVAE=; b=snpfWm0exr6gHR3HyOvDD1nGKO+Hk4OT+Hlwszd2+Dl7Vo/P8SvLs+8IINKFZabGwa sHQHkpZN+FaDayqiCNGNd2FgYgSKG9uSk+EgV/uhOi/rfXU00gCdkreIbxvp5zrgXhhv J60ZUwxso3v4X2wPfA/XdffWL44lljoNJHrb8EEf4hxNA3JunaZ+rVm0YHFLzl4lfzuX wp6bDLDrpeH6mAmcoivH4dRX3uBwxb8gbtLR3GmLtGIn72jr/pZlG6AiUR02KScFOvUS QawjXmPgrTdFCKybZnXtGRnDO+KqJHCWgYn+UAmoftLsXHvwThMHgSwyVvUz4oRM1tR7 ljMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YIAkAONj; 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 z22si14905edm.203.2021.05.20.11.29.54; Thu, 20 May 2021 11:30:18 -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=YIAkAONj; 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 S235834AbhETKSh (ORCPT + 99 others); Thu, 20 May 2021 06:18:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:42436 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235845AbhETKJc (ORCPT ); Thu, 20 May 2021 06:09:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EC5C761953; Thu, 20 May 2021 09:42:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503760; bh=5jRYSLaiyP44o6o5Sr8x+VXMMR4C2T7PWd1m+BzyFXo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YIAkAONjvlSe18Jm3GOMUGE1/6G4Wwpmp0SXbQexx+bxg8iYrNlTOUZegueikUlnD +nSl4cnmbnDcaJ5CHTPQnyAZaUTw0Zu+Hij2scqYVCtBMlbJFjZfbeXgKxFqx6KVIo xm7F65UbxEaobcvTzcm2tt7AXryyhdx3lW0xFjfw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Ward , Pierre-Louis Bossart , Mark Brown , Sasha Levin Subject: [PATCH 4.19 333/425] ASoC: rt286: Make RT286_SET_GPIO_* readable and writable Date: Thu, 20 May 2021 11:21:42 +0200 Message-Id: <20210520092142.354358615@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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Ward [ Upstream commit cd8499d5c03ba260e3191e90236d0e5f6b147563 ] The GPIO configuration cannot be applied if the registers are inaccessible. This prevented the headset mic from working on the Dell XPS 13 9343. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=114171 Signed-off-by: David Ward Link: https://lore.kernel.org/r/20210418134658.4333-5-david.ward@gatech.edu Reviewed-by: Pierre-Louis Bossart Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/rt286.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/rt286.c b/sound/soc/codecs/rt286.c index 7e44ccae3bc8..c29c6cf41ece 100644 --- a/sound/soc/codecs/rt286.c +++ b/sound/soc/codecs/rt286.c @@ -174,6 +174,9 @@ static bool rt286_readable_register(struct device *dev, unsigned int reg) case RT286_PROC_COEF: case RT286_SET_AMP_GAIN_ADC_IN1: case RT286_SET_AMP_GAIN_ADC_IN2: + case RT286_SET_GPIO_MASK: + case RT286_SET_GPIO_DIRECTION: + case RT286_SET_GPIO_DATA: case RT286_SET_POWER(RT286_DAC_OUT1): case RT286_SET_POWER(RT286_DAC_OUT2): case RT286_SET_POWER(RT286_ADC_IN1): -- 2.30.2