Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp10474291rwr; Fri, 12 May 2023 08:34:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Xb7D6bky7O+nBr0iSlD4WrLPKo/NgkItm8IhZ7fb2Qh51JrOFT3PwLzCNGpM+034rBT4n X-Received: by 2002:a05:6a20:9d90:b0:f5:8681:14c3 with SMTP id mu16-20020a056a209d9000b000f5868114c3mr25531424pzb.46.1683905684311; Fri, 12 May 2023 08:34:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683905684; cv=none; d=google.com; s=arc-20160816; b=XRUFnez3bynzjj4tDgx4hOxBCnVUImN5D2zhJjPhX/CvmIC9geJmqiCieHAZBQN5+a ydc5JG8Y7jdamJlfILfrJQALFeIBr6tY/3S483xhgsXihbaKfzmh3t3VxAE0hAYhZAEd RFcP2/Te5fENd9FBsB+MJk7dkfubTpYlwqyLgTlZjeSd9Dd/1W+uAP/R3vQW0sxJlCps 0hHKE/d7UpcAf7bGNfJOScFcjHk5d48rxwsGgV+hlGVRVUyFNxt5+UfzflulLuFZWyia CMGtwnCyYJKa9/adp1ieexSA3/rndnHPTA3Z8nBDZDT7SG8giZYgok7LBoQ16Usd+lip vHuw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=u0ut4B+E0h3ijgKitKEhlhSfAINQTp1vAT8c6mNpva4=; b=KHDuJ9ZuTWIroMvgbwkFr4/LHiv59okBcBNw/EIjkOmB+S6m8WxhXElwsopgKwtBTR xYSt+R9IG4YIAludSNMND1VlzmJ04hFDZWDjBwm3f5nYqKfk9prVbhpftYUFWyRSNVsR zpt7/efqHQ9/JY9IhhP5sOMQK71VQNI8Qifx7/WEhRx/sYguePh6p2+JIM95er6wjXfQ P2miXmfJHHbDcE4GB8YCr9EPz14j/U+Fn5IYhxf4vJsBbKM+og3r3/b3WAShSVhPRv6v qAO+X+r6v1/c7NbWUcgBl+4gLizUtXIgUc2frcBqpfjY+QkIs2TYe1FG9N1DhFzifR0R 85ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="cZuCKD/v"; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020a63aa09000000b0052c4026d6absi9749069pgf.623.2023.05.12.08.34.32; Fri, 12 May 2023 08:34:44 -0700 (PDT) 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=@linaro.org header.s=google header.b="cZuCKD/v"; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241870AbjELP1k (ORCPT + 99 others); Fri, 12 May 2023 11:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241646AbjELP1j (ORCPT ); Fri, 12 May 2023 11:27:39 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A77E2D64 for ; Fri, 12 May 2023 08:27:37 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-965fc25f009so1557012366b.3 for ; Fri, 12 May 2023 08:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683905256; x=1686497256; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=u0ut4B+E0h3ijgKitKEhlhSfAINQTp1vAT8c6mNpva4=; b=cZuCKD/vsU6tZh1/XVNGy0WAzBPs2z5Kp0Yqlo7tUpsH9p6YFSGZaEKZgBfuHL2n0X 79Q5Dyhq7QRNDw9ak/D9IPjYaEDDlQKx0HWgjNN6w7pONk9ija4JI5TgDfG19x2korv4 v8gs4GoxxJpMzSBon1uie9LeGj5An60PugmB06wq8oy/Z2yPMxA+rxvjoE5QPeySjiuU Cxj6mPf9mInKPY/xTI6nmf6HXdW6B15iy4yPOLCIsMxfkQwcGNk10GvHni0v+ZhrhuXU yHWaBLynVhpWvYFvQqzWgZfXDrvMT0KvYZCeiLUu5kmwCXdmdJX3RPs9yGAQ61xMM7PG OIzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683905256; x=1686497256; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=u0ut4B+E0h3ijgKitKEhlhSfAINQTp1vAT8c6mNpva4=; b=EbXJFEpq51QNTSFwSI3ySkpBElxuLZOdeJZuWSSNNKIcfwkvtbmqsd0mJMw+6+7UtI 1nkFQMWWL7HQ+5vervZUryLERLrN1otf0nJNebVNWCyrFtnbe/4qp41INhApPoLOjuJM fArcTwGfvOZRlZm4W+jp4suxmMLXcLX70zJEfWHozF5O7eZav0hIxSorl6GJPwo6aiAA kxO9ZfX7hQgd0kqxLLuhrolKJ1qg8I+R80T4samqyF06QYhPhjSEWVCqIKbfCIJRorEw 0sws6qjtWVQoEtVXHsJC+YBdv3SNDC803Vibhkx4aTlxwBIx1ljsqhTgHB2D6igfeYhE 87nw== X-Gm-Message-State: AC+VfDyIWQcWB3CXINO7C6k9M9PmNz+6kQJPSLFBpeYyeyfSQqVqWikj y0EEoaPWf4WoumzLLcvK1JGCZA== X-Received: by 2002:a17:907:7f14:b0:94f:9acc:65c9 with SMTP id qf20-20020a1709077f1400b0094f9acc65c9mr22694649ejc.66.1683905255980; Fri, 12 May 2023 08:27:35 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:7ede:fc7b:2328:3883? ([2a02:810d:15c0:828:7ede:fc7b:2328:3883]) by smtp.gmail.com with ESMTPSA id ty20-20020a170907c71400b0096621340285sm5515134ejc.198.2023.05.12.08.27.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 May 2023 08:27:35 -0700 (PDT) Message-ID: <80f5acfe-a32c-48cc-590a-ee02d2b494aa@linaro.org> Date: Fri, 12 May 2023 17:27:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 07/10] irqchip/cs42l43: Add support for the cs42l43 IRQs Content-Language: en-US To: Charles Keepax , broonie@kernel.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, tglx@linutronix.de, maz@kernel.org, linus.walleij@linaro.org, vkoul@kernel.org Cc: lgirdwood@gmail.com, yung-chuan.liao@linux.intel.com, sanyog.r.kale@intel.com, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, patches@opensource.cirrus.com, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230512122838.243002-1-ckeepax@opensource.cirrus.com> <20230512122838.243002-8-ckeepax@opensource.cirrus.com> From: Krzysztof Kozlowski In-Reply-To: <20230512122838.243002-8-ckeepax@opensource.cirrus.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 12/05/2023 14:28, Charles Keepax wrote: > The CS42L43 is an audio CODEC with integrated MIPI SoundWire interface > (Version 1.2.1 compliant), I2C, SPI, and I2S/TDM interfaces designed > for portable applications. It provides a high dynamic range, stereo > DAC for headphone output, two integrated Class D amplifiers for > loudspeakers, and two ADCs for wired headset microphone input or > stereo line input. PDM inputs are provided for digital microphones. > > The IRQ chip provides IRQ functionality both to other parts of the > cs42l43 device and to external devices that wish to use its IRQs. > > Signed-off-by: Charles Keepax Thank you for your patch. There is something to discuss/improve. > + > +static struct platform_driver cs42l43_irq_driver = { > + .driver = { > + .name = "cs42l43-irq", > + }, > + > + .probe = cs42l43_irq_probe, > + .remove = cs42l43_irq_remove, > +}; > +module_platform_driver(cs42l43_irq_driver); > + > +MODULE_DESCRIPTION("CS42L43 IRQ Driver"); > +MODULE_AUTHOR("Charles Keepax "); > +MODULE_LICENSE("GPL"); > +MODULE_ALIAS("platform:cs42l43-irq"); You miss the ID table. Don't add aliases for missing ID entries. They do not scale and it is not their purpose. > diff --git a/include/linux/irqchip/cs42l43.h b/include/linux/irqchip/cs42l43.h > new file mode 100644 > index 0000000000000..99ce0dbc96a77 > --- /dev/null > +++ b/include/linux/irqchip/cs42l43.h > @@ -0,0 +1,61 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * CS42L43 IRQ driver external data > + * > + * Copyright (C) 2022-2023 Cirrus Logic, Inc. and > + * Cirrus Logic International Semiconductor Ltd. > + */ > + > +#ifndef CS42L43_IRQ_EXT_H > +#define CS42L43_IRQ_EXT_H > + > +enum cs42l43_irq_numbers { > + CS42L43_PLL_LOST_LOCK, > + CS42L43_PLL_READY, > + Are these really used by other subsystems? Your IRQ handling should be anyway next to the driver. Best regards, Krzysztof