forked from mirror/openwrt
Compare commits
2 commits
215f7a2ec5
...
da4342c6db
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da4342c6db | ||
|
|
bd073e5cd9 |
6 changed files with 1940 additions and 53552 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1,32 +0,0 @@
|
|||
From cedc08e33bf608765464dd80ce3cc170a636a3dd Mon Sep 17 00:00:00 2001
|
||||
From: Weijie Gao <weijie.gao@mediatek.com>
|
||||
Date: Thu, 16 Jan 2025 09:13:10 +0800
|
||||
Subject: [PATCH 29/30] net: phy: add Marvell CUX3410
|
||||
|
||||
Add support for Marvell CUX3410 ethernet PHY
|
||||
|
||||
Signed-off-by: Bo-Cun Chen <bc-bocun.chen@mediatek.com>
|
||||
---
|
||||
drivers/net/phy/aquantia.c | 14 ++++++++++++++
|
||||
1 file changed, 14 insertions(+)
|
||||
|
||||
--- a/drivers/net/phy/aquantia.c
|
||||
+++ b/drivers/net/phy/aquantia.c
|
||||
@@ -744,3 +744,17 @@ U_BOOT_PHY_DRIVER(aqr412) = {
|
||||
.shutdown = &gen10g_shutdown,
|
||||
.data = AQUANTIA_GEN3,
|
||||
};
|
||||
+
|
||||
+U_BOOT_PHY_DRIVER(cux3410) = {
|
||||
+ .name = "Marvell CUX3410",
|
||||
+ .uid = 0x31c31dd3,
|
||||
+ .mask = 0xfffffff0,
|
||||
+ .features = PHY_10G_FEATURES,
|
||||
+ .mmds = (MDIO_MMD_PMAPMD | MDIO_MMD_PCS |
|
||||
+ MDIO_MMD_PHYXS | MDIO_MMD_AN |
|
||||
+ MDIO_MMD_VEND1),
|
||||
+ .config = &aquantia_config,
|
||||
+ .startup = &aquantia_startup,
|
||||
+ .shutdown = &gen10g_shutdown,
|
||||
+ .data = AQUANTIA_GEN3,
|
||||
+};
|
||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -136,10 +136,18 @@ export function remove_call(ctx, argv, named)
|
|||
continue;
|
||||
|
||||
for (let idx in val) {
|
||||
let orig_idx = idx;
|
||||
if (idx != "" + +idx) {
|
||||
let cur_idx = index(data, idx);
|
||||
if (cur_idx >= 0)
|
||||
idx = cur_idx + 1;
|
||||
else
|
||||
idx = null;
|
||||
} else if (+idx > length(data))
|
||||
idx = null;
|
||||
if (idx == null) {
|
||||
ctx.invalid_argument('Invalid value: %s', orig_idx);
|
||||
continue;
|
||||
}
|
||||
data[+idx - 1] = null;
|
||||
}
|
||||
|
|
@ -148,6 +156,8 @@ export function remove_call(ctx, argv, named)
|
|||
if (cur.attribute_allow_empty && !length(cur_obj[name]))
|
||||
delete cur_obj[name];
|
||||
}
|
||||
if (length(ctx.result.errors) > 0)
|
||||
return;
|
||||
call_change_cb(ctx, this, argv, named);
|
||||
return ctx.ok();
|
||||
};
|
||||
|
|
@ -249,6 +259,7 @@ function remove_params(orig_params)
|
|||
type: "enum",
|
||||
get_object: val.get_object,
|
||||
attribute: val.attribute ?? name,
|
||||
no_validate: true,
|
||||
value: param_values,
|
||||
force_helptext: true,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue