Skip to content

Commit b7d545f

Browse files
committed
rockchip64-7.1: rewrite patches against 7.1-rc6
1 parent d7f21cd commit b7d545f

8 files changed

Lines changed: 20 additions & 29 deletions

patch/kernel/archive/rockchip64-7.1/board-nanopi-m4v2-dts-add-sound-card.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
169169
index 111111111111..222222222222 100644
170170
--- a/sound/soc/codecs/Kconfig
171171
+++ b/sound/soc/codecs/Kconfig
172-
@@ -1846,7 +1846,7 @@ config SND_SOC_RT5645
172+
@@ -1843,7 +1843,7 @@ config SND_SOC_RT5645
173173
depends on I2C
174174

175175
config SND_SOC_RT5651

patch/kernel/archive/rockchip64-7.1/rk3399-rp64-pcie-Reimplement-rockchip-PCIe-bus-scan-delay.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/adm
2020
index 111111111111..222222222222 100644
2121
--- a/Documentation/admin-guide/kernel-parameters.txt
2222
+++ b/Documentation/admin-guide/kernel-parameters.txt
23-
@@ -5331,6 +5331,14 @@ Kernel parameters
23+
@@ -5313,6 +5313,14 @@ Kernel parameters
2424
nomsi Do not use MSI for native PCIe PME signaling (this makes
2525
all PCIe root ports use INTx for all services).
2626

