11 Aug, 2017

1 commit


04 Jul, 2017

1 commit

  • Pull driver core updates from Greg KH:
    "Here is the big driver core update for 4.13-rc1.

    The large majority of this is a lot of cleanup of old fields in the
    driver core structures and their remaining usages in random drivers.
    All of those fixes have been reviewed by the various subsystem
    maintainers. There's also some small firmware updates in here, a new
    kobject uevent api interface that makes userspace interaction easier,
    and a few other minor things.

    All of these have been in linux-next for a long while with no reported
    issues"

    * tag 'driver-core-4.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (56 commits)
    arm: mach-rpc: ecard: fix build error
    zram: convert remaining CLASS_ATTR() to CLASS_ATTR_RO()
    driver-core: remove struct bus_type.dev_attrs
    powerpc: vio_cmo: use dev_groups and not dev_attrs for bus_type
    powerpc: vio: use dev_groups and not dev_attrs for bus_type
    USB: usbip: convert to use DRIVER_ATTR_RW
    s390: drivers: convert to use DRIVER_ATTR_RO/WO
    platform: thinkpad_acpi: convert to use DRIVER_ATTR_RO/RW
    pcmcia: ds: convert to use DRIVER_ATTR_RO
    wireless: ipw2x00: convert to use DRIVER_ATTR_RW
    net: ehea: convert to use DRIVER_ATTR_RO
    net: caif: convert to use DRIVER_ATTR_RO
    TTY: hvc: convert to use DRIVER_ATTR_RW
    PCI: pci-driver: convert to use DRIVER_ATTR_WO
    IB: nes: convert to use DRIVER_ATTR_RW
    HID: hid-core: convert to use DRIVER_ATTR_RO and drv_groups
    arm: ecard: fix dev_groups patch typo
    tty: serdev: use dev_groups and not dev_attrs for bus_type
    sparc: vio: use dev_groups and not dev_attrs for bus_type
    hid: intel-ish-hid: use dev_groups and not dev_attrs for bus_type
    ...

    Linus Torvalds
     

09 Jun, 2017

1 commit


25 May, 2017

1 commit


17 May, 2017

1 commit

  • Add missing endianness conversion when using the USB device-descriptor
    idProduct field to apply a hardware quirk.

    Fixes: 1ba47da52712 ("uwb: add the i1480 DFU driver")
    Cc: stable # 2.6.28
    Signed-off-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Johan Hovold
     

14 Mar, 2017

2 commits

  • Make sure to check the number of endpoints to avoid dereferencing a
    NULL-pointer should a malicious device lack endpoints.

    Note that the dereference happens in the cmd and wait_init_done
    callbacks which are called during probe.

    Fixes: 1ba47da52712 ("uwb: add the i1480 DFU driver")
    Cc: stable # 2.6.28
    Cc: Inaky Perez-Gonzalez
    Cc: David Vrabel
    Signed-off-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Johan Hovold
     
  • Make sure to check the number of endpoints to avoid dereferencing a
    NULL-pointer should a malicious device lack endpoints.

    Note that the dereference happens in the start callback which is called
    during probe.

    Fixes: de520b8bd552 ("uwb: add HWA radio controller driver")
    Cc: stable # 2.6.28
    Cc: Inaky Perez-Gonzalez
    Cc: David Vrabel
    Signed-off-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Johan Hovold
     

01 Nov, 2016

1 commit

  • This subsystem consistently fails to drop the device reference taken by
    class_find_device().

    Note that some of these lookup functions already take a reference to the
    returned data, while others claim no reference is needed (or does not
    seem need one).

    Fixes: 183b9b592a62 ("uwb: add the UWB stack (core files)")
    Signed-off-by: Johan Hovold
    Signed-off-by: Greg Kroah-Hartman

    Johan Hovold
     

15 Aug, 2016

1 commit


02 Dec, 2015

1 commit


05 Nov, 2015

1 commit

  • Pull driver core updates from Greg KH:
    "Here's the "big" driver core updates for 4.4-rc1. Primarily a bunch
    of debugfs updates, with a smattering of minor driver core fixes and
    updates as well.

    All have been in linux-next for a long time"

    * tag 'driver-core-4.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
    debugfs: Add debugfs_create_ulong()
    of: to support binding numa node to specified device in devicetree
    debugfs: Add read-only/write-only bool file ops
    debugfs: Add read-only/write-only size_t file ops
    debugfs: Add read-only/write-only x64 file ops
    debugfs: Consolidate file mode checks in debugfs_create_*()
    Revert "mm: Check if section present during memory block (un)registering"
    driver-core: platform: Provide helpers for multi-driver modules
    mm: Check if section present during memory block (un)registering
    devres: fix a for loop bounds check
    CMA: fix CONFIG_CMA_SIZE_MBYTES overflow in 64bit
    base/platform: assert that dev_pm_domain callbacks are called unconditionally
    sysfs: correctly handle short reads on PREALLOC attrs.
    base: soc: siplify ida usage
    kobject: move EXPORT_SYMBOL() macros next to corresponding definitions
    kobject: explain what kobject's sd field is
    debugfs: document that debugfs_remove*() accepts NULL and error values
    debugfs: Pass bool pointer to debugfs_create_bool()
    ACPI / EC: Fix broken 64bit big-endian users of 'global_lock'

    Linus Torvalds
     

25 Oct, 2015

3 commits


04 Oct, 2015

