Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp457158imw; Wed, 13 Jul 2022 01:30:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vgN8436LR6UunPBGrxp/3JpseP2iyXAvE8cOo3bHzX2r9ZGezJgIMktZh0LzYF4W8BKzu8 X-Received: by 2002:a05:6402:510a:b0:43a:91ff:3f4b with SMTP id m10-20020a056402510a00b0043a91ff3f4bmr3133338edd.187.1657701041987; Wed, 13 Jul 2022 01:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657701041; cv=none; d=google.com; s=arc-20160816; b=shXVZnSIbLSDa2e7SWjeqQ1QcCtK1STKL/Er+ZIlGmBFIh7Xmt1ryvpxMtumCORQZG D47Gzl918RaOZhZc/gGye897Dj9ROEYKWzGl4XVzjYoHq7U8oFWsFavIEE7HiT3iCLze 7Y20QDXEJJlg9sjbOjsWlTpcyZadGp5S9kTgnjFYjcQ08GhheFA27lJoo/NRq/IXbq58 V839LgPsWneu2Nf4JxVvltADvFLM+L745WuTrJlg6zLXH1txV71Y7bsPAppE9tv9Y9o0 QNt+Q55+O0CQfN+bAuGyuRTjkxl5/UoYlk+S798vyKuRtDw9ebTnirJa/h+K/udw/gEJ onEA== 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=ZlY3VXM/QHzKvU9o+3MNd2IiJhLzdLo1xoINNsP4UTs=; b=XbgBH7uVWcVjR9uQI9e64fL7HecNpdC1Qg+fBmlcB6edeomZDAVEwyec2G1t/U4nlv /6QjHow5IBKsL2wCaVn42g1zptb6nRyKGgkNbcOmWJbRy7U+5V9TJ6ljuvkttDUTcnV8 rU4MmFMfTS4g2P55iLeE7bjZI4n0ITlaqEjjkysMwExs5NHoA2w/jzQxhZD6F2k4R8u2 mVwe75zZrc3RbYtO4P9D1Kz5YoGPk3/lk2MXddKjecb0+Ormn9GnpDbWBjyp1kuCf9D4 p1emBGQP5e8yB0H4eMu57TtakMWj4jxfP2PnMjzolARyxXaDUtaiky5+W5PgEuGFHsIL t97A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=LB7Y3psQ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv13-20020a17090760cd00b0072b33601f36si18048171ejc.250.2022.07.13.01.30.12; Wed, 13 Jul 2022 01:30:40 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=LB7Y3psQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234676AbiGMHiF (ORCPT + 99 others); Wed, 13 Jul 2022 03:38:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbiGMHiE (ORCPT ); Wed, 13 Jul 2022 03:38:04 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4168FE306E for ; Wed, 13 Jul 2022 00:38:03 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id j22so18384052ejs.2 for ; Wed, 13 Jul 2022 00:38:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZlY3VXM/QHzKvU9o+3MNd2IiJhLzdLo1xoINNsP4UTs=; b=LB7Y3psQVVEiOl2wnU1xWwm+mTj7HaqJSzK5Y8tJZ8U4jz7z7+3R+o8GMnsOAAjhtw nXD4wzj55zC5Yz8Wrb14/cm4hmZ6hSmT272bBMkMefJVMd3DW6Xb/xDrQD5OgLCG1/t0 svYqgyHqfWQmExcgFCssubphWfZwVJJftNeE2dxPXazfmf84jWmyWL2/Huaw0/ds2WKD HWVwSsprP31zdxbgFjLYAzmPQv5nMSeV/gkWrhYxDVSdrBnA199csc5EI0m4M9YLdBEq 0EMuPrVaytCtcWv3rKgXwbLqU0woI5P4hNUXsS/f/sUldYtD8vZi2qgVCUBztw+2Wu5w Nk+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZlY3VXM/QHzKvU9o+3MNd2IiJhLzdLo1xoINNsP4UTs=; b=E3Sjb+9Qg1gBemS9wHFtwjybTuqVuWA8PNAPaPxlwMRurei7uoAPuNheMnlij3wC3i UhFPe5xAoPAsr72uDRh8XQI0u3/IGNzYQbC0vArfoPgWwafVEnyn3WejDqjZr8q+R3jL 4SE5XHDawPAMLUpQ8/xHK2TDzAipMgO92qhF7WUnGyogmpf3wx9R7VShscMDT26iRwlU 3Mit7pSgiBh8wjKdU0qOmj+L5jGSgQ6mfcqp0ksGomYQCTApTusJTo3yvtg+zU8+Ake0 edSVUwoR20ha0ub1viBTXf6uB4sFPRo3B9rJlCotISVYiPdssBzrqUhhA9H67GWJNLEW Vwtw== X-Gm-Message-State: AJIora8eYnWiyYRxN3pjbcl1Clc2PKZXx/ECbRQOqhGncAehdFE3g+j1 TAAdLrZgwVxinP78y6lCjPir8Jb4dMxiGWo3WpUstQ== X-Received: by 2002:a17:907:2c4a:b0:72b:5b9b:9c50 with SMTP id hf10-20020a1709072c4a00b0072b5b9b9c50mr2145734ejc.636.1657697881725; Wed, 13 Jul 2022 00:38:01 -0700 (PDT) MIME-Version: 1.0 References: <6be749842a4ad629c8697101f170dc7e425ae082.1657216200.git.william.gray@linaro.org> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 13 Jul 2022 09:37:51 +0200 Message-ID: Subject: Re: [PATCH v2 1/6] gpio: i8255: Introduce the i8255 module To: William Breathitt Gray Cc: Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Fred Eckert , John Hentges , Jay Dolan Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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, Jul 12, 2022 at 5:06 AM William Breathitt Gray wrote: > > On Mon, Jul 11, 2022 at 03:02:10PM +0200, Linus Walleij wrote: > > On Fri, Jul 8, 2022 at 1:16 AM William Breathitt Gray > > wrote: > > > > > Exposes consumer functions providing support for Intel 8255 Programmable > > > Peripheral Interface devices. A CONFIG_GPIO_I8255 Kconfig option is > > > introduced; modules wanting access to these functions should select this > > > Kconfig option. > > > > > > Tested-by: Fred Eckert > > > Cc: John Hentges > > > Cc: Jay Dolan > > > Signed-off-by: William Breathitt Gray > > > > This chip is like 50 years old, but so am I and I am not obsolete, it's about > > time that we implement a proper driver for it! > > > > But I suppose you are not really using the actual discrete i8255 component? > > This is certainly used as integrated into some bridge or so? (Should be > > mentioned in the commit.) > > Interestingly, there are some PC/104 devices out there that use actual > i8255 components (e.g. Diamond Systems Onyx-MM with its 82C55 chips), > but honestly the majority of devices I come across are simply emulating > the i8255 interface in an FPGA or similar. > > I'll adjust the commit to make it clearer that this is a library for > i8255-compatible interfaces rather than support for any physical Intel > 8255 chip in particular. > > > > +config GPIO_I8255 > > > + tristate > > > > That's a bit terse :D Explain that this is a Intel 8255 PPI chip first developed > > in the first half of the 1970ies. > > Ack. > > > > +++ b/include/linux/gpio/i8255.h > > > > You need to provide a rationale for the separate .h file in the commit > > message even if it is clear > > how it is used in the following patches. > > > > Yours, > > Linus Walleij > > I think I'll move this to gpio/driver.h as per Andy Shevchenko's I don't think this is what Andy meant. I think he suggested moving this header into drivers/gpio/ because it doesn't make sense for it to be publicly accessible for anyone else than the GPIO drivers. Andy: correct me if I'm wrong. Bart > suggestion. For now only a few drivers under drivers/gpio/ use this > library, so it probably doesn't need to be separate just yet. >