From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7EC2C433EF for ; Sun, 1 May 2022 12:41:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0B0A683F1A; Sun, 1 May 2022 14:41:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=solid-run.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=solid-run-com.20210112.gappssmtp.com header.i=@solid-run-com.20210112.gappssmtp.com header.b="yq3lLuNV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B579183F06; Sun, 1 May 2022 14:41:43 +0200 (CEST) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7146783D07 for ; Sun, 1 May 2022 14:41:40 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=solid-run.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=josua@solid-run.com Received: by mail-wr1-x42f.google.com with SMTP id q23so16484712wra.1 for ; Sun, 01 May 2022 05:41:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solid-run-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=m8z6X6FT/o1qCAPiw9nkCnxYPUi6WxCUl5dj1MSGkaY=; b=yq3lLuNVGcPwcW/jGLIE7ANkH/P0Ee6x5h43kDSw3jCedEon30QICLqHHZ96NqzF1T CFjw8mIQxGB0fGUdz6OpgBj+DcYoP5mnF+FmfXp4aI1dU4QvMjah9z+gm5tGe1y8U7sF T5bonlywMNQtH0ksm64L9eezpQftpCBzAlQZvspcM5gFZRJ1GN4By7vWECLmndD7EvKq pj5FTj464rsEgjzFWjDBPSLesm4RvJnmvtqRawoq/97sG0pcb0dU5azra02pULDy8TxB z//s55qBPp3ZC3oWG+so8b64rvj4hrz9kXvKFjrCS7pL59/wiPJRWFlW41nvfLRDIEDS wvOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=m8z6X6FT/o1qCAPiw9nkCnxYPUi6WxCUl5dj1MSGkaY=; b=g0jeNUD8X0ahiu6nLHsGx7Jc37mYTUR4gP0zGT4Eoypw5Ol+FZ12nB4pH2ZanQgami jOM7m+bqC13+nMs+gsbPx6AXMWiJWr6syJlK7VxPJwhILRPWxS88+XaYbIbC7aQgCfAr xZffrjEHYubTVwlNxBkAWCE8bw0qdnWobUVfZVOTf8lxvHEAoSw+WHmxnk3wcBv868dj YwplcSj6QYqJNbko6bfxI1d6cCx3l0O3Qz5jfcd+1OFIvauwlsKMde9j6Ton6UI6aBgz f7jYX1GUqBVoSOsiOyCcEYEmTYdpE+AtYDi7D7OOVo2DU7R8/1QFl0u3bEAFGW4v/Som uBSA== X-Gm-Message-State: AOAM530Vt0WRuUlNpQKFZcbQxc8xUl2rKF5OMXRenUrWq30UTY1E5Urf 8R12BSPJ8SgWwyPe1X0ePNdS7v71EE3TkA== X-Google-Smtp-Source: ABdhPJxEHRbGufal16GxyHXcRse/5PAXjGlMIFC+RuCWCb01fV2L6+fqkTf4JvGdNFxUNFoYuTRdNw== X-Received: by 2002:a5d:53cb:0:b0:20a:d769:e14e with SMTP id a11-20020a5d53cb000000b0020ad769e14emr6328790wrw.603.1651408899834; Sun, 01 May 2022 05:41:39 -0700 (PDT) Received: from josua-work.lan (bzq-82-81-222-124.cablep.bezeqint.net. [82.81.222.124]) by smtp.gmail.com with ESMTPSA id c13-20020adfa70d000000b0020c5253d8e8sm4615238wrd.52.2022.05.01.05.41.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 May 2022 05:41:38 -0700 (PDT) From: Josua Mayer To: u-boot@lists.denx.de Cc: alvaro.karsz@solid-run.com, Josua Mayer , Joe Hershberger , Ramon Fried , Nate Drude Subject: [PATCH 1/5] phy: adin: remove broken support for adi, phy-mode-override Date: Sun, 1 May 2022 15:41:27 +0300 Message-Id: <20220501124131.30614-2-josua@solid-run.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220501124131.30614-1-josua@solid-run.com> References: <20220501124131.30614-1-josua@solid-run.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean The adin_get_phy_mode_override function does not compile, because it is missing both declaration and implementation of phy_get_interface_by_name. Remove the whole function for now, since the missing implementation is not included in mainline Linux - and thus can not be copied. Signed-off-by: Josua Mayer --- drivers/net/phy/adin.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c index cff841ab3d..2433e76fea 100644 --- a/drivers/net/phy/adin.c +++ b/drivers/net/phy/adin.c @@ -94,35 +94,6 @@ static u32 adin_get_reg_value(struct phy_device *phydev, return rc; } -/** - * adin_get_phy_mode_override - Get phy-mode override for adin PHY - * - * The function gets phy-mode string from property 'adi,phy-mode-override' - * and return its index in phy_interface_strings table, or -1 in error case. - */ -int adin_get_phy_mode_override(struct phy_device *phydev) -{ - ofnode node = phy_get_ofnode(phydev); - const char *phy_mode_override; - const char *prop_phy_mode_override = "adi,phy-mode-override"; - int override_interface; - - phy_mode_override = ofnode_read_string(node, prop_phy_mode_override); - if (!phy_mode_override) - return -ENODEV; - - debug("%s: %s = '%s'\n", - __func__, prop_phy_mode_override, phy_mode_override); - - override_interface = phy_get_interface_by_name(phy_mode_override); - - if (override_interface < 0) - printf("%s: %s = '%s' is not valid\n", - __func__, prop_phy_mode_override, phy_mode_override); - - return override_interface; -} - static u16 adin_ext_read(struct phy_device *phydev, const u32 regnum) { u16 val; @@ -148,11 +119,6 @@ static int adin_config_rgmii_mode(struct phy_device *phydev) { u16 reg_val; u32 val; - int phy_mode_override = adin_get_phy_mode_override(phydev); - - if (phy_mode_override >= 0) { - phydev->interface = (phy_interface_t) phy_mode_override; - } reg_val = adin_ext_read(phydev, ADIN1300_GE_RGMII_CFG); -- 2.34.1