Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp830177ybg; Thu, 19 Mar 2020 09:28:59 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuKtiyqrGQGpzASOZYTHubPm/BQHhdohbCzOb6GnCKqGyvBk8rgipbstvE6c151jQgScCL8 X-Received: by 2002:a05:6830:16cc:: with SMTP id l12mr2966135otr.234.1584635339651; Thu, 19 Mar 2020 09:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584635339; cv=none; d=google.com; s=arc-20160816; b=EZ5BpIDikh0aoxIaUbTRuL1qDT6BlvS+NdfDVKx+u+tNVwWkdwg8FxFgumHH3IyE7L SZXVF5CJ4AH1O8CePCtGXKg1jqlHmlJs0GMf9N645mSGsJM/CeanO84y71CUZiRxgt2Q nz+k7rBqCVjcorzZLBhZ8yCcC3BpHcs8wRBH7BZY8+K7EVu9eZIIraQrQ1dNWS6Npzqb nit+lmO5YMzf6JDkPq3JGsW3qbKX4E1MzaHMuzrW4jcSNQwPapdoN/v6gGw5a4Z7+TBs IvcZpnI+K9t/5f54S6gMTASws1BhL26AmpKmjF+lavCNlpGhL+a6TO6FW8Ga1c6l/uyl SxLg== 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=YYDaI6ZUYjz6psO0DCBs/8lPMQsvbzmxovEzYI6G5/Y=; b=j2c4g9G0c0g0e10y/QwaawImthaEFfUaC+aIYieMvZ7UTJZMyfpU6FEJ9MJ9s7pNbb ao3oXlh2wOFVOKpVA+iWbhbvFPcMDVKwAcmmCheZKJY49iYG9gBNe6OfDhXqA63XpBm5 1AloFTPLmV2Co9SaeiXsan3HOe2vf8C9skoE7QeoUlil6+ylPArlaw2jCUFGR6sStVkW /0iqoQCyrPn9AKmr6an7uUkzSaX72WbmEPvvRbBcToWp4DksxjcqaTV+jFSfb0oV4efO KfWTV/4/NforPj3XlaGKHV92xiYwfOYZEDdaNTa3X6K/vZHjv+Agk9yS9d9kg+FRUzrS R6+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gIvshiTi; 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 a11si1512981otp.55.2020.03.19.09.28.47; Thu, 19 Mar 2020 09:28:59 -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=gIvshiTi; 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 S1727847AbgCSQ2S (ORCPT + 99 others); Thu, 19 Mar 2020 12:28:18 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:42578 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727592AbgCSQ2S (ORCPT ); Thu, 19 Mar 2020 12:28:18 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02JGSCEg026895; Thu, 19 Mar 2020 11:28:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1584635292; bh=YYDaI6ZUYjz6psO0DCBs/8lPMQsvbzmxovEzYI6G5/Y=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=gIvshiTiiBSpOCQOA0IEMnyQfDq9TuNXKWwizQc3vuxbsXlJ6iBx7nceXnOXXlGOp 7EvsyxyOdy0TKWLifQKGzS+/Wv0n2FWEJ7UKm99vmrN+7DnVvS+oiihRP2sa4ANp5B pvwOGqCygUd777pznXqQDrpf2gqn2wmA3CGfYgGQ= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02JGSCTx110542 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 19 Mar 2020 11:28:12 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 19 Mar 2020 11:28:12 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE115.ent.ti.com (157.170.170.26) 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; Thu, 19 Mar 2020 11:28:12 -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 02JGSB9r109960; Thu, 19 Mar 2020 11:28:11 -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 v5 01/11] phy: ti: gmii-sel: simplify config dependencies between net drivers and gmii phy Date: Thu, 19 Mar 2020 18:27:56 +0200 Message-ID: <20200319162806.25705-2-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200319162806.25705-1-grygorii.strashko@ti.com> References: <20200319162806.25705-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 --- 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