Skip to content

Commit 6ada2b0

Browse files
EvilOlafigorpecovnik
authored andcommitted
sunxi-7.0: rewrite patches against rc5
kernel config rewrite was also done but resulted in no changes
1 parent 8af3531 commit 6ada2b0

3 files changed

Lines changed: 22 additions & 18 deletions

File tree

patch/kernel/archive/sunxi-7.0/patches.armbian/drv-iommu-sunxi-add-iommu-driver.patch

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ Signed-off-by: Marvin Wewer <mwewer37@proton.me>
1313
drivers/iommu/sun55i-iommu.h | 57 +
1414
include/sunxi-iommu.h | 50 +
1515
7 files changed, 2318 insertions(+)
16+
1617
diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig
17-
index f86262b11416..1c118b2b528d 100644
18+
index 111111111111..222222222222 100644
1819
--- a/drivers/iommu/Kconfig
1920
+++ b/drivers/iommu/Kconfig
2021
@@ -245,6 +245,16 @@ config SUN50I_IOMMU
@@ -35,7 +36,7 @@ index f86262b11416..1c118b2b528d 100644
3536
config TEGRA_IOMMU_SMMU
3637
bool "NVIDIA Tegra SMMU Support"
3738
diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile
38-
index 0275821f4ef9..8e731e6a07e2 100644
39+
index 111111111111..222222222222 100644
3940
--- a/drivers/iommu/Makefile
4041
+++ b/drivers/iommu/Makefile
4142
@@ -37,3 +37,6 @@ obj-$(CONFIG_IOMMU_IOPF) += io-pgfault.o
@@ -47,7 +48,7 @@ index 0275821f4ef9..8e731e6a07e2 100644
4748
+sunxi-iommu-objs += sun55i-iommu.o
4849
diff --git a/drivers/iommu/sun55i-iommu-pgtable.c b/drivers/iommu/sun55i-iommu-pgtable.c
4950
new file mode 100644
50-
index 000000000000..f0d1e8808ef8
51+
index 000000000000..111111111111
5152
--- /dev/null
5253
+++ b/drivers/iommu/sun55i-iommu-pgtable.c
5354
@@ -0,0 +1,468 @@
@@ -521,7 +522,7 @@ index 000000000000..f0d1e8808ef8
521522
+}
522523
diff --git a/drivers/iommu/sun55i-iommu-pgtable.h b/drivers/iommu/sun55i-iommu-pgtable.h
523524
new file mode 100644
524-
index 000000000000..457b8ce1af0f
525+
index 000000000000..111111111111
525526
--- /dev/null
526527
+++ b/drivers/iommu/sun55i-iommu-pgtable.h
527528
@@ -0,0 +1,125 @@
@@ -652,7 +653,7 @@ index 000000000000..457b8ce1af0f
652653
+#endif
653654
diff --git a/drivers/iommu/sun55i-iommu.c b/drivers/iommu/sun55i-iommu.c
654655
new file mode 100644
655-
index 000000000000..89080fc2a034
656+
index 000000000000..111111111111
656657
--- /dev/null
657658
+++ b/drivers/iommu/sun55i-iommu.c
658659
@@ -0,0 +1,1605 @@
@@ -2263,7 +2264,7 @@ index 000000000000..89080fc2a034
22632264
+module_exit(sunxi_iommu_exit);
22642265
diff --git a/drivers/iommu/sun55i-iommu.h b/drivers/iommu/sun55i-iommu.h
22652266
new file mode 100644
2266-
index 000000000000..74c049ca8f30
2267+
index 000000000000..111111111111
22672268
--- /dev/null
22682269
+++ b/drivers/iommu/sun55i-iommu.h
22692270
@@ -0,0 +1,57 @@
@@ -2326,7 +2327,7 @@ index 000000000000..74c049ca8f30
23262327
+void sun55i_enable_device_iommu(struct sunxi_iommu_dev *iommu, unsigned int master_id, bool flag);
23272328
diff --git a/include/sunxi-iommu.h b/include/sunxi-iommu.h
23282329
new file mode 100644
2329-
index 000000000000..09b578e530bf
2330+
index 000000000000..111111111111
23302331
--- /dev/null
23312332
+++ b/include/sunxi-iommu.h
23322333
@@ -0,0 +1,50 @@
@@ -2380,3 +2381,6 @@ index 000000000000..09b578e530bf
23802381
+};
23812382
+
23822383
+#endif /* __LINUX_SUNXI_IOMMU_H */
2384+
--
2385+
Armbian
2386+

