mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
Merge branch 'fixes' into 'for-next'
Merged the 'fixes' branch into the 'for-next' branch to resolve a conflict in alienware-wmi zone teardown code.
This commit is contained in:
commit
0da9a3f9ac
|
|
@ -445,8 +445,10 @@ event code Key Notes
|
|||
0x1008 0x07 FN+F8 IBM: toggle screen expand
|
||||
Lenovo: configure UltraNav,
|
||||
or toggle screen expand.
|
||||
On newer platforms (2024+)
|
||||
replaced by 0x131f (see below)
|
||||
On 2024 platforms replaced by
|
||||
0x131f (see below) and on newer
|
||||
platforms (2025 +) keycode is
|
||||
replaced by 0x1401 (see below).
|
||||
|
||||
0x1009 0x08 FN+F9 -
|
||||
|
||||
|
|
@ -506,9 +508,11 @@ event code Key Notes
|
|||
|
||||
0x1019 0x18 unknown
|
||||
|
||||
0x131f ... FN+F8 Platform Mode change.
|
||||
0x131f ... FN+F8 Platform Mode change (2024 systems).
|
||||
Implemented in driver.
|
||||
|
||||
0x1401 ... FN+F8 Platform Mode change (2025 + systems).
|
||||
Implemented in driver.
|
||||
... ... ...
|
||||
|
||||
0x1020 0x1F unknown
|
||||
|
|
|
|||
|
|
@ -778,6 +778,10 @@ static int amd_pmc_suspend_handler(struct device *dev)
|
|||
{
|
||||
struct amd_pmc_dev *pdev = dev_get_drvdata(dev);
|
||||
|
||||
/*
|
||||
* Must be called only from the same set of dev_pm_ops handlers
|
||||
* as i8042_pm_suspend() is called: currently just from .suspend.
|
||||
*/
|
||||
if (pdev->disable_8042_wakeup && !disable_workarounds) {
|
||||
int rc = amd_pmc_wa_irq1(pdev);
|
||||
|
||||
|
|
@ -790,7 +794,9 @@ static int amd_pmc_suspend_handler(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static DEFINE_SIMPLE_DEV_PM_OPS(amd_pmc_pm, amd_pmc_suspend_handler, NULL);
|
||||
static const struct dev_pm_ops amd_pmc_pm = {
|
||||
.suspend = amd_pmc_suspend_handler,
|
||||
};
|
||||
|
||||
static const struct pci_device_id pmc_pci_ids[] = {
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_AMD, AMD_CPU_ID_PS) },
|
||||
|
|
|
|||
|
|
@ -624,6 +624,7 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
|
|||
{ KE_KEY, 0xC4, { KEY_KBDILLUMUP } },
|
||||
{ KE_KEY, 0xC5, { KEY_KBDILLUMDOWN } },
|
||||
{ KE_IGNORE, 0xC6, }, /* Ambient Light Sensor notification */
|
||||
{ KE_IGNORE, 0xCF, }, /* AC mode */
|
||||
{ KE_KEY, 0xFA, { KEY_PROG2 } }, /* Lid flip action */
|
||||
{ KE_KEY, 0xBD, { KEY_PROG2 } }, /* Lid flip action on ROG xflow laptops */
|
||||
{ KE_END, 0},
|
||||
|
|
|
|||
|
|
@ -3696,7 +3696,6 @@ static int asus_wmi_custom_fan_curve_init(struct asus_wmi *asus)
|
|||
/* Throttle thermal policy ****************************************************/
|
||||
static int throttle_thermal_policy_write(struct asus_wmi *asus)
|
||||
{
|
||||
u32 retval;
|
||||
u8 value;
|
||||
int err;
|
||||
|
||||
|
|
@ -3718,8 +3717,8 @@ static int throttle_thermal_policy_write(struct asus_wmi *asus)
|
|||
value = asus->throttle_thermal_policy_mode;
|
||||
}
|
||||
|
||||
err = asus_wmi_set_devstate(asus->throttle_thermal_policy_dev,
|
||||
value, &retval);
|
||||
/* Some machines do not return an error code as a result, so we ignore it */
|
||||
err = asus_wmi_set_devstate(asus->throttle_thermal_policy_dev, value, NULL);
|
||||
|
||||
sysfs_notify(&asus->platform_device->dev.kobj, NULL,
|
||||
"throttle_thermal_policy");
|
||||
|
|
@ -3729,12 +3728,6 @@ static int throttle_thermal_policy_write(struct asus_wmi *asus)
|
|||
return err;
|
||||
}
|
||||
|
||||
if (retval != 1) {
|
||||
pr_warn("Failed to set throttle thermal policy (retval): 0x%x\n",
|
||||
retval);
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
/* Must set to disabled if mode is toggled */
|
||||
if (asus->cpu_fan_curve_available)
|
||||
asus->custom_fan_curves[FAN_CURVE_DEV_CPU].enabled = false;
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ static struct quirk_entry quirk_asm201 = {
|
|||
};
|
||||
|
||||
static struct quirk_entry quirk_g_series = {
|
||||
.num_zones = 2,
|
||||
.num_zones = 0,
|
||||
.hdmi_mux = 0,
|
||||
.amplifier = 0,
|
||||
.deepslp = 0,
|
||||
|
|
@ -199,7 +199,7 @@ static struct quirk_entry quirk_g_series = {
|
|||
};
|
||||
|
||||
static struct quirk_entry quirk_x_series = {
|
||||
.num_zones = 2,
|
||||
.num_zones = 0,
|
||||
.hdmi_mux = 0,
|
||||
.amplifier = 0,
|
||||
.deepslp = 0,
|
||||
|
|
@ -241,6 +241,15 @@ static const struct dmi_system_id alienware_quirks[] __initconst = {
|
|||
},
|
||||
.driver_data = &quirk_asm201,
|
||||
},
|
||||
{
|
||||
.callback = dmi_matched,
|
||||
.ident = "Alienware m16 R1 AMD",
|
||||
.matches = {
|
||||
DMI_MATCH(DMI_SYS_VENDOR, "Alienware"),
|
||||
DMI_MATCH(DMI_PRODUCT_NAME, "Alienware m16 R1 AMD"),
|
||||
},
|
||||
.driver_data = &quirk_x_series,
|
||||
},
|
||||
{
|
||||
.callback = dmi_matched,
|
||||
.ident = "Alienware m17 R5",
|
||||
|
|
@ -689,6 +698,9 @@ static int alienware_zone_init(struct platform_device *dev)
|
|||
|
||||
static void alienware_zone_exit(struct platform_device *dev)
|
||||
{
|
||||
if (!quirks->num_zones)
|
||||
return;
|
||||
|
||||
led_classdev_unregister(&global_led);
|
||||
}
|
||||
|
||||
|
|
@ -1205,9 +1217,11 @@ static int __init alienware_wmi_init(void)
|
|||
goto fail_prep_thermal_profile;
|
||||
}
|
||||
|
||||
ret = alienware_zone_init(platform_device);
|
||||
if (ret)
|
||||
goto fail_prep_zones;
|
||||
if (quirks->num_zones > 0) {
|
||||
ret = alienware_zone_init(platform_device);
|
||||
if (ret)
|
||||
goto fail_prep_zones;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -283,6 +283,9 @@ static int dell_uart_bl_serdev_probe(struct serdev_device *serdev)
|
|||
init_waitqueue_head(&dell_bl->wait_queue);
|
||||
dell_bl->dev = dev;
|
||||
|
||||
serdev_device_set_drvdata(serdev, dell_bl);
|
||||
serdev_device_set_client_ops(serdev, &dell_uart_bl_serdev_ops);
|
||||
|
||||
ret = devm_serdev_device_open(dev, serdev);
|
||||
if (ret)
|
||||
return dev_err_probe(dev, ret, "opening UART device\n");
|
||||
|
|
@ -290,8 +293,6 @@ static int dell_uart_bl_serdev_probe(struct serdev_device *serdev)
|
|||
/* 9600 bps, no flow control, these are the default but set them to be sure */
|
||||
serdev_device_set_baudrate(serdev, 9600);
|
||||
serdev_device_set_flow_control(serdev, false);
|
||||
serdev_device_set_drvdata(serdev, dell_bl);
|
||||
serdev_device_set_client_ops(serdev, &dell_uart_bl_serdev_ops);
|
||||
|
||||
get_version[0] = DELL_SOF(GET_CMD_LEN);
|
||||
get_version[1] = CMD_GET_VERSION;
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ static const char * const omen_thermal_profile_boards[] = {
|
|||
"874A", "8603", "8604", "8748", "886B", "886C", "878A", "878B", "878C",
|
||||
"88C8", "88CB", "8786", "8787", "8788", "88D1", "88D2", "88F4", "88FD",
|
||||
"88F5", "88F6", "88F7", "88FE", "88FF", "8900", "8901", "8902", "8912",
|
||||
"8917", "8918", "8949", "894A", "89EB", "8BAD", "8A42"
|
||||
"8917", "8918", "8949", "894A", "89EB", "8BAD", "8A42", "8A15"
|
||||
};
|
||||
|
||||
/* DMI Board names of Omen laptops that are specifically set to be thermal
|
||||
|
|
@ -84,7 +84,7 @@ static const char * const omen_thermal_profile_force_v0_boards[] = {
|
|||
* "balanced" when reaching zero.
|
||||
*/
|
||||
static const char * const omen_timed_thermal_profile_boards[] = {
|
||||
"8BAD", "8A42"
|
||||
"8BAD", "8A42", "8A15"
|
||||
};
|
||||
|
||||
/* DMI Board names of Victus 16-d1xxx laptops */
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ static const struct x86_cpu_id ifs_cpu_ids[] __initconst = {
|
|||
X86_MATCH(INTEL_GRANITERAPIDS_X, ARRAY_GEN0),
|
||||
X86_MATCH(INTEL_GRANITERAPIDS_D, ARRAY_GEN0),
|
||||
X86_MATCH(INTEL_ATOM_CRESTMONT_X, ARRAY_GEN1),
|
||||
X86_MATCH(INTEL_ATOM_DARKMONT_X, ARRAY_GEN1),
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(x86cpu, ifs_cpu_ids);
|
||||
|
|
|
|||
|
|
@ -269,8 +269,12 @@ pmc_core_ssram_get_pmc(struct pmc_dev *pmcdev, int pmc_idx, u32 offset)
|
|||
/*
|
||||
* The secondary PMC BARS (which are behind hidden PCI devices)
|
||||
* are read from fixed offsets in MMIO of the primary PMC BAR.
|
||||
* If a device is not present, the value will be 0.
|
||||
*/
|
||||
ssram_base = get_base(tmp_ssram, offset);
|
||||
if (!ssram_base)
|
||||
return 0;
|
||||
|
||||
ssram = ioremap(ssram_base, SSRAM_HDR_SIZE);
|
||||
if (!ssram)
|
||||
return -ENOMEM;
|
||||
|
|
|
|||
|
|
@ -804,6 +804,7 @@ EXPORT_SYMBOL_GPL(isst_if_cdev_unregister);
|
|||
static const struct x86_cpu_id isst_cpu_ids[] = {
|
||||
X86_MATCH_VFM(INTEL_ATOM_CRESTMONT, SST_HPM_SUPPORTED),
|
||||
X86_MATCH_VFM(INTEL_ATOM_CRESTMONT_X, SST_HPM_SUPPORTED),
|
||||
X86_MATCH_VFM(INTEL_ATOM_DARKMONT_X, SST_HPM_SUPPORTED),
|
||||
X86_MATCH_VFM(INTEL_EMERALDRAPIDS_X, 0),
|
||||
X86_MATCH_VFM(INTEL_GRANITERAPIDS_D, SST_HPM_SUPPORTED),
|
||||
X86_MATCH_VFM(INTEL_GRANITERAPIDS_X, SST_HPM_SUPPORTED),
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ static const struct x86_cpu_id tpmi_cpu_ids[] = {
|
|||
X86_MATCH_VFM(INTEL_GRANITERAPIDS_X, NULL),
|
||||
X86_MATCH_VFM(INTEL_ATOM_CRESTMONT_X, NULL),
|
||||
X86_MATCH_VFM(INTEL_ATOM_CRESTMONT, NULL),
|
||||
X86_MATCH_VFM(INTEL_ATOM_DARKMONT_X, NULL),
|
||||
X86_MATCH_VFM(INTEL_GRANITERAPIDS_D, NULL),
|
||||
X86_MATCH_VFM(INTEL_PANTHERCOVE_X, NULL),
|
||||
{}
|
||||
|
|
|
|||
|
|
@ -423,6 +423,7 @@ static const struct intel_vsec_platform_info lnl_info = {
|
|||
#define PCI_DEVICE_ID_INTEL_VSEC_RPL 0xa77d
|
||||
#define PCI_DEVICE_ID_INTEL_VSEC_TGL 0x9a0d
|
||||
#define PCI_DEVICE_ID_INTEL_VSEC_LNL_M 0x647d
|
||||
#define PCI_DEVICE_ID_INTEL_VSEC_PTL 0xb07d
|
||||
static const struct pci_device_id intel_vsec_pci_ids[] = {
|
||||
{ PCI_DEVICE_DATA(INTEL, VSEC_ADL, &tgl_info) },
|
||||
{ PCI_DEVICE_DATA(INTEL, VSEC_DG1, &dg1_info) },
|
||||
|
|
@ -432,6 +433,7 @@ static const struct pci_device_id intel_vsec_pci_ids[] = {
|
|||
{ PCI_DEVICE_DATA(INTEL, VSEC_RPL, &tgl_info) },
|
||||
{ PCI_DEVICE_DATA(INTEL, VSEC_TGL, &tgl_info) },
|
||||
{ PCI_DEVICE_DATA(INTEL, VSEC_LNL_M, &lnl_info) },
|
||||
{ PCI_DEVICE_DATA(INTEL, VSEC_PTL, &mtl_info) },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(pci, intel_vsec_pci_ids);
|
||||
|
|
|
|||
|
|
@ -199,14 +199,15 @@ static int yt2_1380_fc_serdev_probe(struct serdev_device *serdev)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
serdev_device_set_drvdata(serdev, fc);
|
||||
serdev_device_set_client_ops(serdev, &yt2_1380_fc_serdev_ops);
|
||||
|
||||
ret = devm_serdev_device_open(dev, serdev);
|
||||
if (ret)
|
||||
return dev_err_probe(dev, ret, "opening UART device\n");
|
||||
|
||||
serdev_device_set_baudrate(serdev, 600);
|
||||
serdev_device_set_flow_control(serdev, false);
|
||||
serdev_device_set_drvdata(serdev, fc);
|
||||
serdev_device_set_client_ops(serdev, &yt2_1380_fc_serdev_ops);
|
||||
|
||||
ret = devm_extcon_register_notifier_all(dev, fc->extcon, &fc->nb);
|
||||
if (ret)
|
||||
|
|
|
|||
|
|
@ -6237,6 +6237,7 @@ mlxplat_pci_fpga_device_init(unsigned int device, const char *res_name, struct p
|
|||
fail_pci_request_regions:
|
||||
pci_disable_device(pci_dev);
|
||||
fail_pci_enable_device:
|
||||
pci_dev_put(pci_dev);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
@ -6247,6 +6248,7 @@ mlxplat_pci_fpga_device_exit(struct pci_dev *pci_bridge,
|
|||
iounmap(pci_bridge_addr);
|
||||
pci_release_regions(pci_bridge);
|
||||
pci_disable_device(pci_bridge);
|
||||
pci_dev_put(pci_bridge);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ struct p2sb_res_cache {
|
|||
};
|
||||
|
||||
static struct p2sb_res_cache p2sb_resources[NR_P2SB_RES_CACHE];
|
||||
static bool p2sb_hidden_by_bios;
|
||||
|
||||
static void p2sb_get_devfn(unsigned int *devfn)
|
||||
{
|
||||
|
|
@ -97,6 +98,12 @@ static void p2sb_scan_and_cache_devfn(struct pci_bus *bus, unsigned int devfn)
|
|||
|
||||
static int p2sb_scan_and_cache(struct pci_bus *bus, unsigned int devfn)
|
||||
{
|
||||
/*
|
||||
* The BIOS prevents the P2SB device from being enumerated by the PCI
|
||||
* subsystem, so we need to unhide and hide it back to lookup the BAR.
|
||||
*/
|
||||
pci_bus_write_config_dword(bus, devfn, P2SBC, 0);
|
||||
|
||||
/* Scan the P2SB device and cache its BAR0 */
|
||||
p2sb_scan_and_cache_devfn(bus, devfn);
|
||||
|
||||
|
|
@ -104,6 +111,8 @@ static int p2sb_scan_and_cache(struct pci_bus *bus, unsigned int devfn)
|
|||
if (devfn == P2SB_DEVFN_GOLDMONT)
|
||||
p2sb_scan_and_cache_devfn(bus, SPI_DEVFN_GOLDMONT);
|
||||
|
||||
pci_bus_write_config_dword(bus, devfn, P2SBC, P2SBC_HIDE);
|
||||
|
||||
if (!p2sb_valid_resource(&p2sb_resources[PCI_FUNC(devfn)].res))
|
||||
return -ENOENT;
|
||||
|
||||
|
|
@ -129,7 +138,7 @@ static int p2sb_cache_resources(void)
|
|||
u32 value = P2SBC_HIDE;
|
||||
struct pci_bus *bus;
|
||||
u16 class;
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
/* Get devfn for P2SB device itself */
|
||||
p2sb_get_devfn(&devfn_p2sb);
|
||||
|
|
@ -152,26 +161,57 @@ static int p2sb_cache_resources(void)
|
|||
*/
|
||||
pci_lock_rescan_remove();
|
||||
|
||||
/*
|
||||
* The BIOS prevents the P2SB device from being enumerated by the PCI
|
||||
* subsystem, so we need to unhide and hide it back to lookup the BAR.
|
||||
* Unhide the P2SB device here, if needed.
|
||||
*/
|
||||
pci_bus_read_config_dword(bus, devfn_p2sb, P2SBC, &value);
|
||||
if (value & P2SBC_HIDE)
|
||||
pci_bus_write_config_dword(bus, devfn_p2sb, P2SBC, 0);
|
||||
p2sb_hidden_by_bios = value & P2SBC_HIDE;
|
||||
|
||||
ret = p2sb_scan_and_cache(bus, devfn_p2sb);
|
||||
|
||||
/* Hide the P2SB device, if it was hidden */
|
||||
if (value & P2SBC_HIDE)
|
||||
pci_bus_write_config_dword(bus, devfn_p2sb, P2SBC, P2SBC_HIDE);
|
||||
/*
|
||||
* If the BIOS does not hide the P2SB device then its resources
|
||||
* are accesilble. Cache them only if the P2SB device is hidden.
|
||||
*/
|
||||
if (p2sb_hidden_by_bios)
|
||||
ret = p2sb_scan_and_cache(bus, devfn_p2sb);
|
||||
|
||||
pci_unlock_rescan_remove();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int p2sb_read_from_cache(struct pci_bus *bus, unsigned int devfn,
|
||||
struct resource *mem)
|
||||
{
|
||||
struct p2sb_res_cache *cache = &p2sb_resources[PCI_FUNC(devfn)];
|
||||
|
||||
if (cache->bus_dev_id != bus->dev.id)
|
||||
return -ENODEV;
|
||||
|
||||
if (!p2sb_valid_resource(&cache->res))
|
||||
return -ENOENT;
|
||||
|
||||
memcpy(mem, &cache->res, sizeof(*mem));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int p2sb_read_from_dev(struct pci_bus *bus, unsigned int devfn,
|
||||
struct resource *mem)
|
||||
{
|
||||
struct pci_dev *pdev;
|
||||
int ret = 0;
|
||||
|
||||
pdev = pci_get_slot(bus, devfn);
|
||||
if (!pdev)
|
||||
return -ENODEV;
|
||||
|
||||
if (p2sb_valid_resource(pci_resource_n(pdev, 0)))
|
||||
p2sb_read_bar0(pdev, mem);
|
||||
else
|
||||
ret = -ENOENT;
|
||||
|
||||
pci_dev_put(pdev);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* p2sb_bar - Get Primary to Sideband (P2SB) bridge device BAR
|
||||
* @bus: PCI bus to communicate with
|
||||
|
|
@ -188,8 +228,6 @@ static int p2sb_cache_resources(void)
|
|||
*/
|
||||
int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem)
|
||||
{
|
||||
struct p2sb_res_cache *cache;
|
||||
|
||||
bus = p2sb_get_bus(bus);
|
||||
if (!bus)
|
||||
return -ENODEV;
|
||||
|
|
@ -197,15 +235,10 @@ int p2sb_bar(struct pci_bus *bus, unsigned int devfn, struct resource *mem)
|
|||
if (!devfn)
|
||||
p2sb_get_devfn(&devfn);
|
||||
|
||||
cache = &p2sb_resources[PCI_FUNC(devfn)];
|
||||
if (cache->bus_dev_id != bus->dev.id)
|
||||
return -ENODEV;
|
||||
if (p2sb_hidden_by_bios)
|
||||
return p2sb_read_from_cache(bus, devfn, mem);
|
||||
|
||||
if (!p2sb_valid_resource(&cache->res))
|
||||
return -ENOENT;
|
||||
|
||||
memcpy(mem, &cache->res, sizeof(*mem));
|
||||
return 0;
|
||||
return p2sb_read_from_dev(bus, devfn, mem);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(p2sb_bar);
|
||||
|
||||
|
|
|
|||
|
|
@ -1653,5 +1653,5 @@ module_init(samsung_init);
|
|||
module_exit(samsung_exit);
|
||||
|
||||
MODULE_AUTHOR("Greg Kroah-Hartman <gregkh@suse.de>");
|
||||
MODULE_DESCRIPTION("Samsung Backlight driver");
|
||||
MODULE_DESCRIPTION("Samsung Laptop driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
|
|
|||
|
|
@ -184,7 +184,8 @@ enum tpacpi_hkey_event_t {
|
|||
*/
|
||||
TP_HKEY_EV_AMT_TOGGLE = 0x131a, /* Toggle AMT on/off */
|
||||
TP_HKEY_EV_DOUBLETAP_TOGGLE = 0x131c, /* Toggle trackpoint doubletap on/off */
|
||||
TP_HKEY_EV_PROFILE_TOGGLE = 0x131f, /* Toggle platform profile */
|
||||
TP_HKEY_EV_PROFILE_TOGGLE = 0x131f, /* Toggle platform profile in 2024 systems */
|
||||
TP_HKEY_EV_PROFILE_TOGGLE2 = 0x1401, /* Toggle platform profile in 2025 + systems */
|
||||
|
||||
/* Reasons for waking up from S3/S4 */
|
||||
TP_HKEY_EV_WKUP_S3_UNDOCK = 0x2304, /* undock requested, S3 */
|
||||
|
|
@ -11202,6 +11203,7 @@ static bool tpacpi_driver_event(const unsigned int hkey_event)
|
|||
tp_features.trackpoint_doubletap = !tp_features.trackpoint_doubletap;
|
||||
return true;
|
||||
case TP_HKEY_EV_PROFILE_TOGGLE:
|
||||
case TP_HKEY_EV_PROFILE_TOGGLE2:
|
||||
platform_profile_cycle();
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -855,6 +855,23 @@ static const struct ts_dmi_data rwc_nanote_next_data = {
|
|||
.properties = rwc_nanote_next_props,
|
||||
};
|
||||
|
||||
static const struct property_entry sary_tab_3_props[] = {
|
||||
PROPERTY_ENTRY_U32("touchscreen-size-x", 1730),
|
||||
PROPERTY_ENTRY_U32("touchscreen-size-y", 1151),
|
||||
PROPERTY_ENTRY_BOOL("touchscreen-inverted-x"),
|
||||
PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"),
|
||||
PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"),
|
||||
PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-sary-tab-3.fw"),
|
||||
PROPERTY_ENTRY_U32("silead,max-fingers", 10),
|
||||
PROPERTY_ENTRY_BOOL("silead,home-button"),
|
||||
{ }
|
||||
};
|
||||
|
||||
static const struct ts_dmi_data sary_tab_3_data = {
|
||||
.acpi_name = "MSSL1680:00",
|
||||
.properties = sary_tab_3_props,
|
||||
};
|
||||
|
||||
static const struct property_entry schneider_sct101ctm_props[] = {
|
||||
PROPERTY_ENTRY_U32("touchscreen-size-x", 1715),
|
||||
PROPERTY_ENTRY_U32("touchscreen-size-y", 1140),
|
||||
|
|
@ -1615,6 +1632,15 @@ const struct dmi_system_id touchscreen_dmi_table[] = {
|
|||
DMI_MATCH(DMI_BIOS_VERSION, "S8A70R100-V005"),
|
||||
},
|
||||
},
|
||||
{
|
||||
/* SARY Tab 3 */
|
||||
.driver_data = (void *)&sary_tab_3_data,
|
||||
.matches = {
|
||||
DMI_MATCH(DMI_SYS_VENDOR, "SARY"),
|
||||
DMI_MATCH(DMI_PRODUCT_NAME, "C210C"),
|
||||
DMI_MATCH(DMI_PRODUCT_SKU, "TAB3"),
|
||||
},
|
||||
},
|
||||
{
|
||||
/* Schneider SCT101CTM */
|
||||
.driver_data = (void *)&schneider_sct101ctm_data,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user