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 X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78AFCC433B4 for ; Wed, 21 Apr 2021 09:19:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 38C2561428 for ; Wed, 21 Apr 2021 09:19:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235020AbhDUJTm (ORCPT ); Wed, 21 Apr 2021 05:19:42 -0400 Received: from elvis.franken.de ([193.175.24.41]:34846 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230516AbhDUJTk (ORCPT ); Wed, 21 Apr 2021 05:19:40 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1lZ90d-0002YJ-00; Wed, 21 Apr 2021 11:18:59 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 744F7C07CD; Wed, 21 Apr 2021 11:18:43 +0200 (CEST) Date: Wed, 21 Apr 2021 11:18:43 +0200 From: Thomas Bogendoerfer To: Andy Shevchenko Cc: Linus Walleij , Bartosz Golaszewski , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" Subject: Re: [PATCH 1/2] gpio: Add support for IDT 79RC3243x GPIO controller Message-ID: <20210421091843.GA6174@alpha.franken.de> References: <20210420123932.24634-1-tsbogend@alpha.franken.de> <20210421083214.GA5694@alpha.franken.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Wed, Apr 21, 2021 at 11:48:59AM +0300, Andy Shevchenko wrote: > On Wed, Apr 21, 2021 at 11:32 AM Thomas Bogendoerfer > wrote: > > On Wed, Apr 21, 2021 at 11:09:51AM +0300, Andy Shevchenko wrote: > > > On Tuesday, April 20, 2021, Thomas Bogendoerfer > > > wrote: > > > > > > > IDT 79RC3243x SoCs integrated a gpio controller, which handles up > > > > to 32 gpios. All gpios could be used as interrupt source. > > > > > > > > > > > > I would recommend looking for latest new drivers in GPIO subsystem to see > > > how you may improve yours. > > > > Could give me a better pointer to it ? I looked at a lot of gpio driver > > and took what fitted best. > > > > > Here just one question, why it can not be a module > > > > that's probably doable... > > > > > why arch_initcall() is used > > > > without that interrupts weren't avaiable early enough. > > > > > and why you put a dead code into it (see the first part of the > > > question)? > > > > hmm, pointer please ? > > It's already in the question above, do your homework :-) is this some sort of joke I'm not getting ? git log --oneline drivers/gpio/Makefile 2ad74f40dacc gpio: visconti: Add Toshiba Visconti GPIO support that's the latest driver added in v5.12-rc8. Is that a good one ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]