Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1530252ybb; Thu, 26 Mar 2020 02:30:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvesEuPAkbdEof5RPcEkmeSfEoOksZ8WYW+6SqEibtWaiF/cwoTEgSXE7b53ztcY1s2V5Xs X-Received: by 2002:a9d:7c94:: with SMTP id q20mr4921687otn.150.1585215009553; Thu, 26 Mar 2020 02:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585215009; cv=none; d=google.com; s=arc-20160816; b=PHauhtk1yhDsfvgJxa2Asviibw/8oR+GUS/a7B5kGMm5nglEr9C5/dHdVVsvy4rK0A cMkYL8oP+xSj3hL9nt/jPPWCh7JpMAzmU+2AlCmMXIxh6cxaSTsmzgJYwHT0KChq7juv aY2kQ1/TIo5LDalkXLkRvdEZn2ydNm7WCVqSegpLEGq9zdjlFuIdcUuFmwKbX+3bXC1v MawyQ9v0n9zMwqbcZK7TFq38J5Re8LKL7qJXK3lAEgMcLz5Qg2eaSVkdbTuiWv0Df4/f a5goqCy9LRp6LxCJ7tN0ClH/lQKNaJ2qoy6181lYEsNUpHvEoglhBfrL8f8ayut6UvWD G5kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UBGWriIek5v0PtwSr6maLDwCqpBsKEE/T0ObkYjazh4=; b=t6g9/rjc0eG+K75vJK8hRpejtSLS1yJzODwOzr1TzHYjnIizhmSEl3qi4hJJYyW2+o Ma3Dyyl5JzeqY9aMoQpWNyLBRozcK7xEJjwMCCAZnm8IbCVET8nE9xlF4aDPMKIErxFN ZLl8v5r17+eYWrz3Da4/yMOXRDgmmudOM8dSUpzIwhfCQ5ek7bBlrkSO+LbUZC0mJg+I /0wwwnzXTya1AMr8tK+IPTywqPttq8QyjQI3KBZ6vvVedpEiGa4AJQWf2us4bYNmOrKX SQlzQgA8yDBDgXM0U57zqCD/aCUbjNsLn2boX5BsQM/ez21ni69Yg8MY7QDw8W9jU6mP 4oiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hMamO+S9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 97si796746oth.209.2020.03.26.02.29.55; Thu, 26 Mar 2020 02:30:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hMamO+S9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727729AbgCZJ3d (ORCPT + 99 others); Thu, 26 Mar 2020 05:29:33 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46421 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726292AbgCZJ3c (ORCPT ); Thu, 26 Mar 2020 05:29:32 -0400 Received: by mail-wr1-f65.google.com with SMTP id j17so6739879wru.13 for ; Thu, 26 Mar 2020 02:29:31 -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=UBGWriIek5v0PtwSr6maLDwCqpBsKEE/T0ObkYjazh4=; b=hMamO+S9uSMmYirEaLH+WfXFn5+pTev8UTI/BfQPluXmQLkA/kXVl5thwb0WHj3NXG OVUFYKndO40SrzZ6qK0V1tbFuUPkiPiUTqaTM/B5UMOIiVgJgKXJwiVU4h1AC4jIkytq e+IGBbozBs8D/xONjMpQFLUbMQjP9CiBRVTVcY/L9/PdE8Q13bleCYZaDi6uX4en4sOd TdaKqyIEHYjQidJ2rJPX9MnUKBhwZjJ51Y8XxXjEwiwE7rZUBs7+pqWNoR4mIKy7T6F0 le773exPPJCMvTvSy95qNOzkWpG6DtKzDwXVWRc1SfC7amIWxhAXvlhQMD0ndTHOsSfr KVkg== 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=UBGWriIek5v0PtwSr6maLDwCqpBsKEE/T0ObkYjazh4=; b=tsTgOcWy9NX6n1KF0mAKbaikJ1mTfRGhMhpmlIy4XvPx+H9EA/J9pYHnTN1R7PcWkk PdUp4uvx7Ryq2F93P1Q5Gti/DqFZCCbDxVdp5WE/XbUx/H2RE7ZkokP+ZQ4WD+Fg7JLk HHlF8uKOj5NnhWm59LddD5S7vQMqdWzMl4cogMtP68FWNzWxmbwX3BsEI66EJ6c5LrMm cR3BN2eNy8tecfNU9sS3vut1ittuG6AyeRwv30dgj8r989C02vmetkSIQ6ap7xwAsKkx leT9OgjCJvWEFWTlY986WPTMrXDtKX9tQ6CpdKWtRh4NpSPuXeNy2arJCCkryyFpneuU /yig== X-Gm-Message-State: ANhLgQ16BwFuJeDsDhCQ1Nxad06TL7A2bySfPnXvnk5BLlVoOORmWAZy 0McrQf4lGd4hX0i8kkxz8XXvhQ== X-Received: by 2002:a5d:6ac8:: with SMTP id u8mr8786646wrw.53.1585214970465; Thu, 26 Mar 2020 02:29:30 -0700 (PDT) Received: from dell ([2.27.35.213]) by smtp.gmail.com with ESMTPSA id h26sm2598633wmb.19.2020.03.26.02.29.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 02:29:29 -0700 (PDT) Date: Thu, 26 Mar 2020 09:30:19 +0000 From: Lee Jones To: Enric Balletbo i Serra Cc: linux-kernel@vger.kernel.org, Collabora Kernel ML , Andrzej Hajda , icenowy@aosc.io, anarsoul@gmail.com, Neil Armstrong , matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, megous@megous.com Subject: Re: [PATCH v4 2/4] mfd: anx7688: Add driver for Analogix ANX7688 chip Message-ID: <20200326093019.GC603801@dell> References: <20200318070730.4012371-1-enric.balletbo@collabora.com> <20200318070730.4012371-2-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200318070730.4012371-2-enric.balletbo@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Mar 2020, Enric Balletbo i Serra wrote: > The ANX7688 chip is a Type-C Port Controller, HDMI to DP converter and > USB-C mux between USB 3.0 lanes and the DP output. > > For our use case a big part of the chip, like power supplies, control > gpios and usb-c parts are managed by an Embedded Controller, hence, > this is its simplest form of it. Other users of this chip might > introduce new functionalities as per their requirements. Hmm... So first impressions is that this 'driver' doesn't really do anything useful other than checking the running model. I think you're better off using "simple-mfd" and doing the ID check inside the useful/functional child device driver(s). > Signed-off-by: Enric Balletbo i Serra > --- > > Changes in v4: None > Changes in v3: None > Changes in v2: None > > drivers/mfd/Kconfig | 11 +++++ > drivers/mfd/Makefile | 1 + > drivers/mfd/anx7688.c | 87 +++++++++++++++++++++++++++++++++++++ > include/linux/mfd/anx7688.h | 39 +++++++++++++++++ > 4 files changed, 138 insertions(+) > create mode 100644 drivers/mfd/anx7688.c > create mode 100644 include/linux/mfd/anx7688.h -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog