ipq806x: fix l2tpv2 and tunipip6 NSS offloading, add WG2600HP support
ipq806x: add NEC WG2600HP NSS offloading support ipq806x: fix qca-nss-l2tpv2 compile ipq806x: fix qca-nss-tunipip6 lock ipq806x: fix kernel panic at /sys/kernel/debug/qcom_socinfo/*/* Signed-off-by: Takashi ISHIKAWA <tishi-github@tthy.org>
This commit is contained in:
committed by
Lucas Asvio
parent
c4bde93fa8
commit
d3b8d0071d
46
target/linux/ipq806x/patches-5.15/999-004-fix-socinfo.patch
Normal file
46
target/linux/ipq806x/patches-5.15/999-004-fix-socinfo.patch
Normal file
@@ -0,0 +1,46 @@
|
||||
--- a/drivers/soc/qcom/socinfo.c 2022-11-07 08:55:57.097003500 +0900
|
||||
+++ b/drivers/soc/qcom/socinfo.c 2022-11-07 09:03:58.447003500 +0900
|
||||
@@ -230,6 +230,7 @@ static const struct soc_id soc_id[] = {
|
||||
{ 198, "MSM8126" },
|
||||
{ 199, "APQ8026" },
|
||||
{ 200, "MSM8926" },
|
||||
+ { 202, "IPQ8064" },
|
||||
{ 205, "MSM8326" },
|
||||
{ 206, "MSM8916" },
|
||||
{ 207, "MSM8994" },
|
||||
@@ -414,11 +415,13 @@ QCOM_OPEN(pmic_die_rev, qcom_show_pmic_d
|
||||
QCOM_OPEN(chip_id, qcom_show_chip_id);
|
||||
|
||||
#define DEFINE_IMAGE_OPS(type) \
|
||||
-static int show_image_##type(struct seq_file *seq, void *p) \
|
||||
+static int show_image_##type(struct seq_file *seq, void *p) \
|
||||
{ \
|
||||
struct smem_image_version *image_version = seq->private; \
|
||||
- if (image_version->type[0] != '\0') \
|
||||
- seq_printf(seq, "%s\n", image_version->type); \
|
||||
+ if(!image_version && !image_version->type[0]) { \
|
||||
+ seq_puts(seq, image_version->type); \
|
||||
+ seq_puts(seq, "\n"); \
|
||||
+ } \
|
||||
return 0; \
|
||||
} \
|
||||
static int open_image_##type(struct inode *inode, struct file *file) \
|
||||
@@ -606,7 +609,7 @@ static int qcom_socinfo_probe(struct pla
|
||||
if (!qs)
|
||||
return -ENOMEM;
|
||||
|
||||
- qs->attr.family = "Snapdragon";
|
||||
+ qs->attr.family = "IPQ";
|
||||
qs->attr.machine = socinfo_machine(&pdev->dev,
|
||||
le32_to_cpu(info->id));
|
||||
qs->attr.soc_id = devm_kasprintf(&pdev->dev, GFP_KERNEL, "%u",
|
||||
@@ -623,6 +626,9 @@ static int qcom_socinfo_probe(struct pla
|
||||
if (IS_ERR(qs->soc_dev))
|
||||
return PTR_ERR(qs->soc_dev);
|
||||
|
||||
+ pr_info("CPU: %s, SoC Version: %s\ id: %d fmt: %x\n", qs->attr.machine,
|
||||
+ qs->attr.revision, info->id, qs->info.fmt);
|
||||
+
|
||||
socinfo_debugfs_init(qs, info, item_size);
|
||||
|
||||
/* Feed the soc specific unique data into entropy pool */
|
||||
Reference in New Issue
Block a user