patch/kernel/archive/rockchip64-7.1/rk3399-usbc-Revert-usb-typec-tcpm-unregister-existing-source-cap.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
1313
index 111111111111..222222222222 100644
1414
--- a/drivers/usb/typec/tcpm/tcpm.c
1515
+++ b/drivers/usb/typec/tcpm/tcpm.c
16-
@@ -3279,7 +3279,7 @@ static int tcpm_register_source_caps(struct tcpm_port *port)
16+
@@ -3306,7 +3306,7 @@ static int tcpm_register_source_caps(struct tcpm_port *port)
1717
{
1818
struct usb_power_delivery_desc desc = { port->negotiated_rev };
1919
struct usb_power_delivery_capabilities_desc caps = { };
@@ -22,7 +22,7 @@ index 111111111111..222222222222 100644
2222

2323
if (!port->partner_pd)
2424
port->partner_pd = usb_power_delivery_register(NULL, &desc);
25-
@@ -3289,11 +3289,6 @@ static int tcpm_register_source_caps(struct tcpm_port *port)
25+
@@ -3316,11 +3316,6 @@ static int tcpm_register_source_caps(struct tcpm_port *port)
2626
memcpy(caps.pdo, port->source_caps, sizeof(u32) * port->nr_source_caps);
2727
caps.role = TYPEC_SOURCE;
2828

patch/kernel/archive/rockchip64-7.1/rk3399-usbc-usb-typec-altmodes-displayport-Respect-DP_CAP_RECEPT.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ index 111111111111..222222222222 100644
5151
/* Determining the initial pin assignment. */
5252
if (!DP_CONF_GET_PIN_ASSIGN(dp->data.conf)) {
5353
/* Is USB together with DP preferred */
54-
@@ -819,16 +837,38 @@ int dp_altmode_probe(struct typec_altmode *alt)
54+
@@ -821,16 +839,38 @@ int dp_altmode_probe(struct typec_altmode *alt)
5555
struct typec_altmode *plug = typec_altmode_get_plug(alt, TYPEC_PLUG_SOP_P);
5656
struct fwnode_handle *fwnode;
5757
struct dp_altmode *dp;

patch/kernel/archive/rockchip64-7.1/rk3399-usbc-usb-typec-tcpm-Fix-PD-devices-capabilities-registrat.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
1818
index 111111111111..222222222222 100644
1919
--- a/drivers/usb/typec/tcpm/tcpm.c
2020
+++ b/drivers/usb/typec/tcpm/tcpm.c
21-
@@ -3280,15 +3280,22 @@ static int tcpm_register_source_caps(struct tcpm_port *port)
21+
@@ -3307,15 +3307,22 @@ static int tcpm_register_source_caps(struct tcpm_port *port)
2222
struct usb_power_delivery_desc desc = { port->negotiated_rev };
2323
struct usb_power_delivery_capabilities_desc caps = { };
2424
struct usb_power_delivery_capabilities *cap;
@@ -45,7 +45,7 @@ index 111111111111..222222222222 100644
4545
cap = usb_power_delivery_register_capabilities(port->partner_pd, &caps);
4646
if (IS_ERR(cap))
4747
return PTR_ERR(cap);
48-
@@ -3303,15 +3310,22 @@ static int tcpm_register_sink_caps(struct tcpm_port *port)
48+
@@ -3330,15 +3337,22 @@ static int tcpm_register_sink_caps(struct tcpm_port *port)
4949
struct usb_power_delivery_desc desc = { port->negotiated_rev };
5050
struct usb_power_delivery_capabilities_desc caps = { };
5151
struct usb_power_delivery_capabilities *cap;
@@ -72,7 +72,7 @@ index 111111111111..222222222222 100644
7272
cap = usb_power_delivery_register_capabilities(port->partner_pd, &caps);
7373
if (IS_ERR(cap))
7474
return PTR_ERR(cap);
75-
@@ -7716,10 +7730,17 @@ static int tcpm_port_register_pd(struct tcpm_port *port)
75+
@@ -7743,10 +7757,17 @@ static int tcpm_port_register_pd(struct tcpm_port *port)
7676
port->pds[i] = usb_power_delivery_register(port->dev, &desc);
7777
if (IS_ERR(port->pds[i])) {
7878
ret = PTR_ERR(port->pds[i]);

patch/kernel/archive/rockchip64-7.1/rk3399-usbc-usb-typec-tcpm-Unregister-altmodes-before-registerin.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
3737
index 111111111111..222222222222 100644
3838
--- a/drivers/usb/typec/tcpm/tcpm.c
3939
+++ b/drivers/usb/typec/tcpm/tcpm.c
40-
@@ -2028,6 +2028,9 @@ static void tcpm_register_partner_altmodes(struct tcpm_port *port)
40+
@@ -2030,6 +2030,9 @@ static void tcpm_register_partner_altmodes(struct tcpm_port *port)
4141
return;
4242

4343
for (i = 0; i < modep->altmodes; i++) {

patch/kernel/archive/rockchip64-7.1/rk3528-10-phy-rockchip-inno-usb2-Add-support-for-RK3528.patch

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ next-20250910-rk3528 branch.
2121

2222
Signed-off-by: Shlomi Marco <s.marco@rubycomm.com>
2323
---
24-
drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 164 ++++++++--
25-
1 file changed, 131 insertions(+), 33 deletions(-)
24+
drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 150 ++++++++--
25+
1 file changed, 124 insertions(+), 26 deletions(-)
2626

2727
diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
2828
index 111111111111..222222222222 100644
@@ -141,30 +141,23 @@ index 111111111111..222222222222 100644
141141
}
142142

143143
static unsigned long
144-
@@ -1360,27 +1381,22 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev)
144+
@@ -1360,7 +1381,11 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev)
145145
if (!rphy)
146146
return -ENOMEM;
147147

148148
- if (!dev->parent || !dev->parent->of_node) {
149-
- rphy->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,usbgrf");
150-
- if (IS_ERR(rphy->grf)) {
151-
- dev_err(dev, "failed to locate usbgrf\n");
152-
- return PTR_ERR(rphy->grf);
153-
- }
154149
+ if (!dev->parent || !dev->parent->of_node ||
155150
+ of_property_present(np, "rockchip,usbgrf")) {
156151
+ rphy->phy_base = device_node_to_regmap(np);
157152
+ if (IS_ERR(rphy->phy_base))
158153
+ return PTR_ERR(rphy->phy_base);
159-
+ rphy->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,usbgrf");
160-
+ if (IS_ERR(rphy->grf)) {
161-
+ dev_err(dev, "failed to locate usbgrf\n");
162-
+ return PTR_ERR(rphy->grf);
163-
+ }
164-
} else {
154+
rphy->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,usbgrf");
155+
if (IS_ERR(rphy->grf)) {
156+
dev_err(dev, "failed to locate usbgrf\n");
157+
@@ -1370,16 +1395,7 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev)
165158
rphy->grf = syscon_node_to_regmap(dev->parent->of_node);
166-
- if (IS_ERR(rphy->grf))
167-
- return PTR_ERR(rphy->grf);
159+
if (IS_ERR(rphy->grf))
160+
return PTR_ERR(rphy->grf);
168161
- }
169162
-
170163
- if (of_device_is_compatible(np, "rockchip,rv1108-usb2phy")) {
@@ -175,13 +168,10 @@ index 111111111111..222222222222 100644
175168
- return PTR_ERR(rphy->usbgrf);
176169
- } else {
177170
- rphy->usbgrf = NULL;
178-
+ if (IS_ERR(rphy->grf))
179-
+ return PTR_ERR(rphy->grf);
180171
+ rphy->phy_base = rphy->grf;
181172
}
182173

183174
if (of_property_read_u32_index(np, "reg", 0, &reg)) {
184-
dev_err(dev, "the reg property is not assigned in %pOFn node\n", np);
185175
@@ -1521,6 +1537,36 @@ static int rk3128_usb2phy_tuning(struct rockchip_usb2phy *rphy)
186176
BIT(2) << BIT_WRITEABLE_SHIFT | 0);
187177
}
@@ -287,3 +277,4 @@ index 111111111111..222222222222 100644
287277
{ .compatible = "rockchip,rk3576-usb2phy", .data = &rk3576_phy_cfgs },
288278
--
289279
Armbian
280+

patch/kernel/archive/rockchip64-7.1/rk3528-13-phy-rockchip-inno-usb2-fix-otg-timer-cleanup.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ index 111111111111..222222222222 100644
4242
static int rockchip_usb2phy_probe(struct platform_device *pdev)
4343
{
4444
struct device *dev = &pdev->dev;
45-
@@ -1495,6 +1510,13 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev)
45+
@@ -1499,6 +1514,13 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev)
4646
if (ret)
4747
goto put_child;
4848
}

0 commit comments

Comments
 (0)