Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2183261rdb; Thu, 21 Sep 2023 10:46:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7mr6mN0bPnQyBN3fZ32DoO90k7iEPeO43JHLAEKerym7EUjNTulBdDH0E/w1WMiAFKezi X-Received: by 2002:a05:6808:d52:b0:3a9:e8e2:579d with SMTP id w18-20020a0568080d5200b003a9e8e2579dmr6600965oik.2.1695318383098; Thu, 21 Sep 2023 10:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695318383; cv=none; d=google.com; s=arc-20160816; b=XkfHMhrmn55/8acopfd2NOFmEbBpQ2eFr3xosZM5EM6MUPiaeoK8CfUl79GKua5lPr 5ub+r1cehG/f3qkL1XoHJTob1zS7AtIQkqjL/e3pRFSFA21U6OLLQEPBshsFkatdGWIY HubtGsCJhxsFjsa27CtIuH4CorreATl0fPw7e5Wi8nWkl0qbFkh6ffUSX+uYxzbyoAEg Ny+o4KVcW29hwYo+Xp1pZpIQVLMxDu6lTTysq/tBIpoEMpctXeoF2eGRVk6Wvs1bvUX8 drjq1bJE0lwVfWdjQ++VfiPU7wHUOMcW9VKhqBAwq19z0TBcF7FhSNu2iwzTDRL7ViAg 5zoA== 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; bh=NSlyBwPZ/e+OjulV4XciU6FN8H8ZuEGgyzNqKzEMR+0=; fh=42XwWkcaVGTmqH7uUo+PZlDqm+nqmQc2mhcEoquXlzc=; b=0GZTOOdpH+oec8Q4IBNiB/c69zG5CWK2eW0gnQ5J5pK79pzq6Uv6MEOtKY3+XsX9GH UIg6uSlaBWTDa2wTYcbeV91Kz0qr+egQiUExuLqn1KCEcpfWHijV0VgbiRz2baKiQ2Ri 6MVqGPKFFB3vZ479Yf3iqWvwNQv2CI0aMYglOCxy8DNIv/twpyeD8p0NSmkFvl6vsR4b g78VuSap6GyPASRIS1T1kHLNyo5ksx/v9Ubr9Mir1OqamotnfB+Im4ZrkOf60mTxfZJ1 x68cqhMesYq8qoi5twt4a7f2/3kW7XeQUyb/uJAS1FJZuTbqBVhScVhdo5MOHbqV8zby 8UBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id v1-20020a654601000000b0056a290addadsi1843945pgq.787.2023.09.21.10.46.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 10:46:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6A13B8031E00; Thu, 21 Sep 2023 10:11:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230256AbjIURLV (ORCPT + 99 others); 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 21 Sep 2023 10:11:24 -0700 (PDT) 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