[PATCH 1/3] net: eth-phy: define LOG_CATEGORY

Define LOG_CATEGORY to allow filtering with log command.
Signed-off-by: Patrick Delaunay patrick.delaunay@foss.st.com ---
drivers/net/eth-phy-uclass.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/net/eth-phy-uclass.c b/drivers/net/eth-phy-uclass.c index 07aebd935e..abb658bf21 100644 --- a/drivers/net/eth-phy-uclass.c +++ b/drivers/net/eth-phy-uclass.c @@ -3,6 +3,8 @@ * Copyright 2020 NXP */
+#define LOG_CATEGORY UCLASS_ETH_PHY + #include <common.h> #include <dm.h> #include <net.h>

Define LOG_CATEGORY to allow filtering with log command.
Signed-off-by: Patrick Delaunay patrick.delaunay@foss.st.com ---
drivers/net/dwc_eth_qos.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index e8242ca4e1..e423c31753 100644 --- a/drivers/net/dwc_eth_qos.c +++ b/drivers/net/dwc_eth_qos.c @@ -27,6 +27,8 @@ * all clock and reset signals to the HW block. */
+#define LOG_CATEGORY UCLASS_ETH + #include <common.h> #include <clk.h> #include <cpu_func.h>

On Mon, Apr 26, 2021 at 6:25 PM Patrick Delaunay patrick.delaunay@foss.st.com wrote:
Define LOG_CATEGORY to allow filtering with log command.
Signed-off-by: Patrick Delaunay patrick.delaunay@foss.st.com
drivers/net/dwc_eth_qos.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index e8242ca4e1..e423c31753 100644 --- a/drivers/net/dwc_eth_qos.c +++ b/drivers/net/dwc_eth_qos.c @@ -27,6 +27,8 @@
- all clock and reset signals to the HW block.
*/
+#define LOG_CATEGORY UCLASS_ETH
#include <common.h> #include <clk.h>
#include <cpu_func.h>
2.17.1
Reviewed-by: Ramon Fried rfried.dev@gmail.com

Define LOG_CATEGORY to allow filtering with log command.
Signed-off-by: Patrick Delaunay patrick.delaunay@foss.st.com ---
net/eth-uclass.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 34ca731d1e..63ad0908d9 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -5,6 +5,8 @@ * Joe Hershberger, National Instruments */
+#define LOG_CATEGORY UCLASS_ETH + #include <common.h> #include <bootstage.h> #include <dm.h>

On Mon, Apr 26, 2021 at 6:25 PM Patrick Delaunay patrick.delaunay@foss.st.com wrote:
Define LOG_CATEGORY to allow filtering with log command.
Signed-off-by: Patrick Delaunay patrick.delaunay@foss.st.com
net/eth-uclass.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 34ca731d1e..63ad0908d9 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -5,6 +5,8 @@
- Joe Hershberger, National Instruments
*/
+#define LOG_CATEGORY UCLASS_ETH
#include <common.h> #include <bootstage.h>
#include <dm.h>
2.17.1
Reviewed-by: Ramon Fried rfried.dev@gmail.com

On Mon, Apr 26, 2021 at 6:25 PM Patrick Delaunay patrick.delaunay@foss.st.com wrote:
Define LOG_CATEGORY to allow filtering with log command.
Signed-off-by: Patrick Delaunay patrick.delaunay@foss.st.com
drivers/net/eth-phy-uclass.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/net/eth-phy-uclass.c b/drivers/net/eth-phy-uclass.c index 07aebd935e..abb658bf21 100644 --- a/drivers/net/eth-phy-uclass.c +++ b/drivers/net/eth-phy-uclass.c @@ -3,6 +3,8 @@
- Copyright 2020 NXP
*/
+#define LOG_CATEGORY UCLASS_ETH_PHY
#include <common.h> #include <dm.h>
#include <net.h>
2.17.1
Reviewed-by: Ramon Fried rfried.dev@gmail.com
participants (2)
-
Patrick Delaunay
-
Ramon Fried