mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-22 07:53:11 -05:00
platform-drivers-x86 for v6.13-6
Fixes: - dell-uart-backlight: Fix serdev race - lenovo-yoga-tab2-pro-1380-fastcharger: Fix serdev race The following is an automated shortlog grouped by driver: dell-uart-backlight: - fix serdev race lenovo-yoga-tab2-pro-1380-fastcharger: - fix serdev race -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSCSUwRdwTNL2MhaBlZrE9hU+XOMQUCZ4p5jwAKCRBZrE9hU+XO MWJ3AQDgEOM9WkVFa8xyyol4tHloy+9Li4Kb4CIcDKGdTXdu0AEAstMDX7NWhVc4 1F7mfC4K0t9OejC0bgU76v7PbdEayAs= =EQTo -----END PGP SIGNATURE----- Merge tag 'platform-drivers-x86-v6.13-6' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86 Pull x86 platform driver fixes from Ilpo Järvinen: - dell-uart-backlight: Fix serdev race - lenovo-yoga-tab2-pro-1380-fastcharger: Fix serdev race * tag 'platform-drivers-x86-v6.13-6' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86: platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: fix serdev race platform/x86: dell-uart-backlight: fix serdev race
This commit is contained in:
commit
775a15eaf7
2 changed files with 6 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue