summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2014-05-11The relation between uhci(4), ohci(4) and their root hub device isMartin Pieuchot
delicate. HC drivers do not always accept to be left alone. I don't know if it is a love crisis, but apparently receiving a root hub status change interrupt before having an uhub(4) attached breaks resume. So make sure the root hub is re-attached before interrupt get enabled. It is safe to do it during DVACT_RESUME since attaching root hubs do not require any USB transfer. Based on a diff from yasuoka@, fix a regression introduced in last commit an reported by Abel Abraham Camarillo Ojeda on tech@ and Nils R on bugs@.
2014-05-10Sidestep format string issue by sanitizing a bit of debug code.Mark Kettenis
ok deraadt@
2014-05-09Format string fixes and removal of -Wno-format for *ppc kernels.Miod Vallat
2014-05-09Plug an xfer leak when detaching root hubs.Martin Pieuchot
This leak is similar to the public xfer leak #1 that was affecting device interrupt pipes except that root hubs are rarely detached. Note that this xfer is never associated to any TD and is just used to indicate that some of the HC ports has changed status, so there is no need to flag it as "done" before completing it.
2014-05-08Format string fixes and removal of -Wno-format for hppa kernels.Miod Vallat
2014-05-08Format string fixes and removal of -Wno-format for arm kernels.Miod Vallat
2014-05-08Format string fix in disabled code. Format bus_space_handle_t with %xl,Stefan Fritsch
cast bus_space_tag_t to (u_long)
2014-05-08Plug one more xfer leak.Martin Pieuchot
Now that aborting interrupt pipes does not prevent us from freeing the associated xfer, make sure to flag this xfer as "done" even if there's no need to abort it in hardware.
2014-05-07Make sure to call uhidev_close() upon detach for every HID driver callingMartin Pieuchot
uhidev_open() at attach time. This plugs up to 3 xfer leaks and a buffer one. ok yuo@
2014-05-06Add support for the Broadcom PHY found on the Octeon-based DSR-500.Paul Irofti
This is an MI driver currently targeting only the BCM53115 model, but other Broadcom devices (specially from the 53XX family) can make use of it as well. The driver currently accounts just for the CPU port. The switch is left in dumb-mode. Further advanced switch control is in the works. Parts of this was inspired by looking at the b53 driver from the OpenWrt project. Thanks! Okay miod@
2014-05-06Regen after Broadcom 53115 addition.Paul Irofti
2014-05-06Add an entry for the Broadcom 53115 model found on the DSR-500.Paul Irofti
Okay miod@
2014-05-06Plug two xfer leaks and a buffer one.Martin Pieuchot
2014-05-05Plug a memory leak, free the keymap's memory on detach.Martin Pieuchot
ok miod@
2014-05-05Plug a memory leak related to HID descriptor parsing.Martin Pieuchot
ok jsg@
2014-05-04format string fixes for bus_addr_t and bus_size_tStefan Fritsch
bus_addr_t and bus_size_t are u_long everywhere ok kettenis@
2014-05-04format string fix for bus_space_tag_tStefan Fritsch
bus_space_tag_t is a pointer everywhere, except on i386, where it's an int. Cast to long. ok kettenis@ 'Right idiom' deraadt@
2014-05-04change type of handle var to u_int16_tStefan Fritsch
This fixes a format string warning. No change to the format string is necessary. suggested by kettenis@
2014-05-04Make use of usbd_xfer_isread() instead of rerolling it everywhere.Martin Pieuchot
This has the side effect of simplifying and reducing the differences between the various *hci_alloc_*_chain() functions since they are the principal place where we want to known if the transfer is a read or a write.
2014-05-04Get rid of EHCI_NULL. No functional change.Martin Pieuchot
2014-05-03drm/radeon: call drm_edid_to_eld when we update the edidJonathan Gray
From Alex Deucher 7752811a7d6be680e8f1a87da18e3670633981ee in ubuntu 3.8 16086279353cbfecbb3ead474072dced17b97ddc in mainline linux
2014-05-03Skip intel_crt_init for Dell XPS 8700Jonathan Gray
From Giacomo Comes 95849485beb5e665d56269cd05c3c19df399fb20 in ubuntu 3.8 10b6ee4a87811a110cb01eaca01eb04da6801baf in mainline linux
2014-05-03drm/i915/tv: fix gen4 composite s-video tv-outJonathan Gray
From Jani Nikula 1f2561bd1e2c46145c643673b662c099d2074936 in ubuntu 3.8 e1f23f3dd817f53f622e486913ac662add46eeed in mainline linux
2014-05-03drm/i915: quirk invert brightness for Acer Aspire 5336Jonathan Gray
From Jani Nikula 083bda2f1130f185eccdf7c5cbbdb53fa88429b1 in ubuntu 3.8 0f540c3a7cfb91c9d7a19eb0c95c24c5de1197d5 in mainline linux
2014-05-02Make acpiprt(4) handle interrupts with non-standard polarity and trigger modeMark Kettenis
correctly. Tested by nobody.
2014-05-02Make acpi_mutex_acquire/release actually grab the global lock if it should.Mark Kettenis
Get rid of the fake global lock code that these functions were using before. ok pirofti@, mlarkin@
2014-05-01fixed some debug messagessasano
ok by dcoppa@
2014-04-29Get rid of the per-softc freelist of transfer descriptors and use aMartin Pieuchot
per-driver pool(9) instead.
2014-04-29Finally plug the public xfer leak #1 in our USB stack.Martin Pieuchot
Every call to usbd_abort_pipe() on an interrupt pipe would simply reset the intrxfer pointer, which would prevent usbd_close_pipe() to free it. Since we abort pipes in a lot of situations: when a device is detached, when a USB-to-serial adapter is closed, when an error occurs, when the machine is suspended, etc, this would result in hundreds of leaked xfers in most of my machines. xhci(4) is not affected, but you can't enable it right now since the stack is not ready :) While here put a KASSERT() to make sure drivers are only calling the interrupt abort method for intrxfer, if that's not the case, please let met know.
2014-04-29regenRyan Thomas McBride
2014-04-29Add Microsoft Wireless Mobile Mouse 3500 and Wireless Arc Mouse.Ryan Thomas McBride
ok mpi
2014-04-29Make sure to call uhidev_close() upon detach, plug another xfer leak.Martin Pieuchot
2014-04-29Plug an xfer leak.Martin Pieuchot
2014-04-29Get rid of the per-softc freelist of transfer descriptors and use aMartin Pieuchot
per-driver pool(9) instead. With inputs from mikeb@
2014-04-29Remove device white-listing as matching method, relies on on usage idAndre de Oliveira
versus supported sensors table filtering. discussed with and ok mpi@
2014-04-28Move an opening brace so a loop that delays while waitingJonathan Gray
for hardware to set a ready bit actually delays. ok krw@ deraadt@ 'sounds correct' miod@
2014-04-27Add PME_STATUS and PME_EN bitmasks for the PCI PMCSR register.Stefan Sperling
ok kettenis@
2014-04-27Start de-obfuscating the HC drivers.Martin Pieuchot
Since pipe methods have an xfer argument, always use it to get acces to various data structure (pipe, bus, device) instead of having a different way to get a pointer to these descriptors in every function. Also kill the {E,U}XFER() macro and use a consistent name accross all the methods for {e,u}hci_xfer.
2014-04-27Do not let the bluetooth HID device, present in Apple machines with USB,Martin Pieuchot
grab the console. This makes ddb(4) usable with any simple wired USB keyboard on G3/G4 machines that do not have adb(4) input devices, on G5s and certainly on some MacBooks too. ok andre@, miod@
2014-04-27transplant hotplug code over from qle(4)Jonathan Matthew
2014-04-27When the firmware has already allocated the handle we want to use to log inJonathan Matthew
to a port, restart the update process to keep things in sync. Domain controller logins get special handling here because they don't show up in the list of logged in ports.
2014-04-26Get rid of duplication of the global lock code. Allow recursion in allMark Kettenis
code paths. ok pirofti@
2014-04-25Defer the free of the hibernate structures until later, when it is safe toMike Larkin
do so. Freeing the hibernate structures too early leads to inadvertent calls into splx when we aren't ready for them yet. Found when trapping splx calls in the resume path. discussed with deraadt@ at m2k14
2014-04-25regenMartin Pieuchot
2014-04-25Add a bunch of GeForce GT{,X} chips listed in nvidia's 334.21 driver.Martin Pieuchot
This includes the GeForce GT 740M submitted by Rafael Neves on tech@, thanks!
2014-04-25Do no reprobe for a supported protocol when enabling a pointingMartin Pieuchot
device of type PMS_STANDARD, probing during autoconf(9) is enough!. In such case, the device can be a simple PS/2 mouse, a unsupported touchpad or a downgraded touchpad if something bad happened. But it is very unlikely that reprobing will improve the situation and transform a standard mouse into a multitouch-aware touchpad ;) This fixes the 12 seconds delay seen on various Dell laptops (E4310 and Latitude D630) when starting Xorg, reported by Kārlis Miķelsons on bugs@. ok stsp@, dcoppa@, shadchin@
2014-04-25don't access a pointer till after the null checkJonathan Gray
ok mikeb@
2014-04-24no need to check for default_chip_map twice in one if statementJonathan Gray
2014-04-24Change the usbd_*_report() family of functions to take a usbd_deviceMartin Pieuchot
and a infaceno argument instead of an iface pointer. While here, remove some unused functions and inlined usbd_read_report_desc since it is used only once. This is part of plumbing required to convert the various USB HID devices to handle multiples report IDs. ok andre@
2014-04-24match some more intel sata devices in ide modeJonathan Gray