--- zzzz-none-000/linux-5.4.213/drivers/base/soc.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/drivers/base/soc.c 2024-08-14 09:01:35.000000000 +0000 @@ -34,6 +34,8 @@ static DEVICE_ATTR(machine, S_IRUGO, soc_info_get, NULL); static DEVICE_ATTR(family, S_IRUGO, soc_info_get, NULL); static DEVICE_ATTR(serial_number, S_IRUGO, soc_info_get, NULL); +static DEVICE_ATTR(oem_id, S_IRUGO, soc_info_get, NULL); +static DEVICE_ATTR(prod_id, S_IRUGO, soc_info_get, NULL); static DEVICE_ATTR(soc_id, S_IRUGO, soc_info_get, NULL); static DEVICE_ATTR(revision, S_IRUGO, soc_info_get, NULL); @@ -61,6 +63,12 @@ if ((attr == &dev_attr_serial_number.attr) && (soc_dev->attr->serial_number != NULL)) return attr->mode; + if ((attr == &dev_attr_oem_id.attr) + && (soc_dev->attr->oem_id != NULL)) + return attr->mode; + if ((attr == &dev_attr_prod_id.attr) + && (soc_dev->attr->prod_id != NULL)) + return attr->mode; if ((attr == &dev_attr_soc_id.attr) && (soc_dev->attr->soc_id != NULL)) return attr->mode; @@ -83,6 +91,12 @@ return sysfs_emit(buf, "%s\n", soc_dev->attr->revision); if (attr == &dev_attr_serial_number) return sysfs_emit(buf, "%s\n", soc_dev->attr->serial_number); + if (attr == &dev_attr_oem_id) + return scnprintf(buf, sizeof(u64), "%s\n", + soc_dev->attr->oem_id); + if (attr == &dev_attr_prod_id) + return scnprintf(buf, sizeof(u64), "%s\n", + soc_dev->attr->prod_id); if (attr == &dev_attr_soc_id) return sysfs_emit(buf, "%s\n", soc_dev->attr->soc_id); @@ -94,6 +108,8 @@ &dev_attr_machine.attr, &dev_attr_family.attr, &dev_attr_serial_number.attr, + &dev_attr_oem_id.attr, + &dev_attr_prod_id.attr, &dev_attr_soc_id.attr, &dev_attr_revision.attr, NULL,