hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
kernel/drivers/input/mouse/bcm5974.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Apple USB BCM5974 (Macbook Air and Penryn Macbook Pro) multitouch driver
34 *
....@@ -16,21 +17,6 @@
1617 * Copyright (C) 2005 Peter Osterlund (petero2@telia.com)
1718 * Copyright (C) 2005 Michael Hanselmann (linux-kernel@hansmi.ch)
1819 * Copyright (C) 2006 Nicolas Boichat (nicolas@boichat.ch)
19
- *
20
- * This program is free software; you can redistribute it and/or modify
21
- * it under the terms of the GNU General Public License as published by
22
- * the Free Software Foundation; either version 2 of the License, or
23
- * (at your option) any later version.
24
- *
25
- * This program is distributed in the hope that it will be useful,
26
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
27
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
- * GNU General Public License for more details.
29
- *
30
- * You should have received a copy of the GNU General Public License
31
- * along with this program; if not, write to the Free Software
32
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
33
- *
3420 */
3521
3622 #include <linux/kernel.h>
....@@ -956,17 +942,22 @@
956942 if (!dev->tp_data)
957943 goto err_free_bt_buffer;
958944
959
- if (dev->bt_urb)
945
+ if (dev->bt_urb) {
960946 usb_fill_int_urb(dev->bt_urb, udev,
961947 usb_rcvintpipe(udev, cfg->bt_ep),
962948 dev->bt_data, dev->cfg.bt_datalen,
963949 bcm5974_irq_button, dev, 1);
964950
951
+ dev->bt_urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
952
+ }
953
+
965954 usb_fill_int_urb(dev->tp_urb, udev,
966955 usb_rcvintpipe(udev, cfg->tp_ep),
967956 dev->tp_data, dev->cfg.tp_datalen,
968957 bcm5974_irq_trackpad, dev, 1);
969958
959
+ dev->tp_urb->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
960
+
970961 /* create bcm5974 device */
971962 usb_make_path(udev, dev->phys, sizeof(dev->phys));
972963 strlcat(dev->phys, "/input0", sizeof(dev->phys));