aboutsummaryrefslogtreecommitdiff
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-09-29 07:58:20 -0400
committerTom Rini <trini@konsulko.com>2021-09-29 07:58:20 -0400
commit6eecaf5d0f6b9a500dd5798f1f2bc8296bcfe158 (patch)
tree1307de30a7d4cc6e5db9a3d78f583d288a5dbbdb /include/net/dsa.h
parentba17871884c10f64082ddba2f0632ec44a3ae490 (diff)
parent4df9f5e39fb224a4857c3411b4cbe419e4d339e8 (diff)
Merge branch 'network_master' of https://source.denx.de/u-boot/custodians/u-boot-net into next
- Fix some non-NULL terminated strings in the networking subsystem - net: tsec: Mark tsec_get_interface as __maybe_unused
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r--include/net/dsa.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index 0f31a908c9..a339a49730 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -1,6 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/*
- * Copyright 2019-2021 NXP Semiconductors
+ * Copyright 2019-2021 NXP
*/
#ifndef __DSA_H__
@@ -57,7 +57,8 @@
/**
* struct dsa_ops - DSA operations
*
- * @port_enable: Initialize a switch port for I/O.
+ * @port_probe: Initialize a switch port.
+ * @port_enable: Enable I/O for a port.
* @port_disable: Disable I/O for a port.
* @xmit: Insert the DSA tag for transmission.
* DSA drivers receive a copy of the packet with headroom and
@@ -69,6 +70,8 @@
* master including any additional headers.
*/
struct dsa_ops {
+ int (*port_probe)(struct udevice *dev, int port,
+ struct phy_device *phy);
int (*port_enable)(struct udevice *dev, int port,
struct phy_device *phy);
void (*port_disable)(struct udevice *dev, int port,