Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2109948pxj; Wed, 19 May 2021 23:50:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/Sf+BdPDRBQheog+O/dLRSj1IAA3aXB8u4iJcXFp/RywhglVuem5EfgTjAWG1a+lz6pc5 X-Received: by 2002:a17:906:685:: with SMTP id u5mr3106855ejb.449.1621493454863; Wed, 19 May 2021 23:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621493454; cv=none; d=google.com; s=arc-20160816; b=QimRKZ8zgXJOuEy2NZjxF4pJo+U2VPk0pFNbHMa56WS4Co+sTavx2KUjdHLM9kCW6q lhWLSdi/sN/gtwSVFq8pxoUWz8arUkZQ9dsgXyX8bN+UEQXp1AaLOH9RXAzNLS9/gTpz sOzhW61UD+GLKfP95hUmA+BuzXjjw4Pikl8jW5YqjRYLqpBXhDR6AgA3bbg+JJBK1lHQ N0hAMcydh4R1G2WOh+xnowWynDXFcDpYBecRjl41/8W5JOBZnxRf8fWyuNVjOymHgN0K WWOzl/uI8vK3voBznu+9khpKfchJYRID0aufqzNpSLN6t3uq/W6cdNOOQFLltFMlYiLQ xyCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=E1ZuZRCTlz6/Ws9j0pRH14oGlY9lvvE2LqjzptzYfhQ=; b=t9Ljl+vi2FssUkujvlif23gOFOzfN+8jAhqXqxY+EVH4g5njkVyT8fISufo+NFLzao l3VgYsC5tGVTXUESKsl1IU7zhbfk4XaKLHtJd43F+fXpYL8orEtj7MjR3UGKeULIzZqw 53tXfZph8ThbTT92hQAFAcGXVZ9FecNbcsvaC4dYFvd6Dd7BWJ9wlpdN28cgHBZSJHcl pbabstw6ZwUU9PJr7gulfLx/F5WFe2evkeAg5WowAC2F63zSvq7nhD70IZlYL9a8dJ0a eYogA9+SDNGm9C8asjXu0wJPVefAVaeRH34GvW+klhaZjz1SS3LyjvZ1ezXEEOgN8pbp MyLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=axSDBqF3; 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 u11si1592196edq.89.2021.05.19.23.50.30; Wed, 19 May 2021 23:50:54 -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=axSDBqF3; 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 S229681AbhETGu4 (ORCPT + 99 others); Thu, 20 May 2021 02:50:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbhETGuz (ORCPT ); Thu, 20 May 2021 02:50:55 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFBA6C061761 for ; Wed, 19 May 2021 23:49:33 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id q5so16384132wrs.4 for ; Wed, 19 May 2021 23:49:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=E1ZuZRCTlz6/Ws9j0pRH14oGlY9lvvE2LqjzptzYfhQ=; b=axSDBqF3Sq8wkc0WbH3CZY6xm95L5mDZQFgCfOftPV9fglwEx33FuoeYTqysdF5CgO gvOAGVJZQq0bB6/K5ulo+fN8Xt1eZcfui9dS+YxqacaFmgLBTh8mXE30GkWIW8mG4gop b0nJpOKu1eMSEZ+P+wGt5ZABOMNItvm0iPiYRFJv+CJh5SovDDgyJ0JY0nRv5zqoWaqy itEp92jB45oI7wAH/FQlDEMKw9mTUrE2qbi7R+h0oBTAjQISeI9YlMa4waCbqKrl2PPq C/dmLBHaaav0k/lPwIQGhyye7uVNYzDQItA2FuQSU7y1eFiI9/+9GnlGjOgxZzuX/enh EoGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=E1ZuZRCTlz6/Ws9j0pRH14oGlY9lvvE2LqjzptzYfhQ=; b=q7+xjfEfvAdFuxQjbKt8j3QfJoqIthyH8YGgIr42rbEiV3mjjRNykymSEhjjQMi+aN l4CegVOBmDD/D0ShsMMgQCNbXARAFYYEuPZY+ETU6M5j0oTDxurWLpRjwcAPRpT9Fea2 zA2CaKeHPlmp05ZDFpRgJFB2B1q/uYSCroLzaKT0AP6OxjMUtXiBgI6y6HXHECRTlWdH SW8pdkls8xuSa7WQYHT1BoWp2ObM6YYiFMAnfNHBI1qb9gE5RNuxiVFYLNfjeLFTsHCw jR3f/NFyUKF0iWO4Ls63J5yXDsK76fkG3etGTSn6rBo0SlPAevqmqaSLUnuWW/25Lo01 xMeA== X-Gm-Message-State: AOAM5313amtrITXTMyFtB2FJ3v3AK4IooVN0BapABZ7hY/OLOOlHnjOh K0OxCqvAqQe0feFlwBtJBZPepQ== X-Received: by 2002:a5d:4b08:: with SMTP id v8mr2606935wrq.122.1621493372212; Wed, 19 May 2021 23:49:32 -0700 (PDT) Received: from dell ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id p2sm1930764wrj.10.2021.05.19.23.49.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 23:49:31 -0700 (PDT) Date: Thu, 20 May 2021 07:49:29 +0100 From: Lee Jones To: Michael Walle Cc: Robert Marko , 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 Subject: Re: [PATCH 1/6] mfd: Add Delta TN48M CPLD driver Message-ID: <20210520064929.GM2549456@dell> References: <20210430123511.116057-1-robert.marko@sartura.hr> <0f28cabf858154842819935000f32bc2@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0f28cabf858154842819935000f32bc2@walle.cc> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 19 May 2021, Michael Walle wrote: > Hi, > > Am 2021-05-19 13:53, schrieb Robert Marko: > > On Thu, May 6, 2021 at 6:34 PM Michael Walle wrote: > > > 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? > > > > 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. > > Mh, last time Lee wasn't very fond of having a driver that just populates > sub-drivers while doing almost nothing itself. See > https://lore.kernel.org/lkml/20200605065709.GD3714@dell/ Right. I still feel that way. > That being said, I'd also like to expose our CPLD version, but until now > haven't found a good solution. Why though? Does S/W *need* it? -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog