Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3023572pxj; Mon, 17 May 2021 15:50:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuw1V7LQteKPNoYEnEZsdiHEasrXbFaLaQBmG73n5iXpIyKnYcRXqn30j2/ognerMOm/fL X-Received: by 2002:a92:d60e:: with SMTP id w14mr106721ilm.0.1621291843136; Mon, 17 May 2021 15:50:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621291843; cv=none; d=google.com; s=arc-20160816; b=Qn2zdKs1S2IaPURmnrM7zo/BzXqvz000ZMsL/nLZhYsP/VYBdeXzRzwe36Dl5Vkvjb JIMytbLYZO10qXbZBj2sNQliccAOs9fDRxFYJXJudYOXBCZsGl+MwvZbL32h828KpSSx djs2Gd3+4UHO8faQEymnTzKoEGWnQ5eBNcrrr/u5MCVqxEOB85VbkzrruP/HehysFwEM x0xPYVybrI4iR+6tzw9xUX8ekSI1/QkgKY0dBpga/Ha+C6nLeZa9k9ftZQog2p7XNcIU fNoNh0Rh38Kac1ZBg7pI6hG+d3RC+RI/MyG+25dSjpo2TfBKjMxKN76DBgrMB0V06q4T mpmg== 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=S999EiJzB55dmxLEW3FrL0Xs7Y70BmaNLzr9EQ9vV7M=; b=NSEHJfUsrE/zn5o9JYDf8rd7fwcNCxJiew9hV/RQFOhBz4usoVLRx6ZEGEN1Ch2u7H FNqfbfUGaqOXFzPSuPbnLEbEs8nvmHphIZSFhDbr8+Do7M7DmOVOoAPQtbMx+PPof+lT 2WM5pZlJObrYFmVe3S4GxGnL3AwIstzIrVbSQ81q8nT+ihZnCC2BpDejl+iRCnIn71MA YfTjIGUpNw07rCRY4ZMKI7JzwMzyAxXiW65JqNZ18WQHjrl25NPQpNzLpQ7b/OD50E3l AIQdXX3ASsr+wARGOE0TQMJ9CTPtPpu1Ysc20fu6wgWvCQcJ97ILXOSwFclyfTeY0tMO HNwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tX7RbHJ8; 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 r13si21259571ill.120.2021.05.17.15.50.28; Mon, 17 May 2021 15:50:43 -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=tX7RbHJ8; 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 S238721AbhEQOQ5 (ORCPT + 99 others); Mon, 17 May 2021 10:16:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:46384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239019AbhEQOOo (ORCPT ); Mon, 17 May 2021 10:14:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E1B906124C; Mon, 17 May 2021 14:08:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260533; bh=09Pth0TM82Lv0BE4cEgiWAOEpj5Bx/lSMimuNrorsX0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tX7RbHJ8C58nT2AQF7+SwtLtpoEpPHT0QFd40yOupL3JlKHhj96x4qiM15rFHqot1 qo9Rs9FXXnon0dZpBDSyueJdQJVGS0lMty2WRup9CCCg0g2U9bzjb2SLkUJKe0+IaS 66ux+6oUb1HTzZKu3yjhkPBvFwzuEvefXv4q2fVw= 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.12 124/363] ASoC: rt286: Make RT286_SET_GPIO_* readable and writable Date: Mon, 17 May 2021 15:59:50 +0200 Message-Id: <20210517140306.813445561@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@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 2f18f5114f7e..ff23a7d4d2ac 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