Skip to content

Commit 6796812

Browse files
EvilOlafigorpecovnik
authored andcommitted
sunxi-7.0: rewrite kernel patches against 7.0.12
1 parent 900e69a commit 6796812

11 files changed

Lines changed: 37 additions & 33 deletions

patch/kernel/archive/sunxi-7.0/patches.armbian/0702-arm64-dts-sun50i-h616-add-digital-audio-node.patch

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ SUNXI_AHUB_I2S_CLKD(1) to 0x90.
2020

2121
Signed-off-by: joakimtoe <joakimtoe@gmail.com>
2222
---
23-
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 16 ++++++++++++++--
24-
drivers/clk/sunxi-ng/ccu-sun50i-h616.c | 4 +---
25-
include/dt-bindings/clock/sun50i-h616-ccu.h | 2 ++
26-
sound/soc/sunxi_v2/snd_sunxi_ahub.c | 4 ++--
27-
sound/soc/sunxi_v2/snd_sunxi_ahub_dam.c | 28 +++++++++++++------------
28-
5 files changed, 34 insertions(+), 20 deletions(-)
23+
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 16 ++++-
24+
drivers/clk/sunxi-ng/ccu-sun50i-h616.c | 4 +-
25+
include/dt-bindings/clock/sun50i-h616-ccu.h | 2 +
26+
sound/soc/sunxi_v2/snd_sunxi_ahub.c | 4 +-
27+
sound/soc/sunxi_v2/snd_sunxi_ahub_dam.c | 35 +++++-----
28+
5 files changed, 35 insertions(+), 26 deletions(-)
2929

