Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4205483ybb; Mon, 23 Mar 2020 15:55:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt6Xk1AA9tJ3bZRgYJcXsmxryM3pKtCwRnzoNskvkoppsZL0cW8gvCve1hyIIscsKSsvLD+ X-Received: by 2002:a9d:c69:: with SMTP id 96mr21074232otr.77.1585004111646; Mon, 23 Mar 2020 15:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585004111; cv=none; d=google.com; s=arc-20160816; b=u7WxghKZyzsJYeAOKywtLo59PqymjFUliZ+Wl91EoV7b8jc7y2rWOw2C/5y5g3OyZC JrIZ7rQmy8zBOgtBt7Gr3roq9fiUph+Osru2EKWd75y51uwFe4tjVcAMyRahye5K0dmI A9whIMoHhCFHw9XmkJS1yHcq7zo3kxSAq5Ajv3coJ6vbLiughCTC8X+PQ/R5f8CzAgyQ cM75FxT5RFfZ6aVhiwOIl85C4fcwMoEXyi8xYk9M99DxT1IN/HBlR+jj2vJWS8fzXAbS x05XoKScSGMTGG4GRgeoNMvN/JJhj2j1spdfEqJaIJjOtsVwGWLLm7I2q85XY+ahcihv hPlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=r+sfqraITYcKJAQvGWd1Eaf2bkxsbyuiSdj02KQUtLM=; b=QoEefM/j5iaqOyhH2c2O5IJ6xVJO0oKIW1c2RNMc7fQtxKip9ZtfmmNItx3mIdzh2J xcZEuqiVrFnKkFOV07cMQSEFeIQTJKaS8BlUK+5ms7AoJos2zFD6ayAR7B9dywami7RU +iK3bjwAW/omsUmRpX+qjTG27zWpuXbMM306v/DdG2+LY0y17WVCYpLsqRxLY88vbrJL 0Nl/qHnmfZnK0BVCoP77OOb2As8gwlQE2NQ91QM112tT+Ll1W74oWEFQOXA5hLrsUwM0 nf/fDXMhBki7wmWwZW13SXXAxWYh/CL3/JW0a2tZj+O0m0KFriOq033CqRk2V8MUEQOD yO0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qDU3xfyd; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k92si8590883otk.261.2020.03.23.15.54.59; Mon, 23 Mar 2020 15:55:11 -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=@ti.com header.s=ti-com-17Q1 header.b=qDU3xfyd; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727092AbgCWWxG (ORCPT + 99 others); Mon, 23 Mar 2020 18:53:06 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:53012 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727036AbgCWWxF (ORCPT ); Mon, 23 Mar 2020 18:53:05 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02NMqwLU046211; Mon, 23 Mar 2020 17:52:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1585003978; bh=r+sfqraITYcKJAQvGWd1Eaf2bkxsbyuiSdj02KQUtLM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=qDU3xfydhzoAMTW4OURb+SlNnr7hjs0MAbuNLcFHEASMQxcdn35YME5oRldzz8456 G6ZG0/UEhJklk3NbAQHXRutZ2/ujMOJ61jAdd+VQERcJxTa/KK8fGtvibdnKc/3Rvx mUtPy+SAXkGUo1mHuETYiQELsLijo7cUp7B2PHNA= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02NMqwWW049927 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Mar 2020 17:52:58 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 23 Mar 2020 17:52:58 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Mon, 23 Mar 2020 17:52:58 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 02NMqvjJ125515; Mon, 23 Mar 2020 17:52:57 -0500 From: Grygorii Strashko To: Peter Ujfalusi , Rob Herring , Tero Kristo , "David S . Miller" , netdev , Roger Quadros , , Jakub Kicinski CC: Murali Karicheri , Sekhar Nori , Kishon Vijay Abraham I , , , Grygorii Strashko Subject: [PATCH net-next v6 01/11] phy: ti: gmii-sel: simplify config dependencies between net drivers and gmii phy Date: Tue, 24 Mar 2020 00:52:44 +0200 Message-ID: <20200323225254.12759-2-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200323225254.12759-1-grygorii.strashko@ti.com> References: <20200323225254.12759-1-grygorii.strashko@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The phy-gmii-sel can be only auto selected in Kconfig and now the pretty complex Kconfig dependencies are defined for phy-gmii-sel driver, which also need to be updated every time phy-gmii-sel is re-used for any new networking driver. Simplify Kconfig definition for phy-gmii-sel PHY driver - drop all dependencies and from networking drivers and rely on using 'imply PHY_TI_GMII_SEL' in Kconfig definitions for networking drivers instead. Signed-off-by: Grygorii Strashko Acked-by: Kishon Vijay Abraham I Tested-by: Murali Karicheri Tested-by: Peter Ujfalusi --- drivers/net/ethernet/ti/Kconfig | 1 + drivers/phy/ti/Kconfig | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ethernet/ti/Kconfig b/drivers/net/ethernet/ti/Kconfig index bf98e0fa7d8b..8a6ca16eee3b 100644 --- a/drivers/net/ethernet/ti/Kconfig +++ b/drivers/net/ethernet/ti/Kconfig @@ -53,6 +53,7 @@ config TI_CPSW select MFD_SYSCON select PAGE_POOL select REGMAP + imply PHY_TI_GMII_SEL ---help--- This driver supports TI's CPSW Ethernet Switch. diff --git a/drivers/phy/ti/Kconfig b/drivers/phy/ti/Kconfig index 6dbe9d0b9ff3..15a3bcf32308 100644 --- a/drivers/phy/ti/Kconfig +++ b/drivers/phy/ti/Kconfig @@ -106,11 +106,8 @@ config TWL4030_USB config PHY_TI_GMII_SEL tristate - default y if TI_CPSW=y || TI_CPSW_SWITCHDEV=y - depends on TI_CPSW || TI_CPSW_SWITCHDEV || COMPILE_TEST select GENERIC_PHY select REGMAP - default m help This driver supports configuring of the TI CPSW Port mode depending on the Ethernet PHY connected to the CPSW Port. -- 2.17.1