Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4385040rwb; Sun, 13 Nov 2022 05:13:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf6IVB+scWZKcjPaf52dTpNaVAPOZZklCfH86EEtB5rYNEb3wWjtZexM28grwga+GJ2rVIDf X-Received: by 2002:a17:90a:5b14:b0:213:e74b:b691 with SMTP id o20-20020a17090a5b1400b00213e74bb691mr9992116pji.81.1668345191346; Sun, 13 Nov 2022 05:13:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668345191; cv=none; d=google.com; s=arc-20160816; b=GrWToZUyNejIBikNFLXipoPrHSXwTyH8oogcoIzr5V13PFrsma6cb7QXHJ38D6v4uA 2cOwdObgctuf76sscVw3kf2iHkrIKkeFPgEEjsjCnaXNTQ7HIjNJBXGl9rCm8TCaHsqT plt7S42UZN44hoD0FUPWTR1oSrpWRdn3Dww3aaXzRXx9WwdrAE0qpn0aqS5c4bsIz7ld YFCol8mfllpON4F4LKZSKOf9yGv6HdnFnQB48wRLTKumEFsVY73MGWFb6GlNtv9DInKr DA8isZg1F3wt4iC+YxBoHgpgwW4gZxCORgpPBURMiKBLOfZA+QuHmFazEjzlEXcWeamJ B7bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=o2Kh45uddffKpok1UNQH2wfSMasJPnoq81eibcwGiPM=; b=gVFDeQ6qhnAeQUhrL6ObgRTUUxi4lwNuipcb7mxmPxpmZUjz2kdkHpZP1jQingtVyg AuGTgVYlo+4MJG6UhVzoSOYbqdGmk5dUOT/CdeWXs3fKreGP4xEt84GUIE7JrtwyyKlN CaDQYhJN5YC1SHUpb9QkTyckuh92Zne8wGRkXCTGZtxsWfEtG555/5SLednteVQvV8Z6 pSsTA74UtGdgrcNyr8g6fA0GrG49tsULstwibMo8YFGsb2kRcJ1pLFR9A4POKBOFE/h9 9NsK7x+t3auBc5dZ6qlIFCpDEtfC7WARDBmJ3k02dz7bvJezZV4caHb04cqwYe+7vKPE l2kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ARwVl6fx; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 68-20020a630047000000b00439befcf830si7276619pga.854.2022.11.13.05.12.58; Sun, 13 Nov 2022 05:13:11 -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=@intel.com header.s=Intel header.b=ARwVl6fx; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232676AbiKMMwr (ORCPT + 90 others); Sun, 13 Nov 2022 07:52:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233454AbiKMMwp (ORCPT ); Sun, 13 Nov 2022 07:52:45 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82FF212ADA; Sun, 13 Nov 2022 04:52:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668343964; x=1699879964; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=WfgPPDuQdDb/vxvL2QBg0JV1eZu6yCyOBqwRrjyf7lA=; b=ARwVl6fxDnZYX/qVpGcFKszAtZfPwQh/p6ZFsgfC1n3VdVL4smqqIwaM txlbSX20iaBAxaX1k65YFbr85LtxoR6ASwMtvyGNdS0ZaJcgvb0w/8ujE MNvzLeSSYiESOd52p3JfU/z/fAPAm139Sqor0MVXLB8IXijq1qXAqDxSV bz4sVOjaEjVA1znJeOquDt2mT629kS6Gv+o4Z5WwP86uc5oZJinZViVeW 8LXn7KNlOroMfxbqBNhm4EmqYMTPBYoELuLSuc0O11SFdc3wHBWtaOTS5 f6hsN5QBK2yL7sk4aP0bCg4TIdJ8QqUakhFJrkO0bE2nUCICYDhLcGAEM g==; X-IronPort-AV: E=McAfee;i="6500,9779,10529"; a="376074164" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="376074164" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2022 04:52:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10529"; a="669302081" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="669302081" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga008.jf.intel.com with ESMTP; 13 Nov 2022 04:52:41 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1ouCTY-00BgGu-0Z; Sun, 13 Nov 2022 14:52:40 +0200 Date: Sun, 13 Nov 2022 14:52:39 +0200 From: Andy Shevchenko To: William Breathitt Gray Cc: linus.walleij@linaro.org, brgl@bgdev.pl, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, michael@walle.cc, broonie@kernel.org Subject: Re: [PATCH v2 4/4] gpio: i8255: Migrate to regmap API Message-ID: References: <61327a67cc308af413471a69a4810b2785e53e8e.1668129763.git.william.gray@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <61327a67cc308af413471a69a4810b2785e53e8e.1668129763.git.william.gray@linaro.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Thu, Nov 10, 2022 at 08:55:53PM -0500, William Breathitt Gray wrote: > The regmap API supports IO port accessors so we can take advantage of > regmap abstractions rather than handling access to the device registers > directly in the driver. The 104-dio-48e and gpio-mm modules depend on > the i8255 library and are thus updated accordingly. > > By leveraging the gpio_regmap API, the i8255 library is reduced to > simply a devm_i8255_regmap_register() function, a configuration > structure struct i8255_regmap_config, and a helper macro > i8255_volatile_regmap_range() provided to simplify volatile PPI register > hinting for the regmap. > Cc: Andy Shevchenko Suggested-by? (I'm not insisting, just consider if it's appropriate to use here or in the other patches) > Signed-off-by: William Breathitt Gray > --- > drivers/gpio/Kconfig | 2 + > drivers/gpio/gpio-104-dio-48e.c | 397 ++++++++++------------------- > drivers/gpio/gpio-gpio-mm.c | 151 +++-------- > drivers/gpio/gpio-i8255.c | 429 +++++++++++--------------------- > drivers/gpio/gpio-i8255.h | 80 +++--- Can we actually split this to a few steps: - providing gpio-i8255-regmap - providing gpio-mm-regmap - converting the driver - removing not used modules (one by one) ? In this case if any regression somewhere appears, we can always perform a (semi-)revert for a certain driver. -- With Best Regards, Andy Shevchenko