patch/kernel/archive/sunxi-7.0/patches.megous/a83t-suspend-7.0/0004-firmware-scpi-Add-support-for-sending-a-SCPI_CMD_SET.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,31 +25,31 @@ diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c
2525
index 111111111111..222222222222 100644
2626
--- a/drivers/firmware/arm_scpi.c
2727
+++ b/drivers/firmware/arm_scpi.c
28-
@@ -187,6 +187,7 @@ enum scpi_drv_cmds {
28+
@@ -188,6 +188,7 @@ enum scpi_drv_cmds {
2929
CMD_SENSOR_VALUE,
3030
CMD_SET_DEVICE_PWR_STATE,
3131
CMD_GET_DEVICE_PWR_STATE,
3232
+ CMD_SET_SYS_PWR_STATE,
3333
CMD_MAX_COUNT,
3434
};
3535

36-
@@ -203,6 +204,7 @@ static int scpi_std_commands[CMD_MAX_COUNT] = {
36+
@@ -204,6 +205,7 @@ static int scpi_std_commands[CMD_MAX_COUNT] = {
3737
SCPI_CMD_SENSOR_VALUE,
3838
SCPI_CMD_SET_DEVICE_PWR_STATE,
3939
SCPI_CMD_GET_DEVICE_PWR_STATE,
4040
+ SCPI_CMD_SET_SYS_PWR_STATE,
4141
};
4242

4343
static int scpi_legacy_commands[CMD_MAX_COUNT] = {
44-
@@ -218,6 +220,7 @@ static int scpi_legacy_commands[CMD_MAX_COUNT] = {
44+
@@ -219,6 +221,7 @@ static int scpi_legacy_commands[CMD_MAX_COUNT] = {
4545
LEGACY_SCPI_CMD_SENSOR_VALUE,
4646
-1, /* SET_DEVICE_PWR_STATE */
4747
-1, /* GET_DEVICE_PWR_STATE */
4848
+ LEGACY_SCPI_CMD_SYS_PWR_STATE,
4949
};
5050

5151
struct scpi_xfer {
52-
@@ -785,6 +788,12 @@ static int scpi_device_set_power_state(u16 dev_id, u8 pstate)
52+
@@ -786,6 +789,12 @@ static int scpi_device_set_power_state(u16 dev_id, u8 pstate)
5353
sizeof(dev_set), &stat, sizeof(stat));
5454
}
5555

@@ -62,7 +62,7 @@ index 111111111111..222222222222 100644
6262
static struct scpi_ops scpi_ops = {
6363
.get_version = scpi_get_version,
6464
.clk_get_range = scpi_clk_get_range,
65-
@@ -801,6 +810,7 @@ static struct scpi_ops scpi_ops = {
65+
@@ -802,6 +811,7 @@ static struct scpi_ops scpi_ops = {
6666
.sensor_get_value = scpi_sensor_get_value,
6767
.device_get_power_state = scpi_device_get_power_state,
6868
.device_set_power_state = scpi_device_set_power_state,

patch/kernel/archive/sunxi-7.0/patches.megous/aw-suspend-7.0/0002-firmware-arm_scpi-Support-unidirectional-mailbox-cha.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c
2121
index 111111111111..222222222222 100644
2222
--- a/drivers/firmware/arm_scpi.c
2323
+++ b/drivers/firmware/arm_scpi.c
24-
@@ -237,7 +237,8 @@ struct scpi_xfer {
24+
@@ -238,7 +238,8 @@ struct scpi_xfer {
2525

2626
struct scpi_chan {
2727
struct mbox_client cl;
@@ -31,7 +31,7 @@ index 111111111111..222222222222 100644
3131
void __iomem *tx_payload;
3232
void __iomem *rx_payload;
3333
struct list_head rx_pending;
34-
@@ -511,7 +512,7 @@ static int scpi_send_message(u8 idx, void *tx_buf, unsigned int tx_len,
34+
@@ -512,7 +513,7 @@ static int scpi_send_message(u8 idx, void *tx_buf, unsigned int tx_len,
3535
msg->rx_len = rx_len;
3636
reinit_completion(&msg->done);
3737

@@ -40,7 +40,7 @@ index 111111111111..222222222222 100644
4040
if (ret < 0 || !rx_buf)
4141
goto out;
4242

43-
@@ -872,8 +873,13 @@ static void scpi_free_channels(void *data)
43+
@@ -873,8 +874,13 @@ static void scpi_free_channels(void *data)
4444
struct scpi_drvinfo *info = data;
4545
int i;
4646

@@ -56,15 +56,15 @@ index 111111111111..222222222222 100644
5656
}
5757

5858
static void scpi_remove(struct platform_device *pdev)
59-
@@ -923,6 +929,7 @@ static int scpi_probe(struct platform_device *pdev)
59+
@@ -924,6 +930,7 @@ static int scpi_probe(struct platform_device *pdev)
6060
struct device *dev = &pdev->dev;
6161
struct device_node *np = dev->of_node;
6262
struct scpi_drvinfo *scpi_drvinfo;
6363
+ bool use_mbox_names = false;
6464

6565
scpi_drvinfo = devm_kzalloc(dev, sizeof(*scpi_drvinfo), GFP_KERNEL);
6666
if (!scpi_drvinfo)
67-
@@ -935,6 +942,14 @@ static int scpi_probe(struct platform_device *pdev)
67+
@@ -936,6 +943,14 @@ static int scpi_probe(struct platform_device *pdev)
6868
dev_err(dev, "no mboxes property in '%pOF'\n", np);
6969
return -ENODEV;
7070
}
@@ -79,7 +79,7 @@ index 111111111111..222222222222 100644
7979

8080
scpi_drvinfo->channels =
8181
devm_kcalloc(dev, count, sizeof(struct scpi_chan), GFP_KERNEL);
82-
@@ -983,15 +998,34 @@ static int scpi_probe(struct platform_device *pdev)
82+
@@ -984,15 +999,34 @@ static int scpi_probe(struct platform_device *pdev)
8383
mutex_init(&pchan->xfers_lock);
8484

8585
ret = scpi_alloc_xfer_list(dev, pchan);

0 commit comments

Comments
 (0)