Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp580430lqh; Tue, 7 May 2024 08:01:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAvaEjEedb8A1MQ9R4r0Nk0PUupBdBvPfBqFhv9X8qRceSkQ3oSTGIuqSOIJ8V4Dr3QoqAbgm8S8b3iYsMhtjeLox9LiSZ3EBZst/nwA== X-Google-Smtp-Source: AGHT+IFKQY7gcngX+JTlXqaTHqDCKL9XzKwIW8Qs7+fhf6ceAsP+1amOgW95WHx99dFcCRh6VAEb X-Received: by 2002:a67:ad0b:0:b0:47f:3955:9b6c with SMTP id t11-20020a67ad0b000000b0047f39559b6cmr258873vsl.15.1715094072247; Tue, 07 May 2024 08:01:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715094072; cv=pass; d=google.com; s=arc-20160816; b=rO/ysgoGqSAQrngsx71spB+XIoOaPzANZje/cv10k3q6XW0R9+nehWjAFH2+atZ86Z Spjmw3WLFXaBwK9/cZaANWaC1JLpc56lGZFI1J2zSo0rVdy/CNScvVGdmIlsbruoV2QC c/ga0B7jv68b+AW1bQPqLPKBVOdYrx76rZviiTcG8bT9LCEDr+SmCex92oSETBZQU9uD ytc9ZbJRdN/VGTIfA+bqS2gHEZlpT3GotsAZpIX/7ix16e8yfQK+Rth/THR+TSiN4j6o WeIp4eNI7tZ0uO6tGhqhl3p6bqg6Izu21cPhePjNq2cq3ryRQtdTGRcXVX6mqEmtyobr nbhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EGZgqbUbnfpGBgJaLF4Ad2dkoy9ELGBdansrmjn1LlI=; fh=LqXStzZQsDG+l2vX5We/itClVRnXBfVNNYGf8Qhoiw8=; b=qEQMrLl/cYI1g4+M9tzahUyjfIvgfxO8E3Zm7h+4ti5wOwj+zPHub2oIP1EwDHVwBg D8ox/49842xPfHFq04AQcyR5pHGesnMmqPiKMzMqhxXi5WunZKN7hmdECDbLYsUvN+ge 87Nqcn59238PNUPtk95KXlYYZ1RtrgExJpAsjYrpSTIXiDLmfaptO4WwKUIephnpKZ6J gTOgVV/EaJqvWsMxcWLTTQ0I1PmId0kPJetU6dVmP9TSHKDKPXaRNuwKtRTM9HT0hOB8 9y5uWQi+zHjpRQ7eu4BaHq49XtWmSghJZAoheSJzflHO9+hId4YrRlsoZP40qi0btucC fFGQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y8AmCP22; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m9-20020a67f709000000b0047f245f67a5si574031vso.454.2024.05.07.08.01.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 08:01:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Y8AmCP22; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171642-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171642-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id ECBBF1C23896 for ; Tue, 7 May 2024 15:01:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4AEA8161310; Tue, 7 May 2024 15:01:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Y8AmCP22" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6068A1607B3; Tue, 7 May 2024 15:01:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715094061; cv=none; b=WeNxcBrGGvZf8wRfmI6kdwLWkqULRson0FYIIpwSyv0XmynFEjJ2zsAJvFY3DtCnANRAQNNE/qRRilXh3rsfUDrLL0RAyYtz6JIDvVI3cTfY3ik3pm+6bu0VVvGrf7lCg/wr8WHZHyBs0mQZpcrogupRtIESIWii/dnMjiIpo0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715094061; c=relaxed/simple; bh=8a2pyO1gn1Kbk1AilEdpctkENSJMzwz0LXzeDq6SO6I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ddW6kXK1c9elZMTPrsZjC9z691iCwbyOHP+/cAbwjCFFr7N5EWDRn+E0nXiS0vxPtTIwHTIxlIkdauOuIl/tXdSkN0CK9y10OHeoYqGajgYaHxiiEnKNvcgVKGeUq/VH5dEyU6TndG5UfkKhOmHJOAA7AarsjqPlaq3VZqaIZR8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Y8AmCP22; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCF65C2BBFC; Tue, 7 May 2024 15:01:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715094060; bh=8a2pyO1gn1Kbk1AilEdpctkENSJMzwz0LXzeDq6SO6I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y8AmCP226PFSr1YG4tK7kuHNHtRyXGzMaSR8rzq7qFVoJUWZvo4d4WAwq1Tog2Sft xP/tdeNq2x0Hv7QGRCdhyMdoBRJrYhBj2/vXX7OqL+NG7tIgSsct9ZaLK5RG+aLN0u S1ZO9xXZDot7EEgkLuuCj+6nJ8mCaIo97JcEHha9UFZa5E51w2UfQkBpR2P8i2JGg8 6u/3g/Ohu2oy5D6j/HCNlgyZU2b8CJ7/lzuPt4nRwR39EsYibtD+Yw7yOYy2pGR3cY D+jhKdJbx7UP3Wv2qUcS7YMoLw/pJMEQcG5Oiqf5F4C+B86ih/mB3bMXg6duXGUHyA Pk7p2WYVijbJw== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1s4MJT-000000003QQ-0G9L; Tue, 07 May 2024 17:01:03 +0200 Date: Tue, 7 May 2024 17:01:03 +0200 From: Johan Hovold To: Andy Shevchenko Cc: Johan Hovold , Lee Jones , Mark Brown , Linus Walleij , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Das Srinagesh , Satya Priya , Stephen Boyd , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: Re: [PATCH 02/13] mfd: pm8008: fix regmap irq chip initialisation Message-ID: References: <20240506150830.23709-1-johan+linaro@kernel.org> <20240506150830.23709-3-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, May 06, 2024 at 09:56:05PM +0300, Andy Shevchenko wrote: > Mon, May 06, 2024 at 05:08:19PM +0200, Johan Hovold kirjoitti: > > The regmap irq array is potentially shared between multiple PMICs and > > IRQ I'm referring to an array of struct regmap_irq. Perhaps I can add an underscore. > > should only contain static data. > > > > Use a custom macro to initialise also the type fields and drop the > > unnecessary updates on each probe. > > ... > > > +#define _IRQ_TYPE_ALL (IRQ_TYPE_EDGE_BOTH | IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW) > > This is repetition of IRQ_TYPE_DEFAULT. Thanks, I guess I should use IRQ_TYPE_SENSE_MASK here even. > ... > > > - dev_err(dev, "Failed to probe irq periphs: %d\n", rc); > > + dev_err(dev, "failed to add IRQ chip: %d\n", rc); > > dev_err_probe(...); ? This function won't return -EPROBE_DEFER, and that would be a separate change in any case. Johan