From mboxrd@z Thu Jan 1 00:00:00 1970 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 80D06E7D0A0 for ; Thu, 21 Sep 2023 17:11:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbjIURLV (ORCPT ); Thu, 21 Sep 2023 13:11:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230445AbjIURJ6 (ORCPT ); Thu, 21 Sep 2023 13:09:58 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 605957290; Thu, 21 Sep 2023 10:05:23 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="466801385" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="466801385" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 04:27:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="776381793" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="776381793" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga008.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 04:27:23 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1qjHq4-0000000GsPk-2hpT; Thu, 21 Sep 2023 14:27:20 +0300 Date: Thu, 21 Sep 2023 14:27:20 +0300 From: Andy Shevchenko To: Wenhua Lin Cc: Linus Walleij , Bartosz Golaszewski , Orson Zhai , Baolin Wang , Chunyan Zhang , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, wenhua lin , Xiongpeng Wu Subject: Re: [PATCH V2 3/4] gpio: sprd: Modify the calculation method of eic number Message-ID: References: <20230921090027.11136-1-Wenhua.Lin@unisoc.com> <20230921090027.11136-4-Wenhua.Lin@unisoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230921090027.11136-4-Wenhua.Lin@unisoc.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 21, 2023 at 05:00:26PM +0800, Wenhua Lin wrote: > When the soc changes, the corresponding gpio-eic-sprd.c > code needs to be modified, and the corresponding > Document must also be modified, which is quite troublesome. > To avoid modifying the driver file, the number of EICs > is automatically calculated by matching dts nodes. > Fixes: 2788938b7946 ("gpio: eic-sprd: Make the irqchip immutable") > > Signed-off-by: Wenhua Lin Same comment as per patch 1. Also, fixes needs to be grouped at the beginning of the series. (I don't remember seeing Fixes tag in the patch 2.) ... > +#define SPRD_EIC_VAR_DATA(soc_name) \ Misindented \ > +static const struct sprd_eic_variant_data soc_name##_eic_dbnc_data = { \ > + .type = SPRD_EIC_DEBOUNCE, \ > +}; \ ... > struct sprd_eic *sprd_eic; > struct resource *res; > int ret, i; > + u16 num_banks = 0; Preserve reversed xmas tree order. -- With Best Regards, Andy Shevchenko