Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1795974pxy; Thu, 6 May 2021 16:31:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa38eh2uBdu/h1Vs/oyFaky1h77XyeRlDuUbibGLhToQi2YzxoJh0hNUQr1hHC1RzVYVwH X-Received: by 2002:a65:464b:: with SMTP id k11mr6952165pgr.407.1620343896949; Thu, 06 May 2021 16:31:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620343896; cv=none; d=google.com; s=arc-20160816; b=lIH0NtNQqRU7b8qBQz6ej1PIOiuzGe+46BfSIoIHjaZtBVg4EAdKEe+uCO4qtHzKWr Szowxy0yU7mG8/42NUDkiwtRmdmoI+Zsj4zgz/g3O77esYVR83A0kky3N6aKLjUEhOJS rsEUku5taQ980ipWuWylsY7T5r7j1JCytCQpvNIYPGBoJ8ciB1zvCarA9Iguph2WFtLE 5pL1IrEnDVAgbZsOtWO2ZQAIUXLd2I5mZKL8RTzAoUzOiPvO0bthTatq6ZVvJ3ire9KK M0DPHj5nlMOjH55D+rIqSLoglzs+KeBCpSEQb5OP+7SwTu7frMaDHl4ZIDt9YIwhKqjo jrVg== 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=WFWC5fpqRaGTrdHip1X5fLtWHN0bHh1jKIs9xXOqvCo=; b=XT8XRsDaHXgP7/CvvHY1ByUlgJ43XHgUu5iZYenliZgMvtRtFpe4b+xb9qS8Pz1RVa vzx/iikwYz5R0aZp0HBV2GfdeaueYbydZHdUQRevaUfLGcM7FDSSk7CUmm0v8SeXh8O6 Sl+MKcnTzfCcLBQ9tcxuh5aTI+3k0f2qSljC95bGFEQa2I+jS5FG4aQup2jeS94P68wA lzNbNqhmiYHp3QhSbXjiF3ELdKzGC9iC9+dyWquoBrEbkW6gUJhDahCo7EgRSwGGv0rv GqFwej4si90i6iYATu8obxtXd6p//f1/z5mZkZj7IS6hArC7LiiRva06DcVnqCo9KjD1 +mtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=gIZdu0zr; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f17si4754344pfj.102.2021.05.06.16.31.23; Thu, 06 May 2021 16:31:36 -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=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=gIZdu0zr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236242AbhEFRWa (ORCPT + 99 others); Thu, 6 May 2021 13:22:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236227AbhEFRW2 (ORCPT ); Thu, 6 May 2021 13:22:28 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D96BC061574 for ; Thu, 6 May 2021 10:21:29 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id h202so8327750ybg.11 for ; Thu, 06 May 2021 10:21:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WFWC5fpqRaGTrdHip1X5fLtWHN0bHh1jKIs9xXOqvCo=; b=gIZdu0zr3ZpqagrNEPWKcIoKlDQ3CN3N4AfPVFDzDwIzpjXbYoPYUXkop+y/aLEtfz 3ettPFVeGcLlr4fq/lsEw/tIMWiYKroW2ITLgrbICh3bDGmgLCVh6HAKLS5dpdQCbaVy TCIFNQayODjdnB/b9uuRoOQgHzdMgPjVIV28h1P3VJF4tAUmlXEa2xB98R9EEl31VcO1 lOmjoaGvnJE9sbfUTDEQ/2zk2O/nnntaNJHqYHPyuQXesjFftBABGdTFcO1IzothY6X2 OVwnFlQeHYu6d67xD5WlSGxktHzDZw59uV4aqO6sldVr0vaeBBTGfaDNPmcTqipGzS7+ dJ2A== 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=WFWC5fpqRaGTrdHip1X5fLtWHN0bHh1jKIs9xXOqvCo=; b=g1hH7YeA+dk2q58Ah1MhdWtk6/gV48fFWFBEb6B/lJsZNfsc1Tgl1gEIaXlOaXJy4T bJu+lGHQ2mJlGgsYFXBYI4sK6lnjO8BR7w7jQgpncYu+bMaGgC4Xzbs/OPjFJU7PHbQu /sKGJ5Mw4JvryMileiBCfzVRxKWDkV6THqHQHP5ApYnjx8szNT2//aGtQZN4TX4VgY5Y fT5mKinY9F/zq9NsXabDiYlLGFo6zUckBViJb0KmtsuIh6vBQxczJ32kz3kv3kfvEt+/ tm0aSpoD7cdO7L7E7mhFWJwj3CydGTgOiNYhO4M/8NJZUQrnuEJlbMV3YcAQqlpxMptI dxIA== X-Gm-Message-State: AOAM530rKTEWDoxV+KQ+7t4CcR8mmPTzAFqmiDv5ylQ+JenMAJc8Fsbg kVWF8ndPkuR36SiEV2K+IThxYouD2C8DEkmVHyuelA== X-Received: by 2002:a05:6902:102d:: with SMTP id x13mr7583894ybt.40.1620321688463; Thu, 06 May 2021 10:21:28 -0700 (PDT) MIME-Version: 1.0 References: <20210430123511.116057-1-robert.marko@sartura.hr> <20210430123511.116057-3-robert.marko@sartura.hr> <20210506140024.GB3340759@robh.at.kernel.org> <3905879e67d50d6a7f73fcd83982c052@walle.cc> In-Reply-To: <3905879e67d50d6a7f73fcd83982c052@walle.cc> From: Luka Perkov Date: Thu, 6 May 2021 19:21:17 +0200 Message-ID: Subject: Re: [PATCH 3/6] gpio: Add Delta TN48M CPLD GPIO driver To: Michael Walle Cc: Rob Herring , Robert Marko , lee.jones@linaro.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, jdelvare@suse.com, linux@roeck-us.net, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-hwmon@vger.kernel.org, Jonathan Polom , Paul Menzel , Donald Buczek , =?UTF-8?B?Q0xFTUVOVC5DSEFORyDlvLXlvJjmhbY=?= , upstream-wg@lists.dent.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Michael, On Thu, May 6, 2021 at 6:40 PM Michael Walle wrote: > > Am 2021-05-06 16:00, schrieb Rob Herring: > > On Fri, Apr 30, 2021 at 02:35:08PM +0200, Robert Marko wrote: > >> Delta TN48M CPLD is used as a GPIO expander for the SFP GPIOs. > >> > >> It is a mix of input only and output only pins. > >> > >> Since there is no logical GPIO numbering arbitrary one is used > >> along dt-bindings to make it humanly readable. > >> > >> Signed-off-by: Robert Marko > >> --- > >> drivers/gpio/Kconfig | 12 +++ > >> drivers/gpio/Makefile | 1 + > >> drivers/gpio/gpio-tn48m.c | 191 > >> ++++++++++++++++++++++++++++++++++++++ > >> drivers/mfd/tn48m-cpld.c | 6 +- > >> include/linux/mfd/tn48m.h | 3 + > >> 5 files changed, 212 insertions(+), 1 deletion(-) > >> create mode 100644 drivers/gpio/gpio-tn48m.c > > > > > >> +static const struct platform_device_id tn48m_gpio_id_table[] = { > >> + { "delta,tn48m-gpio", }, > > > > Looks like a compatible, but is not. I think you can drop this and just > > use 'tm48m-gpio' (the driver name). > > I'm just curious, why isn't the vendor included here (as there > might be a chance for name clashes in the future). I'm looping in Clement from Delta as well as the Upstream Working Group from DENT [0]. Thanks, Luka [0] https://dent.dev/