Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13616717rwb; Sun, 27 Nov 2022 08:26:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf7h+0t3Pa4dZ27qk0el676wgCo4ijl+r1+eTAFKMprAdjx19Wy7bO2xg7BLJNL+NqROgZ3m X-Received: by 2002:a05:6a00:1696:b0:537:b0c3:691 with SMTP id k22-20020a056a00169600b00537b0c30691mr27998372pfc.59.1669566397394; Sun, 27 Nov 2022 08:26:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669566397; cv=none; d=google.com; s=arc-20160816; b=0StFumazflXJkbw+PjFNHjfn24I1AomXfCjvYySL3hiQGyhz5wuiW5CmyB9s9MGBoe PNndHpWzf/DkbDLKrHWD6RymYTbNCRJBFVxDpF1LgKefuGt7Tkxnt6P429zTzTg10Z2m mhopaBcnW0nUh/w0bMn1kkED2m8yJcNJCZrIxmuQfaVNlMibuLPI1o1xJ+v8o2uMMAqT 7si6Ybz4/J8SJmHkL9QxOO5tTRoZ/e0s9kWyLVkT/JdrJ2TXQZCsI2MFzcR9pR00euoo WbM4K1X1quswCGNfJOkYTZYA3zh7TifzZfVRTMdEbjQQWE9wDubGln5s1s5GwnrpoB1v 5wVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AtjqZ4VyQ2SYUlYtB4PTJx1v4nCQ3nxMf68+9BKzhLk=; b=dIppnh0om/2NxE22vSbFjF8gL0K0qdliFtkZ6qW2ATCzbw8+7Vpuf3A6gOP0hK3Qde b6aZcsADdGBtMzp8pNB/jqxj0bBN46jNt0SqQc+VQZbC6omjjMYHXfnxoUYZ/mfvWuUk qFoDytwU3ZiAoQPGtes5z0L6Z01VNki9xTksSNZxHVCYalmp4fosNCxh3u3LBi4749In OdcSgQGDyQ0mp9UaQjz/8fH6oPuHZiqQuqt00T6fvka7jJ7M6wSfsm7ey3sxrVbGONR9 QW5StUg2nvkNJQfA5mDY1rIOKecYJ//JxthvEF0OJI+ChalRVp0SfTBS8IjUnhoSueh6 MPiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dONEegcN; 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 u4-20020a17090341c400b001889ad48288si11176039ple.384.2022.11.27.08.26.26; Sun, 27 Nov 2022 08:26:37 -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=@linaro.org header.s=google header.b=dONEegcN; 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 S229619AbiK0QQm (ORCPT + 85 others); Sun, 27 Nov 2022 11:16:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiK0QQk (ORCPT ); Sun, 27 Nov 2022 11:16:40 -0500 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5556EE08 for ; Sun, 27 Nov 2022 08:16:39 -0800 (PST) Received: by mail-qk1-x735.google.com with SMTP id c2so5715927qko.1 for ; Sun, 27 Nov 2022 08:16:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=AtjqZ4VyQ2SYUlYtB4PTJx1v4nCQ3nxMf68+9BKzhLk=; b=dONEegcNUovvXPFpBHhQ1u9J3Sw5I9EkMgV+aC9ZFLGhmzamjsXQzeHuxs+B5naUW+ /UX5ggr5c4stnMjbiPIigvCHpnR13z8E/P+WjJPXiUV+ZBk0Q55F/vbNKiEy1JxPagXV wkrSVeLtpZGIWxXbIGUufp3ZHa5m+0vPbI66yeLgyJCic23Lq5aMtV1st53ewqDbEoUi 91Xwa+kis9DY6eoIpcW7aYXDUOdyl07d9eUsAdpE0zam0tTeuhKSSX6ChuNhDn5Yf4Ub Lw2VRfJx7FVHbES1HuHv7pP/uOUzgvBSGGs/kVJgk0WoHDEbndFkmk4L9zWzFMRrkyAD bsKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AtjqZ4VyQ2SYUlYtB4PTJx1v4nCQ3nxMf68+9BKzhLk=; b=meLt2MH2sNK5GiluN7kljOvaVUhoEltpV8Du6feOSR+QyjQtE+d4wn/UO8V5XHvGep b7cH0eSiGor84DCD9DrPZ1yIAhwrXxPgzlUVM8QW5ilG+AYlp0HTOc+frZiAORc1tx4Y 9fGGy+b3nHQLGpRCBScrOQkzCrBJvk7aNwbaozeKCd4kuNPAn7wPrAGJAwsy9J7AcqyP JTsn6RLRZ/YIEEAJNj0A+BNBHxSSN232GzN3SvAZ62uWM/G8b482MCmYc8BHCRVj5TQs qzOaF6FIz2vflXe8RFXxgLUmlUxuQHGFiPOtI+d5dGjlAfUYJQSqzsEPx5h17lolleLn atgQ== X-Gm-Message-State: ANoB5pn9XMZBOW5jWeFdEEzQb20aAK9T5JiXcL9zozUBAXBa+aRNTxEd RNwZHMadSxlZN9V70039al1W8g== X-Received: by 2002:a05:620a:a10:b0:6fb:a7e6:96e with SMTP id i16-20020a05620a0a1000b006fba7e6096emr41309467qka.675.1669565798741; Sun, 27 Nov 2022 08:16:38 -0800 (PST) Received: from fedora (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id k11-20020a05620a0b8b00b006fbae4a5f59sm6474650qkh.41.2022.11.27.08.16.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Nov 2022 08:16:37 -0800 (PST) Date: Tue, 22 Nov 2022 05:29:23 -0500 From: William Breathitt Gray To: Andy Shevchenko , michael@walle.cc Cc: linus.walleij@linaro.org, brgl@bgdev.pl, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, broonie@kernel.org Subject: Re: [PATCH v3 3/9] gpio: 104-dio-48e: Migrate to the regmap-irq API Message-ID: References: <80fc819bcafe9697b6e02c0750d3cf0ea4ec9e1b.1669100542.git.william.gray@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dAH3nmkLpM+wn5fX" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00,DATE_IN_PAST_96_XX, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 --dAH3nmkLpM+wn5fX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 23, 2022 at 05:01:53PM +0200, Andy Shevchenko wrote: > On Tue, Nov 22, 2022 at 02:11:00AM -0500, William Breathitt Gray wrote: > > + /* Initialize device interrupt state */ > > + err =3D regmap_read(map, DIO48E_DISABLE_INTERRUPT, &val); > > + if (err) > > + return err; >=20 > Use ->init_hw() callback for this. In a subsequent patch 7/9 we remove direct gpio_chip registration in favor of the i8255 library registration via gpio_regmap. It doesn't look like gpio_regmap_register() sets the init_hw() callback. Michael, do you see any issues if I introduce init_hw() to gpio_regmap_config? Or do you think this IRQ initialization belongs somewhere else? William Breathitt Gray --dAH3nmkLpM+wn5fX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCY3ykgwAKCRC1SFbKvhIj K/qAAP9JKq+jiO5wBIRFqknwUP4kgTw20obC2XXbW7O0jmpmOwD/WPCVDxfX7NxH dwnxNFjvUotQnD29N4jiKwsw5Fmgfw4= =aPrP -----END PGP SIGNATURE----- --dAH3nmkLpM+wn5fX--