Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1963019pxp; Thu, 10 Mar 2022 16:10:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzC8VJJVqCJ39HMB+S7ck40CejQ2IfosWoXkYD863JRABj0cLMgwRQs9OzjHWd3fetLaJR8 X-Received: by 2002:a05:6402:5241:b0:416:6cab:5f2f with SMTP id t1-20020a056402524100b004166cab5f2fmr6597341edd.282.1646957456103; Thu, 10 Mar 2022 16:10:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646957456; cv=none; d=google.com; s=arc-20160816; b=XVPS0oHBeyA7/Z0IsWg5D9jyqEb21QqmFMNqc/IX5rIqNr9AN0ydGwuXGJ+1tQ8HP0 FVGaj4xwBSvu2fbqDrdwYgh4W00YA7emmAw3jgmn4iis+PeJnm5ynKV/zY5O8g2ZAQcR a57bc7UJ/XzwOXZcXofua0OjpXlK0FoclNgPqNdchKiOLvEWR0M7vmohKcYHC25BFl33 z59ZO6iXYgNOZUBRcRediZRQtersPL0vxnMgb7pXPq9RABAH+Uf2jPw4k1P6qo3Ruf4r ur3rwiv8Jd+r+A0hE1To5zRYzFSIs1eI1PgNIMxF1IsEkxnW8rl3kZlhaOrkHdHLACS+ ODFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :subject:to:from:user-agent:mime-version:date:message-id :dkim-signature; bh=xt9jZcsbIc3uRwCBEAO7UWcKQ/BRR3pjfdwtdFoPCvo=; b=au0NBU2xktQiRsGsAfaLyk1y1lvuhpSRMze5+3sfMHXU8rvijbOcMiAta15SXdU39i yH9/zakv2lWx8bDzY9Yfhej3nlF6jpflt7T9RQWTHTJ28HFfTOdcvWE2QqOtpLmZT1fW lL6wIH81tkmMAoychw2vHuWkLkRe3PO8QD53qMc6RCj4E0LNfuhniSszZm/53BIeetO0 nIVZbCEyY2p+Ri/xVBZKwaBoA9l4sIq8wUXdHsS5pRrHH6HbQIsgstU129aDPC/2slrJ +fQSjAhp5ic1iT26TEtvDWVEJzYRsH5uRV8081C0g7WE/c6dNSlA+MjboIfMmKvVQKQ3 sKfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=MjCm65YB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd5-20020a1709069b8500b006a744d0cdeesi4629718ejc.875.2022.03.10.16.10.32; Thu, 10 Mar 2022 16:10:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=MjCm65YB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241848AbiCJQmS (ORCPT + 99 others); Thu, 10 Mar 2022 11:42:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229769AbiCJQmQ (ORCPT ); Thu, 10 Mar 2022 11:42:16 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1305918F23D; Thu, 10 Mar 2022 08:41:14 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 22ACrQ0b029203; Thu, 10 Mar 2022 10:40:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=message-id : date : mime-version : from : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=PODMain02222019; bh=xt9jZcsbIc3uRwCBEAO7UWcKQ/BRR3pjfdwtdFoPCvo=; b=MjCm65YBhjQqTx8nYg+XemIJG21ENMfZDKNF82HZUvyie42dm4Tto6XCSdtAqXaG/gGR Y37IMrZSJW1VmAffmhfa11aJaSCw6snjw/2B3J4bEUvHbhhBm3oDJjNknxsy4fo+uiiy n0QshAZt42LCTjiBBsMhmH33LHsyTyJSWhqvljEtLnSJZrSWJ+YW/T/IKCFbehZTmEGk R96VroBI3R0z60hC0uANrIgennXgwTHE0JzmWg6oZL+TUIxH88P7dBX4VwxkAr157yYJ ik1yQtQiq9gKUyl/oM3akj/pey3qQ0hGxltaSM+YLftA9XF3NscxkTHVA4zyH99DMzE1 mw== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3em55sybva-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 10 Mar 2022 10:40:47 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 10 Mar 2022 16:40:45 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.18 via Frontend Transport; Thu, 10 Mar 2022 16:40:45 +0000 Received: from [198.61.65.38] (unknown [198.61.65.38]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 551EBB16; Thu, 10 Mar 2022 16:40:45 +0000 (UTC) Message-ID: Date: Thu, 10 Mar 2022 16:40:45 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 From: To: Takashi Iwai , Liam Girdwood , Mark Brown , Rob Herring , Jaroslav Kysela , Takashi Iwai , , , , , Charles Keepax Subject: Re: [PATCH v3 01/16] sound: cs35l41: Unify hardware configuration References: <20220308171730.454587-1-tanureal@opensource.cirrus.com> <20220308171730.454587-2-tanureal@opensource.cirrus.com> In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: vG94vteHVVNXs2KSuFkG7uoGHw8T7SbI X-Proofpoint-GUID: vG94vteHVVNXs2KSuFkG7uoGHw8T7SbI X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 3/10/22 1:44 PM, Takashi Iwai wrote: > On Tue, 08 Mar 2022 18:17:15 +0100, > Lucas Tanure wrote: > > +enum cs35l41_gpio_func { > > + CS35L41_HIZ, > > + CS35L41_GPIO, > > + CS35L41_INT_OPEN_DRAIN_GPIO2, > > + CS35L41_MCLK, > > + CS35L41_INT_PUSH_PULL_LOW_GPIO2, > > + CS35L41_INT_PUSH_PULL_HIGH_GPIO2, > > + CS35L41_PDM_CLK_GPIO2, > > + CS35L41_PDM_DATA_GPIO2, > > + CS35L41_MDSYNC_GPIO1 = 2, > > + CS35L41_PDM_CLK_GPIO1 = 4, > > + CS35L41_PDM_DATA_GPIO1 = 5, > > }; > > So CS35L41_MDSYNC_GPIO1 is identical with *_DRAIN_GPIO2, i.e. it's an > alias? > > > thanks, > > Takashi > The value 2 sets GPIO1 as MDSYNC pin and GPIO2 as IRQ pin (Open drain). It could be the same label, like CS35L41_GPIO1_MDSYNC_GPIO2_IRQ, but I think separating them is better for understanding the code and organizing the code.