Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1218305pxv; Fri, 23 Jul 2021 03:01:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxioAN0TsQlikwV3EvFahh/AmuW5ovwoK9Y69LBT1PGpA44xZk7uCvyBIk7NbwsYgBZ4QaA X-Received: by 2002:a05:6402:74c:: with SMTP id p12mr4552491edy.153.1627034503776; Fri, 23 Jul 2021 03:01:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627034503; cv=none; d=google.com; s=arc-20160816; b=i4vieQBcvIETphSlIpLAi7RKCS9cLBnE2jkZEzCX91/FRFq/Cxm1z15E3CF9VFtUh5 LytAjwXEIokl4MON0taALvFpfqnWeZtOPbZm2RUH19zPwoY0PeMuGqSZWQrsDsiVeJIQ cKK94fsEKjadwp0J82gRvZsDocoRIs42LdlPQVk0CUSFS/gjTAC6GLOW0t1zs1D7d3nI aLpQlFyNLb1/GjachtKiFD1rdh/iz7ZXH1C/9MkzpHRYIMVy3bxsCWw/q5Tw9RzQtrrd 8NN31ob/qC8/1Hp5y9JeFNv3BIUEHEMBUZoTqEk++mJV+nIiIMBnK/GEhLC7Pu3OcW1G nl3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SpdYc3xSgtWajYNjziQJhjZECPeeHzOqtqZRcb4yQqc=; b=QR2WUvqySlqSuCW5mmvX4iRVIjY8/SKgtfAfAJ79ruDLwVwEU3NwpbVLRjBfsk06T+ 3KiFWIGs439579CWp2elTQmWDKyPkQqskWTWiVS/ee2pIg6tS0QP0F/7Cd25EzjrRqMp 18Vfo+UoLk1EU9+2JtXdjMFMBn0z6i8R7Ye9OSC4SIanN8wAuR1AzhkLO+QlMKH/hF3w lNzalmyEN2R7ntQMFEM7tuvtLptacbxxi3Vuierk3CQNyGwppYnxE8j1H+fNEVRT5FOP 0z3H9TNVzlwggpU7OJMaU75fFJ1tfRCU6Ux4BNa7LFdQFkPdlOEolyJF4vy1etG8q+Bp qWCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J4vXy3Pk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si17617925ejx.346.2021.07.23.03.01.19; Fri, 23 Jul 2021 03:01:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J4vXy3Pk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231600AbhGWJS5 (ORCPT + 99 others); Fri, 23 Jul 2021 05:18:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230478AbhGWJS5 (ORCPT ); Fri, 23 Jul 2021 05:18:57 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A637EC061575 for ; Fri, 23 Jul 2021 02:59:30 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id bp1so1190992lfb.3 for ; Fri, 23 Jul 2021 02:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SpdYc3xSgtWajYNjziQJhjZECPeeHzOqtqZRcb4yQqc=; b=J4vXy3PkMvHxHdXmu8xSRDtPSWRGZj4bvC9RE+NDkeFb/PTCBojquyjxYoZngKBukS StiIvPkV6z3a4W0B8hsOOpPd56wDC4/LyODf5o51sUjkXGS3ucbtUeYTkr94FeLsZI9I d/R2VLKwJQK3bJWZQLXJSN6SLC9IZL6xwfLqxpqKB27esWapnkfxI/ZewCl9USmE1DTo kZb5/7oUS8YBZG820r03EGq5+fhpw5hGyE/Qt+x4QpGZ5MjPKM/SHl6GNiSaYRBBDAWC bljyLdTixfD+4zsprywxA0yyv73D4hssAtXXAZHB7zNeFMXzeqagJqMleKxY2ih80i8M 7oiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SpdYc3xSgtWajYNjziQJhjZECPeeHzOqtqZRcb4yQqc=; b=AjtUsmDgYGMk+1HQq1Z2eGt/wjqqBWzgP9M1T6NR4f7ZLjOqSLtZw2Tfamm8OhMOEi xuo8hikyBHlNHVBx3xIqCnHQMCHMtNWMPmr63FUt6xScWciwQq7XipPsiqWmE1rocs65 HoyMToalRPY4yWnDqFBL1vauSx4Q30PdGgC4uYw33rW9S2118mYDFbBGwOeDG3CVbxEB HaN1CFF0ClIw2Mu69BXbm6aXRg/wmaXs0PAq1SlCeK3t/sTVYshqvhTx01IHvJ3LJ6gB yIAIUEWaUT2UfGjKBErAPChCd97rcE+IinwyFdDNr4DvqfKvS0XgubgwBxOfzFubBCQ8 xT4Q== X-Gm-Message-State: AOAM530kR7Q3gqnyV00F3hnZmoy/2cy9EAc0k8VfbGF67etHRQAwNUfK cmOhpu6cG/tIXwUpAo8KUC+8ElYEZl1ODus+rqAGwQ== X-Received: by 2002:a05:6512:3f1f:: with SMTP id y31mr2589495lfa.29.1627034369078; Fri, 23 Jul 2021 02:59:29 -0700 (PDT) MIME-Version: 1.0 References: <20210712100317.23298-1-steven_lee@aspeedtech.com> <20210712100317.23298-8-steven_lee@aspeedtech.com> In-Reply-To: <20210712100317.23298-8-steven_lee@aspeedtech.com> From: Linus Walleij Date: Fri, 23 Jul 2021 11:59:18 +0200 Message-ID: Subject: Re: [PATCH v6 7/9] gpio: gpio-aspeed-sgpio: Move irq_chip to aspeed-sgpio struct To: Steven Lee Cc: Bartosz Golaszewski , Rob Herring , Joel Stanley , Andrew Jeffery , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list , Hongwei Zhang , Ryan Chen , Billy Tsai Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 12, 2021 at 12:04 PM Steven Lee wrote: > The current design initializes irq->chip from a global irqchip struct, > which causes multiple sgpio devices use the same irq_chip. > The patch moves irq_chip to aspeed_sgpio struct for initializing > irq_chip from their private gpio struct. > > Signed-off-by: Steven Lee > Reviewed-by: Andrew Jeffery Reviewed-by: Linus Walleij Yours, Linus Walleij