Skip to content

Commit 8f2d27c

Browse files
EvilOlafigorpecovnik
authored andcommitted
sunxi-7.0: rewrite kernel patches against 7.0.7
1 parent 2516256 commit 8f2d27c

6 files changed

Lines changed: 13 additions & 13 deletions

patch/kernel/archive/sunxi-7.0/patches.megous/a711-7.0/0003-mmc-add-delay-after-power-class-selection.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
1515
index 111111111111..222222222222 100644
1616
--- a/drivers/mmc/core/mmc.c
1717
+++ b/drivers/mmc/core/mmc.c
18-
@@ -1851,6 +1851,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
18+
@@ -1863,6 +1863,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
1919
*/
2020
mmc_select_powerclass(card);
2121

@@ -24,7 +24,7 @@ index 111111111111..222222222222 100644
2424
/*
2525
* Enable HPI feature (if supported)
2626
*/
27-
@@ -1869,6 +1871,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
27+
@@ -1881,6 +1883,8 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
2828
}
2929
}
3030

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-
@@ -2549,6 +2549,7 @@ static struct usb_serial_driver option_1port_device = {
23+
@@ -2553,6 +2553,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/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-
@@ -3127,7 +3127,7 @@ static int tcpm_register_source_caps(struct tcpm_port *port)
16+
@@ -3132,7 +3132,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-
@@ -3137,11 +3137,6 @@ static int tcpm_register_source_caps(struct tcpm_port *port)
25+
@@ -3142,11 +3142,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/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-
@@ -1876,6 +1876,9 @@ static void tcpm_register_partner_altmodes(struct tcpm_port *port)
40+
@@ -1881,6 +1881,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-
@@ -3131,15 +3131,22 @@ static int tcpm_register_source_caps(struct tcpm_port *port)
21+
@@ -3136,15 +3136,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-
@@ -3154,15 +3161,22 @@ static int tcpm_register_sink_caps(struct tcpm_port *port)
48+
@@ -3159,15 +3166,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-
@@ -7225,10 +7239,17 @@ static int tcpm_port_register_pd(struct tcpm_port *port)
75+
@@ -7232,10 +7246,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/sunxi-7.0/patches.megous/tcpm-7.0/0005-usb-typec-tcpm-Improve-logs.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ diff --git a/drivers/usb/typec/tcpm/tcpm.c b/drivers/usb/typec/tcpm/tcpm.c
1414
index 111111111111..222222222222 100644
1515
--- a/drivers/usb/typec/tcpm/tcpm.c
1616
+++ b/drivers/usb/typec/tcpm/tcpm.c
17-
@@ -1014,10 +1014,13 @@ static int tcpm_pd_transmit(struct tcpm_port *port,
17+
@@ -1019,10 +1019,13 @@ static int tcpm_pd_transmit(struct tcpm_port *port,
1818
break;
1919
}
2020

@@ -30,7 +30,7 @@ index 111111111111..222222222222 100644
3030

3131
reinit_completion(&port->tx_complete);
3232
ret = port->tcpc->pd_transmit(port->tcpc, tx_sop_type, msg, negotiated_rev);
33-
@@ -3814,6 +3817,10 @@ void tcpm_pd_receive(struct tcpm_port *port, const struct pd_message *msg,
33+
@@ -3819,6 +3822,10 @@ void tcpm_pd_receive(struct tcpm_port *port, const struct pd_message *msg,
3434
enum tcpm_transmit_type rx_sop_type)
3535
{
3636
struct pd_rx_event *event;
@@ -41,7 +41,7 @@ index 111111111111..222222222222 100644
4141

4242
event = kzalloc_obj(*event, GFP_ATOMIC);
4343
if (!event)
44-
@@ -6170,7 +6177,7 @@ static void _tcpm_cc_change(struct tcpm_port *port, enum typec_cc_status cc1,
44+
@@ -6177,7 +6184,7 @@ static void _tcpm_cc_change(struct tcpm_port *port, enum typec_cc_status cc1,
4545

4646
static void _tcpm_pd_vbus_on(struct tcpm_port *port)
4747
{
@@ -50,7 +50,7 @@ index 111111111111..222222222222 100644
5050
port->vbus_present = true;
5151
/*
5252
* When vbus_present is true i.e. Voltage at VBUS is greater than VSAFE5V implicitly
53-
@@ -6260,7 +6267,7 @@ static void _tcpm_pd_vbus_on(struct tcpm_port *port)
53+
@@ -6267,7 +6274,7 @@ static void _tcpm_pd_vbus_on(struct tcpm_port *port)
5454

5555
static void _tcpm_pd_vbus_off(struct tcpm_port *port)
5656
{

0 commit comments

Comments
 (0)