From patchwork Tue Apr 19 16:37:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 563354 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp3443841map; Tue, 19 Apr 2022 10:03:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8UnR2dIuyZaISelLduxhu/5Va/cYEfQoc5p+K9nAGAd/1ygzHN+ePuROEiZijwYfQro5m X-Received: by 2002:a17:90b:3809:b0:1d2:ab07:484a with SMTP id mq9-20020a17090b380900b001d2ab07484amr9914400pjb.236.1650387783118; Tue, 19 Apr 2022 10:03:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650387783; cv=none; d=google.com; s=arc-20160816; b=YVas71OmZ1u101wa9SRUAxxOKkU8+Zh1FCFA5KYB68g652TZAlBqUHU/NVwRg4ahYz YRbB3PL7fYlAnkeuC0HSJ+LP+jfbtEnNKnhQ/DIU9UV/1zrukGWXjyS++QYZ0YzjqQ0x NUCVkf8aD4D2P5p8WqK0eqL19h8OIVSsyDE5EeXfkFw2nsw/wrbuDaDh/GrN3pXArAd/ BpiDsxKf3w0E+MswpGf36ptg0LvYz4l1cHXuHafsSXzX3NwcV+dibIwbpag/rhHeJPtM I4xh83XNrgOKiLvx2Ylcc6SAd/2kvH9iOljwELCzG4QWBC4sJA1E+cpDSR5wDFfN35dp mSLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=P4xzg6rUY1YZAaP0fAIzvi72Bs2x3YyXTZpcD0ES3co=; b=n/s1cu5O8ly/YIiJh3tf3DQtSi+H+r5KOaO/t+VgIU55as45+RTBjA4jDQ1NFfMCJU Jro5KDXsprLRKF3eGLz+wShKI3UJwTsW1kTaRmOI8CD+0y1phWyt7lWSAko40XT5ZzLm e/NmvXm31cDpESFyJjSVbwJOT40AQXn0hNCI71gvqMeDyOvC2Rz5FUUPkJfxKboD6CY+ YJf0i5UH6owPmXJLEzTqTAUYyhRTHIW/RU9ljJuMGUlt+EB+KXXXHbDxqGvYaqGFcvQ5 e9crQzkdufLT/qY+LP44I+A5TE3fR6GaOLRj+jib8uauKGY6hQvvi0nglXa4zUfTCN9K S5Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=vfycZ3t0; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b="RW3t/f0q"; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id u13-20020a63ef0d000000b003aa3053ef30si2901709pgh.402.2022.04.19.10.03.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 10:03:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=vfycZ3t0; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=k20201202 header.b="RW3t/f0q"; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=P4xzg6rUY1YZAaP0fAIzvi72Bs2x3YyXTZpcD0ES3co=; b=vfycZ3t05MK0xp L+OZG/KFvUSm7rnGmlR0HtFhWEbdvlvppF+nEwq5BBqjnZyEto3ouBAFyYTPkeTs91XlmJkX5VL9D N+rnaNfQYEya8ZXjH+DypMJhmsePoGXipuOPY2hGlpJfYyNun+3DX4/NPMXvFJXPQ66OcwpLCbMNQ fKfkiIWF8cyUWtWBVb+aWJdQKkZ1+bg3DA5S8OhY03+zoGOqcJSr4yPxe2ZJcAhFnP8QAZkvvCR2Z fOi/3dM7IzpXyii+sGrHtW4qSRPUOEMDRkFaQhR3eauR7voky/51N83g+OTcVGNzT6AnKlz2z1f1h 2EENF03+say4JNFI8/gA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngrFd-0057Ph-BP; Tue, 19 Apr 2022 17:02:53 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ngqv6-004x9D-0f; Tue, 19 Apr 2022 16:41:43 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4A677B81BBE; Tue, 19 Apr 2022 16:41:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB721C385AC; Tue, 19 Apr 2022 16:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650386497; bh=1O9MwmD3q7Efw0mNmt0vC0FIYvsOfssGwGwAEKA5gxM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RW3t/f0q/W5/dnzfcrtw0I9fhLVY23FDmAPpcSaaDuKEEcmTyf0OhUuVzov6xRtSg 8/90KOb8nyH780wMfnvX+HRQ5KfSJ/tj7EytVv1D4e3RaGfAVpd8MdgrryyRnQz5sl tAEHgpltGQpLFkNQV4TvKayphCQEulsFlQIA0f/Mf+RpqX1pdKuTMDiDkHI/8Hxyi7 CH4LD6+/aasnihfkDYTekh2dNU8/QkAcdXp4RO1bzn7uBOscXcQCaZqzuz/GBYaM0s q1fLwEh5+e7KJuaGDQ6KO7+wX/GqQHM1/twbQraNRso9SVmFpc0j+LKZPWKG4wAyPe xamlnDN1RvfFw== From: Arnd Bergmann To: robert.jarzmik@free.fr, linux-arm-kernel@lists.infradead.org Cc: Arnd Bergmann , Daniel Mack , Haojian Zhuang , Marek Vasut , Philipp Zabel , Lubomir Rintel , Paul Parsons , Tomas Cech , Sergey Lapin , Thomas Bogendoerfer , Michael Turquette , Stephen Boyd , "Rafael J. Wysocki" , Viresh Kumar , Dmitry Torokhov , Ulf Hansson , Dominik Brodowski , Helge Deller , Mark Brown , Linus Walleij , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-ide@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-input@vger.kernel.org, patches@opensource.cirrus.com, linux-leds@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-rtc@vger.kernel.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, alsa-devel@alsa-project.org Subject: [PATCH 21/48] ARM: pxa: eseries: use gpio lookup for audio Date: Tue, 19 Apr 2022 18:37:43 +0200 Message-Id: <20220419163810.2118169-22-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20220419163810.2118169-1-arnd@kernel.org> References: <20220419163810.2118169-1-arnd@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220419_094140_456996_41604326 X-CRM114-Status: GOOD ( 23.99 ) X-Spam-Score: -5.4 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Arnd Bergmann The three eseries machines have very similar drivers for audio, all using the mach/eseries-gpio.h header for finding the gpio numbers. Change these to use gpio descriptors to avoid the header file dependency. Content analysis details: (-5.4 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [2604:1380:4601:e00:0:0:0:1 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.2 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org From: Arnd Bergmann The three eseries machines have very similar drivers for audio, all using the mach/eseries-gpio.h header for finding the gpio numbers. Change these to use gpio descriptors to avoid the header file dependency. I convert the _OFF gpio numbers into GPIO_ACTIVE_LOW ones for consistency here. Acked-by: Mark Brown Acked-by: Robert Jarzmik Reviewed-by: Linus Walleij Cc: alsa-devel@alsa-project.org Signed-off-by: Arnd Bergmann Reviewed-by: Linus Walleij --- arch/arm/mach-pxa/eseries.c | 32 ++++++++++++++++++++++++++++++++ sound/soc/pxa/e740_wm9705.c | 35 ++++++++++++++++++----------------- sound/soc/pxa/e750_wm9705.c | 31 ++++++++++++++----------------- sound/soc/pxa/e800_wm9712.c | 31 ++++++++++++++----------------- 4 files changed, 78 insertions(+), 51 deletions(-) diff --git a/arch/arm/mach-pxa/eseries.c b/arch/arm/mach-pxa/eseries.c index a8b6483ff665..2643a2a72408 100644 --- a/arch/arm/mach-pxa/eseries.c +++ b/arch/arm/mach-pxa/eseries.c @@ -24,6 +24,7 @@ #include #include #include +#include #include