Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp626887pxj; Thu, 20 May 2021 18:18:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPUniEVO3L6bjNybOIi/8jBdq7T3Zg1Lu+vGrheVSkfxoowJ/hAYwzNc8llcqbon3swIQ1 X-Received: by 2002:a50:f744:: with SMTP id j4mr7864004edn.211.1621559932407; Thu, 20 May 2021 18:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621559932; cv=none; d=google.com; s=arc-20160816; b=yn0mUKxdLavDqDdmZ2//6WtV4fowUw90F7CXBECaiK3FN2VVerM0zZ0ytk7yIuh225 Tvf/T2iFmIZqOxwOzjqTjwD1Q4MsN2V+OGb1BIfH35S16RJRmENZ0cHG0W5+Sa+4NiVp gBv2OEcH5GflrzIlDWtD5Cohv09B9p1AlmqveriSRgz/3is2oyUbw+4kDTq8Qqp9p4Tj 9gn4RK829YVH7+5IWHSkT7qfBhIFg4zwae39qNpSsQIyOE26s5dzmv9v5pDrkeCX7dqV vTitSw7RaIF5zKFoOugFB4/8/RJG/R6ZwHxIpqyzVTj2H7HwefWip/a6aHNSfbRytaNd Psvw== 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=93lrPZwmfE23QZY1tEKfrEeWb+R99u8wtJvj7zJ4RT0=; b=L5LqWYBGAxcLQojrNEWZUbMwWBfmQGo3+11VSJSjBF8bp9ZBxd/svbZGiDw8zZZMXH Fo/WvlugNFMFta0Nj57wi/hw02ZG7b3DQmsKaHYEk9GyMGbuSbOdX1/brDNkOKIW2btG bbxiqKpSC8wZ+Oo9w/QTe5PGgndyVKsSf7N9u8LxUMHovrXvJhEPYCGdKVf3a6kk7MTO iFMtffkpH8kZgw1XHRzUaexb84zTWtplr7uUy/jyNtvdC94vxamL0wIbGpMOyeEeTiE6 Gb2APhfepIgO1jlobtqtZeszu1IURsMg0f7JZgKzZZ8/Dq9ersUY0RYFtiaM3GKJiBBA PNsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mA7vfruG; 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 c17si3830777ejf.35.2021.05.20.18.18.29; Thu, 20 May 2021 18:18:52 -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=mA7vfruG; 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 S242313AbhETLrH (ORCPT + 99 others); Thu, 20 May 2021 07:47:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:43412 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241388AbhETLY0 (ORCPT ); Thu, 20 May 2021 07:24:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1BBDD61D95; Thu, 20 May 2021 10:12:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505553; bh=aZycJ9fD9yz5SFROnkaxyLybEL8QdjyL7OB0T7Z0j38=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mA7vfruGHkf6vy1tIXE+11jbiksU0pP2z56KOFHcZjl4b7OwNeYoshUnnq0lmwcj2 iOjbDATWaq1Yz6hp2W5QiXvts3FMNcWtzIjIA8XmkchGw14rfvE04ZQRziq7mt/5X6 aGpLXyH5lnIpqDnR70QF7ZHKMcaocFT5XfNfiYOI= 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.4 153/190] ASoC: rt286: Make RT286_SET_GPIO_* readable and writable Date: Thu, 20 May 2021 11:23:37 +0200 Message-Id: <20210520092107.232304097@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092102.149300807@linuxfoundation.org> References: <20210520092102.149300807@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 63ed5b38b11f..146099ec8570 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