From patchwork Sun Jul 19 16:15:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1331841 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=d33Eu9dX; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B8qm06Fssz9sR4 for ; Mon, 20 Jul 2020 02:18:24 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 36A6981F04; Sun, 19 Jul 2020 18:17:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="d33Eu9dX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1737081CAA; Sun, 19 Jul 2020 18:16:42 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (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 8AB7E81BEB for ; Sun, 19 Jul 2020 18:16:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x142.google.com with SMTP id t18so11278888ilh.2 for ; Sun, 19 Jul 2020 09:16:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VQZuurJq2BBKbF3b59XPYtJi0TXfypI2xTO9p173p0s=; b=d33Eu9dXCPtPWXfaYjAYmH+4y9kbVNT8xQ4NG5YWdmK38u/JixbRp576kRMkOYA19B alvZremPagebG1lmw58D2WHcycjf1xw1oNEfNFE0boqNyGUvqqTIbEguHJjK81yYHlte knP6q9g5xJzgVSWiHhrhJCZiPR+sEqWGzFikY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VQZuurJq2BBKbF3b59XPYtJi0TXfypI2xTO9p173p0s=; b=jmCdEFVGtrxC38D10/Ams1LLi6ai4MoHuNle0nVfHTVN6hHJD0heJ6sZkMl9S7eKUo zGMLsH9Qm3OhUktrbBpFVMAP0juIi+A+dh4mBPletuz1mqDf868iIXi7nFtqBYnd9l0L 5NlWOnPqiNoOJX9EyofxEbguqVRp3WErCnjlsSwn2FeYtVd0fsRnzRicb4+Y3uVt4/li 6nw6swrNdRnq+7ZnDA66xfcBw/ZqAnTMDRhxlkHGAcWs4At8xiwD1fHZxbt6ztJa4W4Z uQ6omQ63WKj1kwCDuL5FoY2G05RmrmzIKZHa15wsYxEpKIgzaoL0GHpoEU1g8KUOMVjo lnWQ== X-Gm-Message-State: AOAM531ntzkcr6r0Wzc2Dfsv8JyQwi6q1H0ojiKlGMihBd2ACoxRiv14 B3Soqit2vRQ4xQ/ndYlp9BwfHMG7+5CiSQ== X-Google-Smtp-Source: ABdhPJy3ub7IrGQykp4jUL9TyzpGmUIHODARxxanuMfg0OEgl7PGn6Ya7MsKKluSWsQGjcgEeRx4gg== X-Received: by 2002:a05:6e02:e05:: with SMTP id a5mr17909164ilk.92.1595175389912; Sun, 19 Jul 2020 09:16:29 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id c3sm7415632ilj.31.2020.07.19.09.16.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jul 2020 09:16:29 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Masahiro Yamada , Simon Glass , Alex Marginean , Dan Murphy , Florinel Iordache , Joe Hershberger , Michal Simek , Priyanka Jain , Samuel Mendoza-Jonas , Siva Durga Prasad Paladugu Subject: [PATCH 09/31] net: Drop dm.h header file from phy.h Date: Sun, 19 Jul 2020 10:15:39 -0600 Message-Id: <20200719161601.495421-10-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.rc0.105.gf9edc3c819-goog In-Reply-To: <20200719161601.495421-1-sjg@chromium.org> References: <20200719161601.495421-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean This header file should not be included in other header files. Remove it and use other headers and C inclusions instead. Signed-off-by: Simon Glass --- cmd/mdio.c | 1 + cmd/mii.c | 1 + include/dm/read.h | 1 + include/phy.h | 9 ++++++--- include/phy_interface.h | 2 ++ net/eth_legacy.c | 1 + 6 files changed, 12 insertions(+), 3 deletions(-) diff --git a/cmd/mdio.c b/cmd/mdio.c index c48bb51237..cfa45ad12a 100644 --- a/cmd/mdio.c +++ b/cmd/mdio.c @@ -10,6 +10,7 @@ #include #include +#include #include #include diff --git a/cmd/mii.c b/cmd/mii.c index b52a55dc33..fe8602eb7c 100644 --- a/cmd/mii.c +++ b/cmd/mii.c @@ -10,6 +10,7 @@ #include #include +#include #include typedef struct _MII_field_desc_t { diff --git a/include/dm/read.h b/include/dm/read.h index f02ec95954..5c34a0ffab 100644 --- a/include/dm/read.h +++ b/include/dm/read.h @@ -9,6 +9,7 @@ #ifndef _DM_READ_H #define _DM_READ_H +#include #include #include #include diff --git a/include/phy.h b/include/phy.h index fedd146091..1dbbf65111 100644 --- a/include/phy.h +++ b/include/phy.h @@ -9,14 +9,17 @@ #ifndef _PHY_H #define _PHY_H -#include +#include +#include +#include +#include #include #include #include #include #include -#include -#include + +struct udevice; #define PHY_FIXED_ID 0xa5a55a5a #define PHY_NCSI_ID 0xbeefcafe diff --git a/include/phy_interface.h b/include/phy_interface.h index 882e4af8ff..841ade311e 100644 --- a/include/phy_interface.h +++ b/include/phy_interface.h @@ -10,6 +10,8 @@ #ifndef _PHY_INTERFACE_H #define _PHY_INTERFACE_H +#include + typedef enum { PHY_INTERFACE_MODE_MII, PHY_INTERFACE_MODE_GMII, diff --git a/net/eth_legacy.c b/net/eth_legacy.c index 340469ba3a..992d1880bf 100644 --- a/net/eth_legacy.c +++ b/net/eth_legacy.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include