1 commit

  • Its a bit odd that debugfs_create_bool() takes 'u32 *' as an argument,
    when all it needs is a boolean pointer.

    It would be better to update this API to make it accept 'bool *'
    instead, as that will make it more consistent and often more convenient.
    Over that bool takes just a byte.

    That required updates to all user sites as well, in the same commit
    updating the API. regmap core was also using
    debugfs_{read|write}_file_bool(), directly and variable types were
    updated for that to be bool as well.

    Signed-off-by: Viresh Kumar
    Acked-by: Mark Brown
    Acked-by: Charles Keepax
    Signed-off-by: Greg Kroah-Hartman

    Viresh Kumar
     

19 Mar, 2015

1 commit

  • There are currently no umc drivers implementing suspend/resume, so remove
    the legacy suspend/resume support from the framework. If a umc driver ever
    wants to implement suspend/resume they can use dev_pm_ops, which works out
    of the box without any additional support necessary from the bus itself.

    Signed-off-by: Lars-Peter Clausen
    Signed-off-by: Greg Kroah-Hartman

    Lars-Peter Clausen
     

18 Mar, 2015

1 commit


16 Feb, 2015

1 commit

  • Pull USB patches from Greg KH:
    "Here's the big pull request for the USB driver tree for 3.20-rc1.

    Nothing major happening here, just lots of gadget driver updates, new
    device ids, and a bunch of cleanups.

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'usb-3.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (299 commits)
    usb: musb: fix device hotplug behind hub
    usb: dwc2: Fix a bug in reading the endpoint directions from reg.
    staging: emxx_udc: fix the build error
    usb: Retry port status check on resume to work around RH bugs
    Revert "usb: Reset USB-3 devices on USB-3 link bounce"
    uhci-hub: use HUB_CHAR_*
    usb: kconfig: replace PPC_OF with PPC
    ehci-pci: disable for Intel MID platforms (update)
    usb: gadget: Kconfig: use bool instead of boolean
    usb: musb: blackfin: remove incorrect __exit_p()
    USB: fix use-after-free bug in usb_hcd_unlink_urb()
    ehci-pci: disable for Intel MID platforms
    usb: host: pci_quirks: joing string literals
    USB: add flag for HCDs that can't receive wakeup requests (isp1760-hcd)
    USB: usbfs: allow URBs to be reaped after disconnection
    cdc-acm: kill unnecessary messages
    cdc-acm: add sanity checks
    usb: phy: phy-generic: Fix USB PHY gpio reset
    usb: dwc2: fix USB core dependencies
    usb: renesas_usbhs: fix NULL pointer dereference in dma_release_channel()
    ...

    Linus Torvalds
     

14 Feb, 2015

1 commit

  • printk and friends can now format bitmaps using '%*pb[l]'. cpumask
    and nodemask also provide cpumask_pr_args() and nodemask_pr_args()
    respectively which can be used to generate the two printf arguments
    necessary to format the specified cpu/nodemask.

    * drivers/uwb/drp.c::uwb_drp_handle_alien_drp() was formatting mas.bm
    into a buffer but never used it. Removed.

    Signed-off-by: Tejun Heo
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tejun Heo
     

25 Jan, 2015

1 commit


04 Nov, 2014

1 commit


24 Sep, 2014

5 commits


09 Sep, 2014

1 commit

  • Make sure the uwb_dev->bce entry is set before calling uwb_dev_add in
    uwbd_dev_onair so that usermode will only see the device after it is
    properly initialized. This fixes a kernel panic that can occur if
    usermode tries to access the IEs sysfs attribute of a UWB device before
    the driver has had a chance to set the beacon cache entry.

    Signed-off-by: Thomas Pugliese
    Cc: stable@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     

02 Aug, 2014

1 commit

  • Correct typo in the name of the type given to sizeof. Because it is the
    size of a pointer that is wanted, the typo has no impact on compilation or
    execution.

    This problem was found using Coccinelle (http://coccinelle.lip6.fr/). The
    semantic patch used can be found in message 0 of this patch series.

    Signed-off-by: Julia Lawall
    Signed-off-by: Greg Kroah-Hartman

    Julia Lawall
     

28 May, 2014

5 commits


25 Apr, 2014

1 commit


17 Apr, 2014

1 commit


21 Dec, 2013

4 commits

  • Only acquire rc->uwb_dev.mutex in the error case in
    uwbd_evt_handle_rc_bp_slot_change. This fixes a bug where establishing
    a reservation on a new channel will fail if we were unable to establish
    a reservation on the previous channel due to DRP conflict.

    If rc->uwb_dev.mutex is acquired in the non-error case when the uwb
    system is attempting to start beaconing, it will block because the start
    beaconing code is holding this mutex. This prevents any other
    notifications from the URC from being processed. In particular, the
    DRP_AVAILABILITY notification will not be processed during the start
    beaconing process which can result in a failure to establish a
    reservation. It is safe to not hold the mutex in the non-error
    case since the only other place rc->uwb_dev.beacon_slot is accessed is
    in the same worker thread that uwbd_evt_handle_rc_bp_slot_change
    executes in.

    Signed-off-by: Thomas Pugliese
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     
  • Use uwb_rsv_callback wrapper instead of calling rsv->callback directly.
    uwb_rsv_callback checks for NULL and is used by other callers of the
    callback routine.

    Signed-off-by: Thomas Pugliese
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     
  • various whitespace and comment cleanups

    Signed-off-by: Thomas Pugliese
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     
  • Add debug prints during channel change and beacon actions.

    Signed-off-by: Thomas Pugliese
    Signed-off-by: Greg Kroah-Hartman

    Thomas Pugliese
     

20 Dec, 2013

1 commit