Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3682186rdg; Wed, 18 Oct 2023 03:01:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcxqv4BcTorzHoEQ3uBUnrv6Q7RBMz9EUhpmiMGvVpLYzqxMYbhxUab8Q8ya14SJ+vXLJ3 X-Received: by 2002:a05:6a20:841e:b0:17a:e2b9:77e0 with SMTP id c30-20020a056a20841e00b0017ae2b977e0mr7546955pzd.7.1697623282159; Wed, 18 Oct 2023 03:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697623282; cv=none; d=google.com; s=arc-20160816; b=Azp2V2dDhFa08u9O8K25Eh1u/lmIXv0zeMRKQhkQd0f6HxjLorwVRczwbG1MWnReu0 RcFx3vKTT7UmrO2OLTOF5caHogavhfpXACAf+dVHdyU0hPMH4Grz6rpR3z/pEpG9CiUv jyjmp2juU7g6oPF+rA4kJIA7GymW8pcB7RAX7LvGF/wRg0T4VMdxUCpkhP5nbu5raDqh djDvwKHiuXzS6zbOifT3cK/Ayimmpyxg8RHwCaVnD5VBsTt/aa2LLkHkFR/o9pGUak5U 6N8rep8iSwDhwsMmgiQX2SQGGBK03AEisFvl4azZKfsm+Ou947kBJgnvjAgyWtetQ5Vp USew== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=kvddIZrQnxFTAaEhVpmcGqWDKOvzXW76dSFcJDMbgGc=; fh=P4FsF2E2t/otXa1NHzW5EN7wQV7/XlrrVGu2g+hT6rU=; b=jBLKd8E6QRcEoy0/kBENCKAn8Dg9vHcUsCjgwZ47co/mr5RTR45dGe1klUPwiX6asY YUkRmlHzcUTv+QY2Q3uJJHJBRCFj6W6SG2ZsNW+BDh70dJvTpc54PL16gFM63Bgr7H/p GMkj+F5Biv9TBwn80PuNpgy3XuaczsNt7rcfYJkv6Y2bTF/NthcLlqcVB9sNVHM+48N4 jO/CTIO8f0MvznDjLBbr1TC27bTCAhLsFYYUkTaOXsT8vpes+C8XGs6nzk4Xs8/R6Rd+ oElTgR9y/JdUf0B26KdaFhQaGUe0t0uf1meWFkP3t6MPDgDy4zSGgsQWcNXkwA9L5d9I 3Kxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CSiOKeMR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id j63-20020a638042000000b0057744d09d1bsi1863091pgd.251.2023.10.18.03.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 03:01:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CSiOKeMR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A057C80239B2; Wed, 18 Oct 2023 03:01:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229843AbjJRKBK (ORCPT + 99 others); Wed, 18 Oct 2023 06:01:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230465AbjJRKBD (ORCPT ); Wed, 18 Oct 2023 06:01:03 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65945FD for ; Wed, 18 Oct 2023 03:01:00 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9c3aec5f326so681755366b.1 for ; Wed, 18 Oct 2023 03:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697623259; x=1698228059; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=kvddIZrQnxFTAaEhVpmcGqWDKOvzXW76dSFcJDMbgGc=; b=CSiOKeMRRNOgmyD+aN6EhYz5Fg9L5WZo6E7qAnbwZJGiIRo+GMIht+AdCcfS8NlN4t w2XHtvvLjyX1TioTOt7nnppWpvXdp64y4KODXKAQK3Umbqil85AzdXS3DAn0sAhIlzGq 0kOCTPimJYuCshARYjw6VB4jCS7kjIyMOzBaRc+XmxfY4MvpNRW2dX9e1C7Lm9D03Ak3 C+Vfs46I0F1DQrG223mu/OjlNFcHNj6zG2J4sW0146ta1MTRrwPlACQZGKi1Y0HCcgUN gb9PINNDHb5blk3qnEKHYsDUcNl0hjwhGgRYpG6eBdvHLwMGtrYyZbT7kNzTUQOvwDCP f3VQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697623259; x=1698228059; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kvddIZrQnxFTAaEhVpmcGqWDKOvzXW76dSFcJDMbgGc=; b=TDfFlYqdAnsK2ZomhO39pA8jHcNkjakRlFdk5J6s6mJ+Larulby4WQTepvnaomNbf7 y8RwTpta7OOE6mdTVV91XzkHfKqB1JAc2RrkhTmdVWJ7FHB0cCgeb2Yz5xoBAs7IppU4 XK8TlIXfTfi7rnKHJiMc0ANLRPBA//Z/lPeUayuhnG7ncI9PKxYjAaRdt4i5kJGsTEga 0elcE7lHCRKQJJ+elyXFyJoaDwfL7p2wve0tYhwiZYdEX7D49SpH9Ri5mF5j0H99VU4e W7LQHgToBXYMzEJFeaNXzR6mYOr8IjyZyF3jCD5zRJHXZhRVLqHAinycLMJ1Pte/x2s2 pH5Q== X-Gm-Message-State: AOJu0YyzyQG3ki1Wh3el5EhDxgcPydx77HGbPdjVNVSD2IZxcuK8zmEn uQJvLm0+VBsPaRK2950wPX7iDuWv6DoXU2rgesg= X-Received: by 2002:a17:907:948d:b0:9be:85c9:43f1 with SMTP id dm13-20020a170907948d00b009be85c943f1mr4180282ejc.7.1697623258684; Wed, 18 Oct 2023 03:00:58 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.154]) by smtp.gmail.com with ESMTPSA id bt10-20020a170906b14a00b0098884f86e41sm1310004ejb.123.2023.10.18.03.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 03:00:58 -0700 (PDT) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] ASoC: codecs: wsa884x: allow sharing reset GPIO Date: Wed, 18 Oct 2023 12:00:55 +0200 Message-Id: <20231018100055.140847-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 18 Oct 2023 03:01:19 -0700 (PDT) On some boards with multiple WSA8840/WSA8845 speakers, the reset (shutdown) GPIO is shared between two speakers. Request it as GPIOD_FLAGS_BIT_NONEXCLUSIVE to allow such configurations. Signed-off-by: Krzysztof Kozlowski --- sound/soc/codecs/wsa884x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/wsa884x.c b/sound/soc/codecs/wsa884x.c index 993d76b18b53..bee6e763c700 100644 --- a/sound/soc/codecs/wsa884x.c +++ b/sound/soc/codecs/wsa884x.c @@ -1844,7 +1844,7 @@ static int wsa884x_probe(struct sdw_slave *pdev, return ret; wsa884x->sd_n = devm_gpiod_get_optional(dev, "powerdown", - GPIOD_OUT_HIGH); + GPIOD_FLAGS_BIT_NONEXCLUSIVE | GPIOD_OUT_HIGH); if (IS_ERR(wsa884x->sd_n)) return dev_err_probe(dev, PTR_ERR(wsa884x->sd_n), "Shutdown Control GPIO not found\n"); -- 2.34.1