From patchwork Mon Oct 8 23:49:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 148467 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4243038lji; Mon, 8 Oct 2018 16:50:02 -0700 (PDT) X-Google-Smtp-Source: ACcGV62Oy7LI/aZCyK+YRsNXxRKnZ33Kt4zO9sm8FeIOZu65St7/+qaZAcTQoPLA4KX+mjDlGHBI X-Received: by 2002:a65:65c6:: with SMTP id y6-v6mr22685529pgv.233.1539042602295; Mon, 08 Oct 2018 16:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539042602; cv=none; d=google.com; s=arc-20160816; b=VzzF3OwmX10/R3aTUyM/wSvB7vVAOZdOk/EjKG43QUCmXVc7qT/zvaO87+eDVK1OeI 3XCw+pPJvGuDR9and4psDUB0fpHRNmHwp26LRA1l94DRMYrc4hC0Y97sycRaKNZAn0Rg 5G8F3BVkD3DIE7NlVDoBBYq9Hb+mAKijjgvp5iDs3qP5Q/LMxBOdFzQYyfRu7bT6tEo9 EG6+fvBhpZi1BsX2MPvwlyO6WVMI37wY9mbMOkfoAJnqLZDJl9mcV1+w25tkjHoo+5VL Gmrhbap2Xqn5MABHN+cs2qAsbxSLm/qM28RzuaB4Ih3qbHz8X1tvtYGvcKbw0cGO/BQ4 DnrA== 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=85hfGuh+Ks3roiNMaMUxBKOuiJrYoqG3YSSqK90z+B4=; b=cjKXSlBZl67QlcM7oZff8XjZ/WdEDiqaT7nWjkIemiwJ8WrXL5Vi2xlVw1qlrEhB7V XixjwbUX0SaTkevkbzHc34LlDtZqBgD4AT5OywKAUV2udzh/ZjTK36XlxbxY+QGmScDA /4XJh8fNCI57+KjQs93nAlOfkHtlCX/HuQ6awJjuMhJJDQAsS4jFZYu2L3OTlyyx1l9b dcmgrkSrar7zVFb4euxSYYUuZk0IcJMJJptSbzwwEc/pOM+pmIH9x534BPywK3eAeu+A PQQo2ktYqqpvTUoz1I3Y+OJ5RQlP9BH35/qaQs+vTBJ71w2LaXyBwx9YlqtfzjpZvPY3 ZtEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=r2c6fYl7; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 e18-v6si15765692pgh.388.2018.10.08.16.50.02; Mon, 08 Oct 2018 16:50:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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=r2c6fYl7; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-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 S1726883AbeJIHEJ (ORCPT + 10 others); Tue, 9 Oct 2018 03:04:09 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:53464 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725803AbeJIHEI (ORCPT ); Tue, 9 Oct 2018 03:04:08 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id w98Nns1O030760; Mon, 8 Oct 2018 18:49:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1539042594; bh=85hfGuh+Ks3roiNMaMUxBKOuiJrYoqG3YSSqK90z+B4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=r2c6fYl7FIF2X0wiTSi6FbhsX+7epjDRSA3VwO6MchS1FytTZ4Vicdrqw7ET4bX7F 5HKIQtqSBU2coY1262+9iTPIPlkozf4i3Wz7oXES/O4Z7gIJ/XqB13UiXnGkDN/55G tXTB+cp+wEjPoBM6KEDATRh/FFObMnz1j9m0jqM0= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w98NnsKV023979; Mon, 8 Oct 2018 18:49:54 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 8 Oct 2018 18:49:54 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Mon, 8 Oct 2018 18:49:54 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w98NnrAw027756; Mon, 8 Oct 2018 18:49:53 -0500 Received: from localhost (uda0226610.dhcp.ti.com [128.247.59.147]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id w98Nnrx25252; Mon, 8 Oct 2018 18:49:53 -0500 (CDT) From: Grygorii Strashko To: "David S. Miller" , , Tony Lindgren , Rob Herring , Kishon Vijay Abraham I CC: Sekhar Nori , , , , Grygorii Strashko Subject: [RFC PATCH 11/11] net: ethernet: ti: cpsw: deprecate cpsw-phy-sel driver Date: Mon, 8 Oct 2018 18:49:49 -0500 Message-ID: <20181008234949.15416-12-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.10.5 In-Reply-To: <20181008234949.15416-1-grygorii.strashko@ti.com> References: <20181008234949.15416-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Deprecate cpsw-phy-sel driver as it's been replaced with new TI phy-gmii-sel PHY driver. Cc: Kishon Vijay Abraham I Cc: Tony Lindgren Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/Kconfig | 6 +++--- drivers/net/ethernet/ti/cpsw.h | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) -- 2.10.5 diff --git a/drivers/net/ethernet/ti/Kconfig b/drivers/net/ethernet/ti/Kconfig index f932923..96415da 100644 --- a/drivers/net/ethernet/ti/Kconfig +++ b/drivers/net/ethernet/ti/Kconfig @@ -49,10 +49,11 @@ config TI_DAVINCI_CPDMA will be called davinci_cpdma. This is recommended. config TI_CPSW_PHY_SEL - bool + bool "TI CPSW Phy mode Selection (DEPRECATED)" + default n ---help--- This driver supports configuring of the phy mode connected to - the CPSW. + the CPSW. DEPRECATED: use PHY_TI_GMII_SEL. config TI_CPSW_ALE tristate "TI CPSW ALE Support" @@ -64,7 +65,6 @@ config TI_CPSW depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST select TI_DAVINCI_CPDMA select TI_DAVINCI_MDIO - select TI_CPSW_PHY_SEL select TI_CPSW_ALE select MFD_SYSCON select REGMAP diff --git a/drivers/net/ethernet/ti/cpsw.h b/drivers/net/ethernet/ti/cpsw.h index cf111db..907e05fc 100644 --- a/drivers/net/ethernet/ti/cpsw.h +++ b/drivers/net/ethernet/ti/cpsw.h @@ -21,7 +21,13 @@ ((mac)[2] << 16) | ((mac)[3] << 24)) #define mac_lo(mac) (((mac)[4] << 0) | ((mac)[5] << 8)) +#if IS_ENABLED(CONFIG_TI_CPSW_PHY_SEL) void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave); +#else +static inline +void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) +{} +#endif int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr); #endif /* __CPSW_H__ */