aboutsummaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2006-09-27Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/i2c-2.6Linus Torvalds76-431/+1190
* master.kernel.org:/pub/scm/linux/kernel/git/gregkh/i2c-2.6: (30 commits) i2c: Drop unimplemented slave functions i2c: Constify i2c_algorithm declarations, part 2 i2c: Constify i2c_algorithm declarations, part 1 i2c: Let drivers constify i2c_algorithm data i2c-isa: Restore driver owner i2c-viapro: Add support for the VT8237A and VT8251 i2c: Warn on i2c client creation failure i2c-core: Drop useless bitmaskings i2c-algo-pcf: Discard the mdelay data struct member i2c-algo-bit: Cleanups i2c-isa: Fail adding driver on attach_adapter error i2c: __must_check fixes (chip drivers) i2c-dev: attach/detach_adapter cleanups i2c-stub: Chip address as a module parameter i2c: Plan i2c-isa for removal i2c: New bus driver for TI OMAP boards i2c-algo-bit: Discard the mdelay data struct member i2c-matroxfb: Struct init conversion i2c: Fix copy-n-paste in subsystem Kconfig i2c-au1550: Add I2C support for Au1200 ...
2006-09-27watchdog: Add a simple mmap() stub for shwdt.Paul Mundt2-1/+59
In some applications people have expressed a need for an mmap() method, so we implement a simple stub for this that maps back a page with the counter in it. Signed-off-by: Paul Mundt <[email protected]>
2006-09-27sh: Kill off the rest of the legacy rtc mess.Paul Mundt1-1/+1
With the new RTC class driver, we can get rid of most of the old left over cruft. Signed-off-by: Paul Mundt <[email protected]>
2006-09-27serial: Add SERIAL_SH_SCI_NR_UARTS for sh-sci.Paul Mundt1-2/+7
sh-sci needs to be able to define its number of ports to support, we do this with a config option, like most other ports do. Signed-off-by: Paul Mundt <[email protected]>
2006-09-27rtc: New RTC driver for SuperH On-Chip RTC.Paul Mundt3-0/+478
This replaces the old SH RTC driver, and allows us to clean quite a lot of things up on the board-specific side. Signed-off-by: Paul Mundt <[email protected]>
2006-09-27serial: Rework sh-sci for driver model.Paul Mundt2-769/+467
sh-sci was turning in to an unmaintainable mess, especially with regards to the port list. This cleans it up quite a bit, and switches over to a platform device model where subtypes will register their port list individually in their setup code. Signed-off-by: Paul Mundt <[email protected]>
2006-09-27sh: APM/PM support.Andriy Skulysh1-14/+0
This adds some simple PM stubs and the basic APM interfaces, primarily for use by hp6xx, where the existing userland expects it. Signed-off-by: Andriy Skulysh <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2006-09-27video: Update header location in hp680_bl.Andriy Skulysh1-2/+2
Trivial build fix. Signed-off-by: Andriy Skulysh <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2006-09-27video: Update pvr2fb for sq API changes.Paul Mundt1-10/+12
With the store queue API rework, we need to change the in-kernel users too. Signed-off-by: Paul Mundt <[email protected]>
2006-09-27sh: Board updates for I/O routine rework.Paul Mundt1-1/+1
This updates the various boards for some of the recent I/O routine updates. Signed-off-by: Paul Mundt <[email protected]>
2006-09-27video: hitfb suspend/resume and updates.Andriy Skulysh1-33/+181
suspend/resume support for hitfb, as well as some other minor cleanups. Signed-off-by: Andriy Skulysh <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2006-09-27video: Disable vgacon for SuperH.Paul Mundt1-1/+1
We don't support this on SH, so just disable it.. Signed-off-by: Paul Mundt <[email protected]>
2006-09-27sh: hp6xx mach-type cleanups.Andriy Skulysh1-14/+1
Some minor cleanups for the updated consolidated hp6xx mach-type. Signed-off-by: Andriy Skulysh <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2006-09-27sh: Various cosmetic cleanups.Paul Mundt1-34/+24
We had quite a bit of whitespace damage, clean most of it up.. Signed-off-by: Stuart Menefy <[email protected]> Signed-off-by: Arthur Othieno <[email protected]> Signed-off-by: Paul Mundt <[email protected]>
2006-09-26pciehp - fix wrong return valueKenji Kaneshige1-6/+6
This patch fixes the problem that trying to enable already enabled slot disables the slot by returning the proper value from pciehp_enable_slot()/pciehp_disable_slot(). Signed-off-by: Kenji Kaneshige <[email protected]> Signed-off-by: Kristen Carlson Accardi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26acpiphp: add support for ioapic hot-removeSatoru Takeuchi2-14/+92
This patch adds support for ioapics hot-remove. Signed-off-by: Kenji Kaneshige <[email protected]> Signed-off-by: MUNEDA Takahiro <[email protected]> Signed-off-by: Satoru Takeuchi <[email protected]> Signed-off-by: Kristen Carlson Accardi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26PCI: assign ioapic resource at hotplugSatoru Takeuchi1-3/+10
We need to assign resources to ioapics being hot-added. This patch changes pbus_assign_resources_sorted() to assign resources if the ioapic has no assigned resources. Signed-off-by: Kenji Kaneshige <[email protected]> Signed-off-by: MUNEDA Takahiro <[email protected]> Signed-off-by: Satoru Takeuchi <[email protected]> Signed-off-by: Kristen Carlson Accardi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26acpiphp: disable bridgesSatoru Takeuchi1-1/+16
Currently acpiphp calls pci_enable_device() against all hot-added bridges, but acpiphp does not call pci_disable_device() against them in hot-remove. So ioapic hot-remove would fail. This patch fixes this issue. Signed-off-by: Kenji Kaneshige <[email protected]> Signed-off-by: MUNEDA Takahiro <[email protected]> Signed-off-by: Satoru Takeuchi <[email protected]> Signed-off-by: Kristen Carlson Accardi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26acpiphp: stop bus device before acpi_bus_trimSatoru Takeuchi1-0/+3
Contrary to PCI bridge hot-add, we need to follow the sequence below for PCI bridge hot-removal. (1) Stop devices (detach drivers, remove from the global list, etc.) (2) Unbind ACPI node from the devices (remove the _PRT entries) (3) Remove devices (remove from the device list, etc.) This patch fixes acpiphp driver to follow above sequence for P2P bridge hot-removal. Signed-off-by: Kenji Kaneshige <[email protected]> Signed-off-by: MUNEDA Takahiro <[email protected]> Signed-off-by: Satoru Takeuchi <[email protected]> Signed-off-by: Kristen Carlson Accardi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26PCI: add pci_stop_bus_deviceSatoru Takeuchi1-1/+36
This patch adds pci_stop_bus_device() which stops a PCI device (detach the driver, remove from the global list and so on) and any children. This is needed for ACPI based PCI-to-PCI bridge hot-remove, and it will be also needed for ACPI based PCI root bridge hot-remove. Signed-off-by: Kenji Kaneshige <[email protected]> Signed-off-by: MUNEDA Takahiro <[email protected]> Signed-off-by: Satoru Takeuchi <[email protected]> Signed-off-by: Kristen Carlson Accardi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26acpiphp: do not initialize existing ioapicsSatoru Takeuchi1-1/+3
Currently acpiphp initializes all ioapics under the bus on which hot-add event occured. It also initializes already working ioapics. This patch fixes this bug. Signed-off-by: Kenji Kaneshige <[email protected]> Signed-off-by: MUNEDA Takahiro <[email protected]> Signed-off-by: Satoru Takeuchi <[email protected]> Signed-off-by: Kristen Carlson Accardi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26acpiphp: initialize ioapics before starting devicesSatoru Takeuchi1-1/+1
Currently acpiphp initializes ioapics after starting devices, but ioapics should be initialized before starting devices. This patch fixes this bug. Signed-off-by: Kenji Kaneshige <[email protected]> Signed-off-by: MUNEDA Takahiro <[email protected]> Signed-off-by: Satoru Takeuchi <[email protected]> Signed-off-by: Kristen Carlson Accardi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26acpiphp: set hpp values before starting devicesSatoru Takeuchi1-1/+1
Currently acpiphp sets hpp values after starting devices, but the values should be set before starting devices. This patch fixes this bug. Signed-off-by: Kenji Kaneshige <[email protected]> Signed-off-by: MUNEDA Takahiro <[email protected]> Signed-off-by: Satoru Takeuchi <[email protected]> Signed-off-by: Kristen Carlson Accardi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26PCI Hotplug: cleanup pcihp skeleton code.Satoru Takeuchi1-6/+3
Cleanup pcihp skeleton code. Fix some typos and remove some unnecessary blank lines. Signed-off-by: Satoru Takeuchi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26PCI: Restore PCI Express capability registers after PM eventMichael S. Tsirkin1-0/+50
Restore PCI Express capability registers after PM event. This includes maxumum MTU for PCI express and other vital data. Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26PCI: drivers/pci/hotplug/acpiphp_glue.c: make a function staticAdrian Bunk1-1/+1
Signed-off-by: Adrian Bunk <[email protected]> Acked-by: MUNEDA Takahiro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26PCI: Multiprobe sanitizerAlan Cox1-1/+5
There are numerous drivers that can use multithreaded probing but having some kind of global flag as the way to control this makes migration to threaded probing hard and since it enables it everywhere and is almost as likely to cause serious pain as holding a clog dance in a minefield. If we have a pci_driver multithread_probe flag to inherit you can turn it on for one driver at a time. From playing so far however I think we need a different model at the device layer which serializes until the called probe function says "ok you can start another one now". That would need some kind of flag and semaphore plus a helper function. Anyway in the absence of that this is a starting point to usefully play with this stuff Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26PCI: fix __must_check warningsGreg Kroah-Hartman8-61/+137
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26PCI Hotplug: fix __must_check warningsGreg Kroah-Hartman2-33/+128
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26SHPCHP: fix __must_check warningsGreg Kroah-Hartman3-4/+8
Cc: Kristen Carlson Accardi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26PCI-Express AER implemetation: pcie_portdrv error handlerZhang, Yanmin1-21/+175
Patch 4 implements error handlers for pcie_portdrv. Signed-off-by: Zhang Yanmin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26PCI-Express AER implemetation: AER core and aerdriverZhang, Yanmin9-0/+1568
Patch 3 implements the core part of PCI-Express AER and aerdrv port service driver. When a root port service device is probed, the aerdrv will call request_irq to register irq handler for AER error interrupt. When a device sends an PCI-Express error message to the root port, the root port will trigger an interrupt, by either MSI or IO-APIC, then kernel would run the irq handler. The handler collects root error status register and schedules a work. The work will call the core part to process the error based on its type (Correctable/non-fatal/fatal). As for Correctable errors, the patch chooses to just clear the correctable error status register of the device. As for the non-fatal error, the patch follows generic PCI error handler rules to call the error callback functions of the endpoint's driver. If the device is a bridge, the patch chooses to broadcast the error to downstream devices. As for the fatal error, the patch resets the pci-express link and follows generic PCI error handler rules to call the error callback functions of the endpoint's driver. If the device is a bridge, the patch chooses to broadcast the error to downstream devices. Signed-off-by: Zhang Yanmin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26PCI-Express AER implemetation: export pcie_port_bus_typeZhang, Yanmin1-0/+1
Patch 2 exports pcie_port_bus_type. Signed-off-by: Zhang Yanmin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26PCIE: check and return bus_register errorsRandy Dunlap3-5/+11
Have pcie_port_bus_register() notice and return errors. Mark it __must_check so that its caller(s) must check its return value. Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26MSI: Blacklist PCI-E chipsets depending on Hypertransport MSI capabilityBrice Goglin1-0/+59
Introduce msi_ht_cap_enabled() to check the MSI capability in the Hypertransport configuration space. It is used in a generic quirk quirk_msi_ht_cap() to check whether MSI is enabled on hypertransport chipset, and a nVidia specific quirk quirk_nvidia_ck804_msi_ht_cap() where two 2 HT MSI mappings have to be checked. Both quirks set the PCI_BUS_FLAGS_NO_MSI bus flag when MSI is disabled. Signed-off-by: Brice Goglin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26MSI: Rename PCI_CAP_ID_HT_IRQCONF into PCI_CAP_ID_HTBrice Goglin1-3/+2
0x08 is the HT capability, while PCI_CAP_ID_HT_IRQCONF would be the subtype 0x80 that mpic_scan_ht_pic() uses. Rename PCI_CAP_ID_HT_IRQCONF into PCI_CAP_ID_HT. And by the way, use it in the ipath driver instead of defining its own HT_CAPABILITY_ID. Signed-off-by: Brice Goglin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26MSI: Export the PCI_BUS_FLAGS_NO_MSI flag in sysfsBrice Goglin1-0/+41
Export the PCI_BUS_FLAGS_NO_MSI flag of a PCI bus in the sysfs files of its parent device and make it writable. Could be used to: * disable MSI on a device which has not been blacklisted yet * allow MSI when some setpci hacks enable MSI support (for instance on the ServerWorks HT2000 chipset where the MSI HT cap is disabled by default). Architecture where some bus have no parent chipset cannot use this strategy to change MSI support. If the chipset does not have a subordinate bus, its 'bus_msi' file is empty. Also document and warn about the possible danger of changing the flag. Signed-off-by: Brice Goglin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26MSI: Factorize common code in pci_msi_supported()Brice Goglin1-20/+31
pci_enable_msi() and pci_enable_msix() use the same code to detect whether MSI might be enabled on this device. Factorize this code in pci_msi_supported(). And improve the documentation about the fact that only the root chipset must support MSI, but it is hard to find the root bus so we check all parent busses MSI flags. Signed-off-by: Brice Goglin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26MSI: Cleanup existing MSI quirksBrice Goglin2-16/+31
Move MSI quirks in CONFIG_PCI_MSI, document why the serverworks quirk does not simply set PCI_BUS_FLAGS_NO_MSI, and create a generic quirk for other chipsets where setting PCI_BUS_FLAGS_NO_MSI is fine. Signed-off-by: Brice Goglin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26i2c: Constify i2c_algorithm declarations, part 2Jean Delvare27-27/+27
i2c: Constify i2c_algorithm declarations, part 2 Make struct i2c_algorithm declarations const in all i2c bus drivers where it is possible. Signed-off-by: Jean Delvare <[email protected]> Cc: David Brownell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26i2c: Constify i2c_algorithm declarations, part 1Jean Delvare4-4/+4
i2c: Constify i2c_algorithm declarations, part 1 Make struct i2c_algorithm declarations const in all i2c algorithm drivers. Signed-off-by: Jean Delvare <[email protected]> Cc: David Brownell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26i2c-isa: Restore driver ownerJean Delvare11-0/+11
i2c-isa: Restore driver owner Commit 2b48716d1d2f2edb1e7cbc5ecf1cb2cb39373e33 back in January 2006 was a bit overzealous. It removed .owner from all i2c drivers, including i2c-isa ones, while they still need it. Signed-off-by: Jean Delvare <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26i2c-viapro: Add support for the VT8237A and VT8251Rudolf Marek2-9/+17
i2c-viapro: Add support for the VT8237A and VT8251 Documentation update included. Compile tested. Signed-off-by: Rudolf Marek <[email protected]> Signed-off-by: Jean Delvare <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26i2c: Warn on i2c client creation failureJean Delvare1-2/+7
i2c: Warn on i2c client creation failure Warn when an i2c client creation fails. If we don't, the user will never know something wrong happened, as i2c client creation is typically called through an attach_adapter callback, those return value we currently ignore for technical reasons. Signed-off-by: Jean Delvare <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26i2c-core: Drop useless bitmaskingsJean Delvare1-5/+5
i2c-core: Drop useless bitmaskings The code generated is exactly the same. Signed-off-by: Jean Delvare <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26i2c-algo-pcf: Discard the mdelay data struct memberAdrian Bunk1-1/+0
i2c-algo-pcf: Discard the mdelay data struct member Just as i2c-algo-bit, i2c-algo-pcf has an unused mdelay struct member, which we can get rid of to spare some code and memory. Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: Jean Delvare <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26i2c-algo-bit: CleanupsJean Delvare1-9/+8
i2c-algo-bit: Cleanups * Uninline long functions (saves around 1 kB or 15%) * Refactor code in sclhi() * Drop redundant udelay on repeated start Signed-off-by: Jean Delvare <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26i2c-isa: Fail adding driver on attach_adapter errorDavid Hubbard1-3/+8
i2c-isa: Fail adding driver on attach_adapter error Signed-off-by: David Hubbard <[email protected]> Signed-off-by: Jean Delvare <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26i2c: __must_check fixes (chip drivers)Jean Delvare5-27/+97
i2c: __must_check fixes (chip drivers) Check for error on sysfs file creation. Delete sysfs files on device removal. The approach taken for the most complex case (pcf8591) is similar to what Mark M. Hoffman proposed for hardware monitoring chip drivers. Signed-off-by: Jean Delvare <[email protected]> Cc: Ben Gardner <[email protected]> Cc: Aurelien Jarno <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-09-26i2c-dev: attach/detach_adapter cleanupsJean Delvare1-5/+5
i2c-dev: attach/detach_adapter cleanups * Only print that an adapter was attached when it succeeds. * i2c_dev == NULL on detach simply means that the attach failed before, this isn't an error per se. Signed-off-by: Jean Delvare <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>