Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp1618138lkv; Wed, 19 May 2021 14:11:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxumrbHBNhjmmfa6KqX33hXwTPp+Yc49qg8b/p03vitbnGcq9jXUEz5gaQzrCabHStNQq8f X-Received: by 2002:a05:6602:2d8d:: with SMTP id k13mr1753718iow.121.1621458665459; Wed, 19 May 2021 14:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621458665; cv=none; d=google.com; s=arc-20160816; b=S/haWf22lDWKguAfc4J+UCiUajFX6BACSffJNegV6zFM2VjSnvZXuWgfHGjYwIlp9c T5MrdHThR10qrJaQV/hK7Bfz3Sjv5Ec5MXSxW65Gc7z/pUpvf7MkDfSZxMoQkroSjROj rKPQwvX1UYeZhIbyqU6kl/6dRZp61MIQ9y15nESyy9rzaUfTx0pj+c5vQ/PoNPUbOTOX yuP0eDhbEcyxWMnFslisUt8A9g7esDsXMDgr2+eWtcJ9k3xcIqyJVIQS38SimKsHjw7l zcNWzeeUS7qFr8InBcSFN968LETKwZ5ZfmSKatjSsXRHBhUtXtudvYjcgjlp9JtCJ6oy i8xg== 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=UW7fZiIlXVfl0Qc0/A9Hj0P585Ftj5tVT/omHdWRq4I=; b=N9OSz/uyDXMrhfK1lNSnj1I34oUwSsgksndsGWjLwmwXDmUZZZVGPS9I4kyeKhi4xg ZAv+ZTpVnUSXplvnlP+4gjN2QZM0hmefAHt3awJSyNuX+sGV4977B3tju6nuPzv1IyCd 7WBk8BHBaSPJvMHVf6mwpiuG43yFDb/b1X24vumoaKzlo05EJEqFMzC7186WE54p/30E WaMOLBKu2BWuFgXoCm6+/xy14iLuT0zcaJXONcaLpgPA64YxTOW9yqPuq5JH+HPkwXqa Kau2ArNKaKKS9fwD0QM+dXqdAETXcWJ8pQQNTNU27Hr6Boj4huKFa99xZ7nuTAO+vGRR r7yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura-hr.20150623.gappssmtp.com header.s=20150623 header.b=xLPFHrob; 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 f2si513070ioz.41.2021.05.19.14.10.53; Wed, 19 May 2021 14:11:05 -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=xLPFHrob; 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 S239763AbhESLy5 (ORCPT + 99 others); Wed, 19 May 2021 07:54:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240419AbhESLy5 (ORCPT ); Wed, 19 May 2021 07:54:57 -0400 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 775E3C0613CE for ; Wed, 19 May 2021 04:53:37 -0700 (PDT) Received: by mail-il1-x12e.google.com with SMTP id h6so11965695ila.7 for ; Wed, 19 May 2021 04:53:37 -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=UW7fZiIlXVfl0Qc0/A9Hj0P585Ftj5tVT/omHdWRq4I=; b=xLPFHrobZa2WtMv3ql7wPlAv5Tlyo5PmflSYyt63GdY1dJxV6q/++PoWUU73Vm8I8Q XhykK9d/2gYBEup6fAwa2XK+Umf9GBrejU/zdN/Q5H/8/Fgml0iNnb1gBdWV8iOy8P1v VJBUZDNw3f4iM+zvum6Yav1e8S+RzjRmzu0EQdDYM46bamsvc9oBTDOc27AOk9ZJPMzN hX73g9wxPHDs13xqAScfxHl1X2NLKl1zx/r5cxUNm2PlXAJ2UXr+O1mvsXUmJHXY/j3m t340Ij6y4xra8yVLLznQQEYhjk9BsM/rX0jQObGJQmoKKyBeJyAiwsCqGdNfZvj/t9ir +/cw== 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=UW7fZiIlXVfl0Qc0/A9Hj0P585Ftj5tVT/omHdWRq4I=; b=ro44mr4ebZYkcM26q0QvXLcIEcR0J3RtDCWet1FRp8qzIpGOQvy85ayE82V3StzNgq ggKAif51E2rXMEfmny/afszDXK1dOaXLlCdmKaizyY1N7MLXsYgHMtidjL8JevIFhoo/ Y25d4QEHDef/dS8dsCrDn0dO7rmZnsbUc+ai1EtKJL3qVxK2Q5ZfDmN/tmL2h4e+3ZtX Z63fGAt4P4o+Rn0XRmxOq+ZLRjjw31q0jM/3vFS5LFOODGOtKdU632X6Hsi4/u7xzjKO TyNxlK0vLUajAkg5u4l9kZkGmmi3E9UF4DWoCqlSOL1hlR3BlosRf9zLExBI2wr58J3f tHSg== X-Gm-Message-State: AOAM533C098rCuBfu177aickrCkyJcvcnRlBa8x2RRtXtlsEXVekmAiU URs4RyDQbDm8W0gO1TkSdqDLniWM3zS7TPNpW5cbvg== X-Received: by 2002:a92:cf45:: with SMTP id c5mr10915199ilr.182.1621425216452; Wed, 19 May 2021 04:53:36 -0700 (PDT) MIME-Version: 1.0 References: <20210430123511.116057-1-robert.marko@sartura.hr> In-Reply-To: From: Robert Marko Date: Wed, 19 May 2021 13:53:25 +0200 Message-ID: Subject: Re: [PATCH 1/6] mfd: Add Delta TN48M CPLD driver To: Michael Walle Cc: Lee Jones , robh+dt@kernel.org, Linus Walleij , bgolaszewski@baylibre.com, jdelvare@suse.com, Guenter Roeck , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-hwmon@vger.kernel.org, Luka Perkov , jmp@epiphyte.org, Paul Menzel , Donald Buczek Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 6, 2021 at 6:34 PM Michael Walle wrote: > > Hi Robert, > > Am 2021-04-30 14:35, schrieb Robert Marko: > > Delta TN48M switches have a Lattice CPLD that serves > > multiple purposes including being a GPIO expander. > > So lets add the MFD core driver for it. > > Did you have a look at mfd/simple-mfd-i2c.c? Hi Michael, Yes, that was my first idea but we have a requirement to expose CPLD information via debugfs as there are userspace applications using it. And simple-mfd-i2c does not allow us to do so. Regards, Robert > > -michael -- Robert Marko Staff Embedded Linux Engineer Sartura Ltd. Lendavska ulica 16a 10000 Zagreb, Croatia Email: robert.marko@sartura.hr Web: www.sartura.hr