Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp457723pxj; Thu, 20 May 2021 13:24:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL1sDjfwLN3Ffl4CEq60987lQ/vMsbURe2aKvuNBwUunW6PPseYzfVegWONiptNVZulPTD X-Received: by 2002:a05:6e02:1649:: with SMTP id v9mr7436525ilu.62.1621542285794; Thu, 20 May 2021 13:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621542285; cv=none; d=google.com; s=arc-20160816; b=JAaWGFaopL7Ukfjwfo9GpbQRlR5d6mjsZsV3eOkNp2SgjSsOD4xhwa3gcgX8bdSuGS Eb+4z3nNDYWCilx+wJ0lAYaQDM1p3RHGPnzYWgowTD7wsv3nCaHhWw8THHWD/zl/idaH e5GhX3vNLhfc6SpHCeYFFfgk74Rgnhv9rhT3o893TbKTAGfAwS3+5qXZ15TvqxxM5Jm2 cRjUsY8Pu1ndYOtGfYi3g7Pha4DITPtjhvSaMxpt5BlIeqPrT379USbfO5uEUVwp+AC2 uXmc4breWyBTfZ7qsQXR+zEHVW+TVew1/EttjvX1cN5vFEz/QP13khdrWLEk0qv+XAWv AmXw== 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=OoMH9DKn7FwTLZWisSP8K2BEmpgtv81gJB4xLgcVEkE=; b=fFjonQYU+tFm5UQ4a4lk5+YEhT58aSS9JqW9YrO5oyZeyWbT5Iu57m6W0YxId+OS4x kLsxM6QrxQHpHhWlN524xTzbsrfniz6BGtgGV+xJn+9i+6sTSJexprIr2PL6AB4wjd8s R+xieTwidXvlR5qWfZmwHtPQYcgTmNkDoPiLRNolygVfECDFtuRxrr1fhfSM0d9xnUbL 8bZt6nVugEcACVRZLDLa0IVLuVLwxMKYVB9T7MOBQlkf6qYCVNhGv8yVgyrIg0FYH9zx kgjmc3mBywJpB82lM/gy8avOqwnyyKMtNyXmARy1dN/Dx5T8Y1uZBok1D00jMch2+0Te fzmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dIDEeVbV; 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 7si3379525ilz.34.2021.05.20.13.24.31; Thu, 20 May 2021 13:24:45 -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=dIDEeVbV; 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 S239251AbhETKw7 (ORCPT + 99 others); Thu, 20 May 2021 06:52:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:39796 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237312AbhETKhh (ORCPT ); Thu, 20 May 2021 06:37:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 12E0E60FF3; Thu, 20 May 2021 09:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504466; bh=dzKtYbWDH6pDhdycN2WQHu3c17AMjpuKPN/DAcATgXA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dIDEeVbVmpcmJWVehzEypmmf9VAApt+0TEF9dh/yMCl5KHaI5BUkSEeOvvZIaPud8 asBt6agTBAmpC+pdBrFsIEVwzDGuZOzSSxbkqWYfCYDxa8RTPq+gfcjuBvzLEHXTDI DCiPmTA3GMckH1Z4aOqwnHexWG8MU48CiDpmbwqM= 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.14 258/323] ASoC: rt286: Make RT286_SET_GPIO_* readable and writable Date: Thu, 20 May 2021 11:22:30 +0200 Message-Id: <20210520092129.047398960@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@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 17a66b4a46a2..ce3865a8ddc2 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