Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5017224pxb; Mon, 15 Feb 2021 07:26:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJytAYRRyDFroLfYqTI8/5nIPzAvbYsfy1yzge8OHMBxOz+Q5mB9r6D2blzac2P/KsoTsJmj X-Received: by 2002:a17:906:2bc2:: with SMTP id n2mr15613406ejg.381.1613402761785; Mon, 15 Feb 2021 07:26:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613402761; cv=none; d=google.com; s=arc-20160816; b=baSoibf2Jhrt0e2PvO0ERHGSkB8eDSthS59boB1TLAcg7ZUO5Qz1b8oPVhuHUsHVcg wqEgCoxJazqXCZ5p4lEtVAg8Q/YZCG5LXoqm3QRI25rYHohvQGcsSqYjLvWQEWqzSuZR dY9i3d7dYW60ubF82yApAR1nHwhEdH3HFhpz05GQB56JlrTPB2/9iLJ7gxoL913SKxZp 4E/ZaLloMlupAoRkVjpDSZfATxuo9HJvDUkK9XNAYxPJZVYRIWyybys37NzeNd3WV9Dw CR+S1qkyFn154j9W4kLVzRviD9Lm/FeCp96dkliJ+ud5TZ0aykLzsEH3O8y0AyDKgo+q UK0w== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WXSmurgVe9U93C9zN9eV1TH4quHiWEwphFgpO7qhq1E=; b=vAflNAMCp9bPAb7uFTNo6QsBlLD2O79H9uXWQMrw7lMy7IYB/z/rjXgbZa3ppDhdUF 49RaViPEu75rL57CU044GcCtyDWjgk98NHTbXwnVj9f2BqCj5JEdBibZPGHSbDiZUeZJ VPhU0PBLEd9GH7i+mIRQuOCHhMIle1oRmvtqNrR76bBWzW0tvY0DAHNtHWaRjQcOidZm K7RRDttBBbqDWJ+PlZEXVRHyTeuqDqO6JlBiXNCev9chB10mivZA3rmu12dBF/v7vpYF P4hrkqW9aTovxT6RDzQGRzlrCguD72d7FC4Cu9/rLM+WMafUS4ZdMDYgkw4xyDoEUdRQ X0SQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id os3si12425544ejb.661.2021.02.15.07.25.38; Mon, 15 Feb 2021 07:26:01 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=toshiba.co.jp Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230147AbhBOPXG (ORCPT + 99 others); Mon, 15 Feb 2021 10:23:06 -0500 Received: from mo-csw1115.securemx.jp ([210.130.202.157]:47520 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230270AbhBOPWq (ORCPT ); Mon, 15 Feb 2021 10:22:46 -0500 Received: by mo-csw.securemx.jp (mx-mo-csw1115) id 11FFKG6n024333; Tue, 16 Feb 2021 00:20:16 +0900 X-Iguazu-Qid: 2wGqn5DuWuqX2Ss3iz X-Iguazu-QSIG: v=2; s=0; t=1613402415; q=2wGqn5DuWuqX2Ss3iz; m=/wKFgwyBTwVVVznr0ILCXsnu0TO+86riP91KaZy3nkg= Received: from imx2.toshiba.co.jp (imx2.toshiba.co.jp [106.186.93.51]) by relay.securemx.jp (mx-mr1113) id 11FFKDcG038195; Tue, 16 Feb 2021 00:20:14 +0900 Received: from enc01.toshiba.co.jp ([106.186.93.100]) by imx2.toshiba.co.jp with ESMTP id 11FFKD2G008102; Tue, 16 Feb 2021 00:20:13 +0900 (JST) Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.toshiba.co.jp with ESMTP id 11FFKCeJ017228; Tue, 16 Feb 2021 00:20:13 +0900 Date: Tue, 16 Feb 2021 00:20:11 +0900 From: Nobuhiro Iwamatsu To: Arnd Bergmann Cc: Leon Romanovsky , "David S . Miller" , Jakub Kicinski , Rob Herring , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , DTML , Networking , punit1.agrawal@toshiba.co.jp, yuji2.ishikawa@toshiba.co.jp, Linux ARM , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/4] net: stmmac: Add Toshiba Visconti SoCs glue driver X-TSB-HOP: ON Message-ID: <20210215152011.5q7eudtfzn7afmfi@toshiba.co.jp> References: <20210215050655.2532-1-nobuhiro1.iwamatsu@toshiba.co.jp> <20210215050655.2532-3-nobuhiro1.iwamatsu@toshiba.co.jp> <20210215072809.n3r5rdswookzri6j@toshiba.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Feb 15, 2021 at 01:19:18PM +0100, Arnd Bergmann wrote: > On Mon, Feb 15, 2021 at 10:23 AM Leon Romanovsky wrote: > > On Mon, Feb 15, 2021 at 04:28:09PM +0900, Nobuhiro Iwamatsu wrote: > > > > > > Sorry, I sent the wrong patchset that didn't fix this point out. > > > > > > > I asked it before, but never received an answer. > > > > > > I have received your point out and have sent an email with the content > > > to remove this line. But it may not have arrived yet... > > > > > > > Why did you use "def_bool y" and not "default y"? Isn't it supposed to be > > > > "depends on STMMAC_ETH"? And probably it shouldn't be set as a default as "y". > > > > > > > > > > The reason why "def_bool y" was set is that the wrong fix was left when > > > debugging. Also, I don't think it is necessary to set "default y". > > > This is also incorrect because it says "bool" Toshiba Visconti DWMAC > > > support "". I change it to trustate in the new patch. > > > > > > And this driver is enabled when STMMAC_PLATFORM was Y. And STMMAC_PLATFORM > > > depends on STMMAC_ETH. > > > So I understand that STMMAC_ETH does not need to be dependents. Is this > > > understanding wrong? > > > > This is correct understanding, just need to clean other entries in that > > Kconfig that depends on STMMAC_ETH. > > 'tristate' with no default sounds right. I see that some platforms have a > default according to the platform, which also makes sense but isn't > required. What I would suggest though is a dependency on the platform, > to make it easier to disable the front-end based on which platforms > are enabled. This would end up as > > config DWMAC_VISCONTI > tristate "Toshiba Visconti DWMAC support" > depends on ARCH_VISCONTI || COMPILE_TEST > depends on OF && COMMON_CLK # only add this line if it's > required for compilation > default ARCH_VISCONTI > The fix at hand is the same as your suggestion. Thank you for your comment. > Arnd > Best regards, Nobuhiro