3030
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
3131
index 111111111111..222222222222 100644
3232
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
3333
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
34-
@@ -1085,8 +1085,8 @@ ahub_dam_plat:ahub_dam_plat@5097000 {
34+
@@ -893,8 +893,8 @@ ahub_dam_plat:ahub_dam_plat@5097000 {
3535
compatible = "allwinner,sunxi-snd-plat-ahub_dam";
3636
reg = <0x05097000 0x1000>;
3737
resets = <&ccu RST_BUS_AUDIO_HUB>;
@@ -42,7 +42,7 @@ index 111111111111..222222222222 100644
4242
<&ccu CLK_AUDIO_HUB>,
4343
<&ccu CLK_BUS_AUDIO_HUB>;
4444
clock-names = "clk_pll_audio",
45-
@@ -1096,6 +1096,17 @@ ahub_dam_plat:ahub_dam_plat@5097000 {
45+
@@ -904,6 +904,17 @@ ahub_dam_plat:ahub_dam_plat@5097000 {
4646
status = "disabled";
4747
};
4848

@@ -60,16 +60,19 @@ index 111111111111..222222222222 100644
6060
ahub1_plat:ahub1_plat {
6161
#sound-dai-cells = <0>;
6262
compatible = "allwinner,sunxi-snd-plat-ahub";
63-
@@ -1301,0 +1312,1 @@ hdmi: hdmi@6000000 {
63+
@@ -1107,6 +1118,7 @@ ohci3: usb@5311400 {
64+
hdmi: hdmi@6000000 {
65+
compatible = "allwinner,sun50i-h616-dw-hdmi",
66+
"allwinner,sun50i-h6-dw-hdmi";
6467
+ #sound-dai-cells = <0>;
68+
reg = <0x06000000 0x10000>;
69+
reg-io-width = <1>;
70+
interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
6571
diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-h616.c b/drivers/clk/sunxi-ng/ccu-sun50i-h616.c
6672
index 111111111111..222222222222 100644
6773
--- a/drivers/clk/sunxi-ng/ccu-sun50i-h616.c
6874
+++ b/drivers/clk/sunxi-ng/ccu-sun50i-h616.c
69-
@@ -232,14 +232,12 @@ static struct ccu_nm pll_audio_hs_clk = {
70-
.enable = BIT(31),
71-
.lock = BIT(28),
72-
.n = _SUNXI_CCU_MULT_MIN(8, 8, 12),
75+
@@ -235,10 +235,8 @@ static struct ccu_nm pll_audio_hs_clk = {
7376
.m = _SUNXI_CCU_DIV(16, 6),
7477
.sdm = _SUNXI_CCU_SDM(pll_audio_sdm_table,
7578
BIT(24), 0x178, BIT(31)),
@@ -81,7 +84,6 @@ index 111111111111..222222222222 100644
8184
.reg = 0x078,
8285
.hw.init = CLK_HW_INIT("pll-audio-hs", "osc24M",
8386
&ccu_nm_ops,
84-
CLK_SET_RATE_UNGATE),
8587
diff --git a/include/dt-bindings/clock/sun50i-h616-ccu.h b/include/dt-bindings/clock/sun50i-h616-ccu.h
8688
index 111111111111..222222222222 100644
8789
--- a/include/dt-bindings/clock/sun50i-h616-ccu.h
@@ -99,7 +101,7 @@ diff --git a/sound/soc/sunxi_v2/snd_sunxi_ahub.c b/sound/soc/sunxi_v2/snd_sunxi_
99101
index 111111111111..222222222222 100644
100102
--- a/sound/soc/sunxi_v2/snd_sunxi_ahub.c
101103
+++ b/sound/soc/sunxi_v2/snd_sunxi_ahub.c
102-
@@ -100,7 +100,7 @@ static int sunxi_ahub_dai_set_pll(struct snd_soc_dai *dai,
104+
@@ -114,7 +114,7 @@ static int sunxi_ahub_dai_set_pll(struct snd_soc_dai *dai,
103105
return -EINVAL;
104106
}
105107
}
@@ -108,7 +110,7 @@ index 111111111111..222222222222 100644
108110
SND_LOG_ERR(HLOG, "freq : %u module clk unsupport\n", freq_out);
109111
return -EINVAL;
110112
}
111-
@@ -275,7 +275,7 @@ static int sunxi_ahub_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int
113+
@@ -286,7 +286,7 @@ static int sunxi_ahub_dai_set_bclk_ratio(struct snd_soc_dai *dai, unsigned int r
112114

113115
regmap_update_bits(regmap, SUNXI_AHUB_I2S_CLKD(tdm_num),
114116
0xf << I2S_CLKD_BCLKDIV,
@@ -152,7 +154,7 @@ index 111111111111..222222222222 100644
152154

153155
/* enable clk of ahub */
154156
if (clk_prepare_enable(clk_info->clk_pll)) {
155-
@@ -400,13 +400,11 @@ static int snd_soc_sunxi_ahub_clk_init(struct platform_device *pdev,
157+
@@ -404,14 +404,12 @@ static int snd_soc_sunxi_ahub_clk_init(struct platform_device *pdev,
156158
return 0;
157159

158160
err_module_clk_enable:
@@ -170,7 +172,8 @@ index 111111111111..222222222222 100644
170172
+ clk_put(clk_info->clk_pll);
171173
err_pll_clk:
172174
clk_put(clk_info->clk_module);
173-
@@ -481,8 +479,7 @@ static int sunxi_ahub_dam_dev_remove(struct platform_device *pdev)
175+
err_module_clk:
176+
@@ -481,8 +479,7 @@ static void sunxi_ahub_dam_dev_remove(struct platform_device *pdev)
174177
clk_put(clk_info->clk_module);
175178
clk_disable_unprepare(clk_info->clk_pll);
176179
clk_put(clk_info->clk_pll);
@@ -182,3 +185,4 @@ index 111111111111..222222222222 100644
182185
reset_control_assert(clk_info->clk_rst);
183186
--
184187
Armbian
188+

patch/kernel/archive/sunxi-7.0/patches.armbian/arm64-dts-sun50i-h6-h616-add-sunxi-info-nodes.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dt
4242
index 111111111111..222222222222 100644
4343
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
4444
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
45-
@@ -1666,6 +1666,25 @@ r_rsb: rsb@7083000 {
45+
@@ -1667,6 +1667,25 @@ r_rsb: rsb@7083000 {
4646
#address-cells = <1>;
4747
#size-cells = <0>;
4848
};

patch/kernel/archive/sunxi-7.0/patches.armbian/arm64-dts-sun50i-h616-add-vpu-node.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ index 111111111111..222222222222 100644
3030
syscon: syscon@3000000 {
3131
compatible = "allwinner,sun50i-h616-system-control";
3232
reg = <0x03000000 0x30>,<0x03000038 0x0fc8>;
33-
@@ -1669,6 +1680,19 @@ cpu_critical: cpu-trip-2 {
33+
@@ -1670,6 +1681,19 @@ cpu_critical: cpu-trip-2 {
3434
hysteresis = <0>;
3535
};
3636
};

patch/kernel/archive/sunxi-7.0/patches.armbian/drv-usb-gadget-composite-rename-serial-manufacturer.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
1313
index 111111111111..222222222222 100644
1414
--- a/drivers/usb/gadget/composite.c
1515
+++ b/drivers/usb/gadget/composite.c
16-
@@ -2756,7 +2756,7 @@ EXPORT_SYMBOL_GPL(usb_composite_setup_continue);
16+
@@ -2759,7 +2759,7 @@ EXPORT_SYMBOL_GPL(usb_composite_setup_continue);
1717

1818
static char *composite_default_mfr(struct usb_gadget *gadget)
1919
{

patch/kernel/archive/sunxi-7.0/patches.megous/fixes-7.0/0018-usb-serial-option-add-reset_resume-callback-for-WWAN.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
2020
index 111111111111..222222222222 100644
2121
--- a/drivers/usb/serial/option.c
2222
+++ b/drivers/usb/serial/option.c
23-
@@ -2553,6 +2553,7 @@ static struct usb_serial_driver option_1port_device = {
23+
@@ -2560,6 +2560,7 @@ static struct usb_serial_driver option_1port_device = {
2424
#ifdef CONFIG_PM
2525
.suspend = usb_wwan_suspend,
2626
.resume = usb_wwan_resume,

patch/kernel/archive/sunxi-7.0/patches.megous/speed-7.0/0003-Mark-some-slow-drivers-for-async-probe-with-PROBE_PR.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ diff --git a/drivers/nfc/nxp-nci/i2c.c b/drivers/nfc/nxp-nci/i2c.c
2727
index 111111111111..222222222222 100644
2828
--- a/drivers/nfc/nxp-nci/i2c.c
2929
+++ b/drivers/nfc/nxp-nci/i2c.c
30-
@@ -348,6 +348,7 @@ static struct i2c_driver nxp_nci_i2c_driver = {
30+
@@ -367,6 +367,7 @@ static struct i2c_driver nxp_nci_i2c_driver = {
3131
.name = NXP_NCI_I2C_DRIVER_NAME,
3232
.acpi_match_table = ACPI_PTR(acpi_id),
3333
.of_match_table = of_nxp_nci_i2c_match,

patch/kernel/archive/sunxi-7.0/patches.megous/tcpm-7.0/0001-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-
@@ -3132,7 +3132,7 @@ static int tcpm_register_source_caps(struct tcpm_port *port)
16+
@@ -3159,7 +3159,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-
@@ -3142,11 +3142,6 @@ static int tcpm_register_source_caps(struct tcpm_port *port)
25+
@@ -3169,11 +3169,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/sunxi-7.0/patches.megous/tcpm-7.0/0002-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-
@@ -762,16 +780,40 @@ int dp_altmode_probe(struct typec_altmode *alt)
54+
@@ -764,16 +782,40 @@ 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/sunxi-7.0/patches.megous/tcpm-7.0/0003-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-
@@ -1881,6 +1881,9 @@ static void tcpm_register_partner_altmodes(struct tcpm_port *port)
40+
@@ -1883,6 +1883,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/sunxi-7.0/patches.megous/tcpm-7.0/0004-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-
@@ -3136,15 +3136,22 @@ static int tcpm_register_source_caps(struct tcpm_port *port)
21+
@@ -3163,15 +3163,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-
@@ -3159,15 +3166,22 @@ static int tcpm_register_sink_caps(struct tcpm_port *port)
48+
@@ -3186,15 +3193,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-
@@ -7234,10 +7248,17 @@ static int tcpm_port_register_pd(struct tcpm_port *port)
75+
@@ -7261,10 +7275,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]);

0 commit comments

Comments
 (0)