Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCFDCC6FA8E for ; Tue, 28 Feb 2023 19:23:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229909AbjB1TXP (ORCPT ); Tue, 28 Feb 2023 14:23:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbjB1TXN (ORCPT ); Tue, 28 Feb 2023 14:23:13 -0500 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E3E393CB for ; Tue, 28 Feb 2023 11:23:12 -0800 (PST) Received: by mail-qt1-x82b.google.com with SMTP id h19so11795006qtk.7 for ; Tue, 28 Feb 2023 11:23:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677612191; 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=g/b0uWr3dgqZ1asi/GzAEWATlAUrlU6cnc9Vlezp6Rw=; b=suXqrW5RbZvKTDs+nBUPEAkK6erIAK7Tim8NVYd436StKJUEjGF4KRXQO5XLR46lvS uN/l6qVH9HXjs8XE9adugrAyiEd7OIYsa4iHSPzknmyI45geTGdhHFjgwYbywFFLxvb5 Mnz8mdQ+2ABTuX+y2GJpYcaxM4+EiIMVOWjL9HZZo6Z58b7562PlTwROUqgGtVFaYKKu yP/XWNXDbz0kwdZUWHLwPRgfTEitL0Xw7DrzneR8ofPtKacz6nnhUrlWnwN2BrXlaATR WNTZkBWoGJHO3MtArSCbi+s36ZvdyKFVo9ueLJ5+F243YKi0tiVBwWorrbe71PJU6AGN oh4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677612191; 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=g/b0uWr3dgqZ1asi/GzAEWATlAUrlU6cnc9Vlezp6Rw=; b=IptqpkNy84U+SoJSolzWglTwNTtCMnoikH5QTWuvMePU7xh10uLpkIDqUltA5C4ej2 dC1FEPCzJ5bWNt3RbiNV7Y0k1kbMxzLu9HuzHAEGyT38Km9OEMXM6lnUUZKraOkn7Csw 5ziaOOcOxTTDFxwJLBl3ukQO0+MQTPxABXrBvM/hqfn79vdBLTQg4TG1sk13owraxngy Q5nzsVXcoBFkD5nt5UDoZfJDSWPFz1ZpzcAOVhBYZqCX3zvI3tsklzXNsP64dNd9ns5D ny4TY1d/lZ86RfPgqGLrHMgErfSIa1o3snNkCJ1IQ4ap6+9C9untEy8ReI2w6AsZBe7N QTcQ== X-Gm-Message-State: AO0yUKV1YLt4r4ha6nWU2Coj2PkcnIpFknhKDS4DhVYw6+o2aA8EIvfM XdVsQvIY+Kpj91hZrABx31IWeA== X-Google-Smtp-Source: AK7set9rZgqQtBkEW9MPYM/QgyBsfWIyrfbvO2ps+qwOisvx7j9MoM/ge5p3dvNPuOwCguY654UmZw== X-Received: by 2002:ac8:7f88:0:b0:3b9:b817:e9a8 with SMTP id z8-20020ac87f88000000b003b9b817e9a8mr6867810qtj.27.1677612191309; Tue, 28 Feb 2023 11:23:11 -0800 (PST) Received: from fedora (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id w9-20020ac87189000000b003b8484fdfccsm6945353qto.42.2023.02.28.11.23.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 11:23:10 -0800 (PST) Date: Mon, 27 Feb 2023 21:19:28 -0500 From: William Breathitt Gray To: Mark Brown Cc: linus.walleij@linaro.org, brgl@bgdev.pl, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, michael@walle.cc, quarium@gmail.com, jhentges@accesio.com, jay.dolan@accesio.com Subject: Re: [PATCH 0/3] Migrate PCIe-IDIO-24 GPIO driver to the regmap API Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="li0m/Wg1qKuX2nNv" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --li0m/Wg1qKuX2nNv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 28, 2023 at 07:09:50PM +0000, Mark Brown wrote: > On Mon, Feb 27, 2023 at 08:53:39PM -0500, William Breathitt Gray wrote: >=20 > > A patch to pass the device regmap and irq_drv_data as a parameters for > > the struct regmap_irq_chip set_type_config() is included. This is needed > > by idio_24_set_type_config() in order to update the type configuration > > on the device as well as irq_drv_data for idio_24_handle_mask_sync(). >=20 > The values from the config buffer are supposed to be written out in > regmap_irq_sync_unlock() - why is something custom needed here? The PCIe-IDIO-24 "COS Enable" serves a dual purpose of interrupt enabling/disabling as well as configuring the interrupt types. Since this register is used for masking, config buffer would clobber the register if we use it in this particular case. Instead, we ignore the config buffer and configure the type directly for the device (handling the case where interrupts are masked and shouldn't be enabled). William Breathitt Gray --li0m/Wg1qKuX2nNv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCY/1ksAAKCRC1SFbKvhIj K0mEAP940oPJqR3tGyniHVgTfAH+s5UvnI04BQ4PMOzNcFIyeAEA48TRvD2LXfIE OV0zxY1cUlezhCn3P6ZFTEXzNcb3vgg= =xtFJ -----END PGP SIGNATURE----- --li0m/Wg1qKuX2nNv--