Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp396745pxj; Tue, 18 May 2021 06:00:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH0wCmWi8ZMIMB3i1uGlq8MpZ1DyzaxLqIjzTexs6ZWOUNr3f4/t/5KodQ01L8hP+72rfu X-Received: by 2002:a50:bec7:: with SMTP id e7mr7032787edk.295.1621342835927; Tue, 18 May 2021 06:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621342835; cv=none; d=google.com; s=arc-20160816; b=O1yEeDpZIykwPyksbbf6lNzL+i2DIdKk6KxkvQ2YmlWaG0CVRAaD24zcgAo3X+BAG9 AZqQGy+uLZZLL8Vqrxp0T6510sI8YlkaXfnynOQ4XmrZH+whi4QvoEFudWMHLPDVjfPE Pev7KsGjVn9OKGm3VphuEnWxIqW3xlVUoWKVy0I0LuwRdMAtI4FMZvmW+sc5d7Jxt4uj PoDtxsqDpgrqkdvc6IVtjXsKpczqJqsxCy3QhbYQAQvopVh8564oE9ND553jjKHhBc0E aeMHVK8BIiR+63XrUV+cm+0kJMhKFx0LKGyIGLTANE6BkuYUbBPOf2LGc9A4C22OcxmB TRVQ== 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=lP6c/T1pLuACZ/d5x9ZoYakp8NuRMpA3eh8YV7VwlFU=; b=K9LGkbzAVag/W2Vn6Tp3A6FC8M83VpFX4SM2UzTJQTTNV/MRM8+bkfbgsxXLybO0fb 6M3WEWHcNHzgz4AxrzYWzBWSsydQRopJGIfT2tv+7unJx3PwiRJiWTPjELVsi1IBYKJG Y1L6V7GTfOElhzEY305C4tjGL//gisks/vlObenbnx91mgikzZGUg4Tghr0VYtytcwHx pJswdmpxxZbAltGmszM3vdrVh9o3SRKa49/ub9KYHwlqzvSepvIU/lM6ley0KGDlnjKd ECojBeqbe6s/m4YGqDPt2RGZM+rNVq25+vuDwSMCJuqk6eXCaEUjuzedww2a8khbcOUr ckKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YuDvOhRD; 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 v24si2894980ejr.564.2021.05.18.05.59.49; Tue, 18 May 2021 06:00:35 -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=YuDvOhRD; 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 S1343828AbhEQPe6 (ORCPT + 99 others); Mon, 17 May 2021 11:34:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:55934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242251AbhEQPQh (ORCPT ); Mon, 17 May 2021 11:16:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 401A761C5F; Mon, 17 May 2021 14:32:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261971; bh=MW17LMhkgf4zsGdmSa+gCO4FhcVWWoYvhnsDJfybypI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YuDvOhRDDj/lfLyiwyPXb/qTdwbZ1MVfq7UclkbpBaE573LPqFc3ss8QsEEsuPX2c UUMJiv/JseFzb0AR0uBT9q5f2zzA123DYyq7/B2u2rj0P85kmGt0ySN/HQdmJrdWh/ RtyfGEG2aGnEB+RuxcWll+mBUbYROcFFre34WKh8= 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 5.10 093/289] ASoC: rt286: Make RT286_SET_GPIO_* readable and writable Date: Mon, 17 May 2021 16:00:18 +0200 Message-Id: <20210517140308.320913373@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@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 8ae2e2eaad3d..eec2dd93ecbb 100644 --- a/sound/soc/codecs/rt286.c +++ b/sound/soc/codecs/rt286.c @@ -171,6 +171,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