Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp838723pxb; Fri, 22 Apr 2022 12:16:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPGyCOpTlQ4olh84heg9wlNvrrEqN4CJ/nhoA7So6ptGUl6ywZyTgJIuuNGO+muUm70NZo X-Received: by 2002:a62:e409:0:b0:50b:b392:a2c5 with SMTP id r9-20020a62e409000000b0050bb392a2c5mr6617774pfh.58.1650654980688; Fri, 22 Apr 2022 12:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650654980; cv=none; d=google.com; s=arc-20160816; b=m4SAqo93s7Bws4YtcyvxPlH+mkjhEqrtSPy8wO0dfpwrOFlj44A86CKslwYV+WjuwF zfdAcxEcC5BxHC0c4xR6DdAcvageu025VEtRj1L1I2eqjuWZtEBlcwpMAST41QaCaOjx sIG5D5A776OgwIFnwhaDxuk4gFKcuDu/lRjrOgb8QLaY4FFFyBDyHn1xe58gmcLt4S7R aQ4JuSRSSzH+LvN/yrLRgLrzTVPZl077uoRgB6PlixOzVEkfv48gjBnNf9Tip8cDyZqq iNVDgsmkIKgAdFKb5s9n4Q0WLaVckDZjEWigNWkzTvi1Gx47nk0ul/iRGp1gKVKUITfD 9WOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=UMORhHVV1cDMLR6VM0u9G7cR5VO556R+LGyQ5iCgzs8=; b=wNi48B9+Mgi2ofvcFOAck+C5facHEKRWa162tke8Tw1EfcSCoiIM+azPu1B+G343Dt Wymd1jCRI8r0VVz5bH5Q3a14MvExO/ElcCmutgvLmDvrf47SzCb6CHh8ETd8Dj/RV+xq EUD2gwBxzyZDr7T5Fuv30M5hUASbHPytzCwoVb+dW7HbOoaSEGQMXTrjFn8qT6rlEXIQ /PKTj6C3Rhna3JpjixGPsaFZQEiaKuERhdod4t+r5iwk1Nw09Indr7VoeSwbayZP6m9a S2nWpWiSTOokCBqS86++zc80b4FvZejQXoBmgxrwZ4pFsccvXohB0Q4wlfUr779XMilh DAdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id bk11-20020a056a02028b00b003aa4269d196si9111462pgb.815.2022.04.22.12.16.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:16:20 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6D0FC1B5BD7; Fri, 22 Apr 2022 11:32:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353974AbiDSPoZ (ORCPT + 99 others); Tue, 19 Apr 2022 11:44:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354298AbiDSPnW (ORCPT ); Tue, 19 Apr 2022 11:43:22 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3B43BA9 for ; Tue, 19 Apr 2022 08:40:39 -0700 (PDT) Received: from mail-wr1-f54.google.com ([209.85.221.54]) by mrelayeu.kundenserver.de (mreue012 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MkEdF-1oMoU03lnd-00kiSf for ; Tue, 19 Apr 2022 17:40:37 +0200 Received: by mail-wr1-f54.google.com with SMTP id w4so22970378wrg.12 for ; Tue, 19 Apr 2022 08:40:37 -0700 (PDT) X-Gm-Message-State: AOAM5323waBhnuy+fNFd9m111wyEUkyiJqah1LbswKqla13g5bpfQnqK TB6THLQpVxevAfnfkMAzHM//cG6tFycoxsX6z/U= X-Received: by 2002:a5d:6983:0:b0:207:a226:df4b with SMTP id g3-20020a5d6983000000b00207a226df4bmr12156987wru.192.1650382837528; Tue, 19 Apr 2022 08:40:37 -0700 (PDT) MIME-Version: 1.0 References: <20191018154052.1276506-1-arnd@arndb.de> <20191018154201.1276638-21-arnd@arndb.de> <87o8y0lgs1.fsf@belgarion.home> In-Reply-To: <87o8y0lgs1.fsf@belgarion.home> From: Arnd Bergmann Date: Tue, 19 Apr 2022 17:40:21 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 21/46] ARM: pxa: spitz: use gpio descriptors for audio To: Robert Jarzmik Cc: Arnd Bergmann , Daniel Mack , Haojian Zhuang , Linux ARM , Linux Kernel Mailing List , Linus Walleij , Mark Brown , ALSA Development Mailing List Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:B4KkuJO4O6p7OV9tY+r5w5ZQaXiO8EgcHvCXb7uRux5s14U8in4 EyOQyl0VWSOPyzI5Jwfg0HNTTEFV7nYnmdWrhOTIbMCOfF8mdMm8msY/pf43tS+bPioZcnZ a9eELn/8HgNN1BWmsOPRirYZjhMKL8hTOeNiVPfw2VExNRVPi2ZWzz0BIxoVaMzgcXPJ4gN NRnVG4uuBVlswLaDwRNbg== X-UI-Out-Filterresults: notjunk:1;V03:K0:oMNwgFhYYLA=:dz/tndUjM0DwM7UljviixW dmzrfmFJnpCHlkO5+7Ht2VTlf4w2ce9MOdZ3c/GzFAEp0ULPah8wK7y0clV4CbGsg7bp63Qfw 8dyLF2D9vDjqSMcjvPe8VgG4ghfg+35hJMw2G73dyX/lIkfxMnEKjmBAAfOjvBfGDQl06D91g 18OfHw0SCDxM6UrnkhBwaYPvPo6yCmeLAnj4YIFqE5Q7HiOoY/4UK4ZsgOrcftwu2U/o5qgtP f2tu1ui76WU9/55cEmXlt3gjzorO8ACMWvC1NgUG6nhq9FE3kFyjip2jwXQMVbWdAINj2nMzm Ez9zNkjhfugtrXw3cWocHK/5ZBI3CXlWwHGzs5u7DLPyHBCmLlDQgt+ZC4RBWmCVwdXXGfXXq tp8df2nDpX3S2l0TdOVBkFZVp+w72eUxofzha46S+X0WgDYl9ig139s41T6Od0T8ebHkApMVm nM9GdqkrdZ/swEP8VXPDBDLh3g6agw3GXwq8isZkF0gCfLx19pS8N00q6ewksWYNISntikqkE f42cCX2x2a1ST16E6ZEqO+KjiAUeOUXhpfZZVGTB3fwxgVIs/h2kgr8+n3Lzysik5r+Q53ub/ xggqm0TAaxL/H9gJSdGF264bhcdBSM3fhS1yg+sHy6YSxwKCGSmKGX66ZllA57Fmq0qSKgFiv goS88iKxB4vxheWcQHUY8lEx17M7j6Q5NUbMgX/IJJokVLwHetX1IlgCWRNIQ+Hf1B2A= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 28, 2019 at 10:08 PM Robert Jarzmik wrote: > > +static struct gpiod_lookup_table akita_audio_gpio_table = { > > + .dev_id = "spitz-audio", > > + .table = { > > + GPIO_LOOKUP("sharp-scoop.0", SPITZ_GPIO_MUTE_L - SPITZ_SCP_GPIO_BASE, > > + "mute-l", GPIO_ACTIVE_HIGH), > > + GPIO_LOOKUP("sharp-scoop.0", SPITZ_GPIO_MUTE_R - SPITZ_SCP_GPIO_BASE, > > + "mute-r", GPIO_ACTIVE_HIGH), > > + GPIO_LOOKUP("gpio-pxa", AKITA_GPIO_MIC_BIAS - AKITA_IOEXP_GPIO_BASE, > > + "mic", GPIO_ACTIVE_HIGH), > This last one looks a bit dubious, as it looks like a gpio on a gpio expander, > could you cross-check that "gpio-pxa" shouldn't be an I2C expander gpio please ? I'm revisiting this older patch series now, this was clearly a mistake in my original version, changed it now to @@ -982,7 +982,7 @@ static struct gpiod_lookup_table akita_audio_gpio_table = { "mute-l", GPIO_ACTIVE_HIGH), GPIO_LOOKUP("sharp-scoop.0", SPITZ_GPIO_MUTE_R - SPITZ_SCP_GPIO_BASE, "mute-r", GPIO_ACTIVE_HIGH), - GPIO_LOOKUP("gpio-pxa", AKITA_GPIO_MIC_BIAS - AKITA_IOEXP_GPIO_BASE, + GPIO_LOOKUP("i2c-max7310", AKITA_GPIO_MIC_BIAS - AKITA_IOEXP_GPIO_BASE, "mic", GPIO_ACTIVE_HIGH), { }, }, I'm not 100% sure this is the correct name, as I don't fully understand how i2c device names are constructed. I see that Linus added a device name in commit 32d1544880aa ("ARM: pxa: Add gpio descriptor lookup tables for MMC CD/WP"), and I guess I could do the same here, but I think that was only needed to disambiguate two instances of the same device in zylonite, which is not needed for spitz. Arnd