Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4527742rwb; Tue, 6 Sep 2022 08:43:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR6XXjU4EbXxNO6oWl1XQ218YtDpSeZkm0K1PPaSk2NrL6tIpgZzzJ5zh+CUie7DThgbqya9 X-Received: by 2002:a17:902:edd5:b0:174:a6e6:51f4 with SMTP id q21-20020a170902edd500b00174a6e651f4mr44936451plk.82.1662479023474; Tue, 06 Sep 2022 08:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662479023; cv=none; d=google.com; s=arc-20160816; b=DRfjgsaMitAvehqLN8Y4R7qHwhuU8IaU4fI3XQp/MjaYdzjKudZMCSlVGAqfAJvWN0 zF2tto2azwh1ROfW95zbo3isQqUCmelrEDQL1GEU2Sq0Fwhth3TO7wPgkADxlW7Qktwv xLco9MuDcIYe5pMDWLL/3vWGDgx0fZ4uUW05BpHsTbInZpXGkhHw76qFhk6GFLnSX8rg SuxND5aOtR23W6/+kEhQTGARXaImbtmcgytxZxrYmt9ZSgRfMsdCBMlmFQsPJGbPzZ35 Ccg7fXRXUC5iLwJ8heCqBqtLvlnOEWZxCpKjR4KDku8Yju8Zxbh6o2U6ePudyHgrPBCM xSDw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8cbwhgFW1IO3imaFJz7fr1t5PVo8hfSbyGEHdcsreg0=; b=Up0zuOebQiEJmnT8so17qk7osDuGhFTcKlRoxS4NNMOGiw2sQbmEPeemO0a8iTG7WI PwsGfGr0dxQL6eojwlNp3kNPJf+KLxMJw596okLXMJunHY3KyKfSKgLn089MUn1+Lxvg tzWFxjYkSH88dIkVqLg0nP+mB+pFkJ1qJrnHrD0gQqYV1zHPCY59zmy3fR5gx7+kWnXd EFjkAxX6xDr1VYBg00/7VcS8DgSN0/ij5IjFYVZomY5/CTGO/yo09jUQLAULf3MqdUBM JLfAIBS5EOXAloJivsBoSqgUaFH/XpWUCU3l2lNuyVTXhD3fx7keXUfMPpnc/Q8dFrTi PZ9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dKeVmEtp; 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 k63-20020a628442000000b0050cfb4ff72dsi16098618pfd.52.2022.09.06.08.43.31; Tue, 06 Sep 2022 08:43:43 -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=@intel.com header.s=Intel header.b=dKeVmEtp; 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 S234542AbiIFPRf (ORCPT + 99 others); Tue, 6 Sep 2022 11:17:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232640AbiIFPRQ (ORCPT ); Tue, 6 Sep 2022 11:17:16 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DA8C91D25; Tue, 6 Sep 2022 07:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662474607; x=1694010607; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=qYqPp+SqKYB0kW1r5YRu9Qox/5WN1GPuqBVB5ntM/wE=; b=dKeVmEtpwaffUB+WogSSGgHeSd+Uo7lK/3LUnJkCbVeBr+JebU4FB2p6 q2O33FN1G8aSygHiT2HV7/tTxe0xRtUSSaRQI+iK4VzHehN1Fs+cIOZS+ FcyXiVp9tlDWFA/0CF+EWNNN/kRldVZKY6555cGJt+gNQsSsaywtK32GY xtHzg5Xvi3KDNtKA67dmJvSDeC/EEVtohBJXnFSMmTBi4Qy1hKXyDdpxq K3j0VDpFf3gZGYogI3lAQkAk1AV3edshat7XRHBgQqqaJyvwXyVT4Gd23 ko9pmz+3GOv27Ze+0vLNJVu1o1fBctGKbzPncJovQk4uj0h/yaozQzprJ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10462"; a="360554915" X-IronPort-AV: E=Sophos;i="5.93,294,1654585200"; d="scan'208";a="360554915" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 07:28:41 -0700 X-IronPort-AV: E=Sophos;i="5.93,294,1654585200"; d="scan'208";a="565113463" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Sep 2022 07:28:40 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1oVZZ7-0099gK-1n; Tue, 06 Sep 2022 17:28:37 +0300 Date: Tue, 6 Sep 2022 17:28:37 +0300 From: Andy Shevchenko To: Martyn Welch Cc: Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5/5] gpio: pca953x: Add support for PCAL6534 Message-ID: References: <20220906082820.4030401-1-martyn.welch@collabora.co.uk> <20220906082820.4030401-5-martyn.welch@collabora.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, Sep 06, 2022 at 03:01:51PM +0100, Martyn Welch wrote: > On Tue, 2022-09-06 at 15:24 +0300, Andy Shevchenko wrote: > > On Tue, Sep 06, 2022 at 09:28:19AM +0100, Martyn Welch wrote: ... > > > +???????u8 (*recalc_addr)(struct pca953x_chip *chip, int reg , int > > > off); > > > +???????bool (*check_reg)(struct pca953x_chip *chip, unsigned int > > > reg, > > > +???????????????????????? u32 checkbank); > > > > I would think of splitting this change. Like in a separate patch you > > simply > > create this interface and only add what you need in the next one. > > Can do, though I didn't feel you were particularly fussed about me > having split that out... Oh, it just would be cleaner to see what you have done for a new chip support. Up to you and maintainers. -- With Best Regards, Andy Shevchenko