summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2015-11-04i2c/i2c-aspeed: Set of_node of i2c bus devicesJeremy Kerr1-0/+1
So the core code will enumerate for devices. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-11-04i2c: Don't print in i2c_device_ueventJeremy Kerr1-1/+0
CONFIG_I2C_DEBUG_CORE + systemd-journald = infinite loop Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-30aspeed/i2c: add all buses to device treeJoel Stanley1-8/+4
They will only be enabled if the status property is changed from "disabled". Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-10-30aspeed/i2c: Add working driver for multiple busesJoel Stanley1-520/+461
We do not support DMA, and have not tested any slave support, however master mode byte-at-a-time is working. The device tree currently includes the first and second buses. Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-10-28gpio/aspeed: constify the aspeed_gpio_banks structureopenbmc-20151028-1Joel Stanley1-14/+14
Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-10-28gpio/aspeed: Don't set names for aspeed GPIOsJeremy Kerr1-31/+0
We need the numbers for exporting anyway. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-27gpio/aspeed: Implement interrupts for GPIO banksJeremy Kerr1-2/+231
We have a set of interrupt registers in each bank; this change adds a gpio irqchip to hook them up to the GPIO code. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-27gpio/aspeed: Expose entire bank as one gpio chipJeremy Kerr1-10/+96
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-27gpio/aspeed: Pass struct resource directly to devm_ioremap_resourceJeremy Kerr1-2/+1
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: read bt ctrl state after poll_waitJeremy Kerr1-1/+3
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: remove bt_host->ctrlJeremy Kerr1-2/+0
... nothing uses it. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: Add ioctl to assert SMS_ATNJeremy Kerr1-0/+19
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: Avoid global bt_hostJeremy Kerr1-9/+13
Rather than having a global bt_host, use references from the file & miscdev. This removes the restriction on the number of bt-host devices. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: Use a dynamic miscdevJeremy Kerr1-9/+10
No need to use a global miscdev here. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: use a more explicit compatible stringJeremy Kerr1-1/+1
The interface we're using here is specific to the aspeed hardware implementation. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: unify device name to bt-hostJeremy Kerr1-3/+3
We have 'bt' in a few places, 'bt-host' in others. Unify on bt-host. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: remove chrdev_region, use module_platform_driverJeremy Kerr1-31/+1
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: use explicit u8 type for bt registersJeremy Kerr1-9/+7
.. to avoid any issues with signed vs unsigned types. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: fix whitespace issuesJeremy Kerr1-19/+19
No functional changes. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: remove unused members of struct bt_hostJeremy Kerr1-3/+0
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: Fix compile warningsJeremy Kerr1-16/+1
We have a bunch of unused functions. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-22watchdog/aspeed_wdt: Set system reset mode to 'full chip'Jeremy Kerr1-1/+3
Currently, the watchdog timer does nothing on expiry - the 'SoC system' reset type doesn't seem to have any effect. This change uses the 'full chip' reset type instead. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-22watchdog/aspeed_wdt: Move watchdog reset to a separate functionJeremy Kerr1-12/+14
We do the same reset procedure in apeed_wdt_enable and our reboot notifier, so move these to a separate function. Also, use a couple of definitions for the watchdog control value rather than a hardcoded '3'. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-22watchdog/aspeed_wdt: Unify register names with the docJeremy Kerr1-11/+11
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-06net/faraday: Enable offload checksum according to device-treeGavin Shan1-1/+5
This enables IP/UDP/TCP offload checksum according to information passed on from bootloader through device-tree. The offload doesn't working properly when the interface works in NCSI mode. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
2015-10-06net/faraday: Enable NCSI interfaceGavin Shan1-24/+67
The NIC has the possibility to connect to NCSI package and channel. This supports NCSI enabled interface. When the network device is registered, the accompanying NCSI device is registered. When the interface is to be brought up, the NCSI device is started to probe NCSI topology and choose one active channel automatically. On the other handle, when the interface is to be brought down, the interface will be shuted down when the NCSI device is teared down. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
2015-10-06net/faraday: Replace use_nc_si with use_ncsiGavin Shan1-7/+7
The patch replaces variable name "use_nc_si" with "use_ncsi". No function changed. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
2015-10-06bt/ipmi: Add Aspeed BT IPMI host driverAlistair Popple3-0/+391
This patch adds a simple device driver to expose the iBT interface on Aspeed chips as a character device (/dev/bt). Signed-off-by: Alistair Popple <alistair@popple.id.au>
2015-10-06gpio: Move aspeed Kconfig entry to correct menuAlistair Popple1-8/+7
The Aspeed GPIO menu entry was added under "PCI GPIO expanders" which depends on PCI which may not be enabled for Aspeed. Move the entry to the "Memory mapped GPIO drivers" which describes the Aspeed GPIO driver more correctly. Signed-off-by: Alistair Popple <alistair@popple.id.au>
2015-10-06i2c wipJoel Stanley1-1272/+468
2015-09-14i2c: fix crap driver so it worksJoel Stanley3-86/+62
Only the first I2C master for now
2015-09-14i2c: add crappy astsdk driverJoel Stanley1-0/+2262
2015-09-14gpio: Add Aspeed AST2400 driverJoel Stanley3-0/+161
Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-09-14rtc: Add Aspeed AST2400 rtc driverJoel Stanley3-0/+160
Read and writes the time to the non-battery backed RTC in the Aspeed AST2400 system on chip. TODO: support timer functionality. Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-09-14watchdog: Add Aspeed ast2400 watchdog driverJoel Stanley3-0/+230
We now use a notifier to perform reset, so the reboot callback can be removed from the platform code. Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-09-14pinctl: Add Aspeed driverJoel Stanley3-0/+171
Doesn't do anything yet. Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-09-14Get some network going...Benjamin Herrenschmidt1-57/+164
2015-09-14WIPBenjamin Herrenschmidt4-21/+331
2015-08-29thermal: power_allocator: allocate with kcalloc what you free with kfreeJavi Merino1-2/+1
Commit cf736ea6f902 ("thermal: power_allocator: do not use devm* interfaces") forgot to change a devm_kcalloc() to just kcalloc(), but it's corresponding devm_kfree() was changed to kfree(). Allocate with kcalloc() to match the kfree(). Fixes: cf736ea6f902 ("thermal: power_allocator: do not use devm* interfaces") Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Eduardo Valentin <edubezval@gmail.com> Cc: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Javi Merino <javi.merino@arm.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-08-28Merge branch 'for-4.2-fixes' of ↵Linus Torvalds1-0/+2
git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata Pull libata fixlet from Tejun Heo: "Simple blacklist entry addition" * 'for-4.2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata: Add factory recertified Crucial M500s to blacklist
2015-08-28Merge tag 'powerpc-4.2-4' of ↵Linus Torvalds1-1/+1
git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux Pull powerpc fixes from Michael Ellerman: "Fix MSI/MSI-X on pseries from Guilherme" * tag 'powerpc-4.2-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: powerpc/PCI: Disable MSI/MSI-X interrupts at PCI probe time in OF case PCI: Make pci_msi_setup_pci_dev() non-static for use by arch code
2015-08-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/netLinus Torvalds16-88/+161
Pull networking fixes from David Miller: "Some straggler bug fixes here: 1) Netlink_sendmsg() doesn't check iterator type properly in mmap case, from Ken-ichirou MATSUZAWA. 2) Don't sleep in atomic context in bcmgenet driver, from Florian Fainelli. 3) The pfkey_broadcast() code patch can't actually ever use anything other than GFP_ATOMIC. And the cases that right now pass GFP_KERNEL or similar will currently trigger an RCU splat. Just use GFP_ATOMIC unconditionally. From David Ahern. 4) Fix FD bit timings handling in pcan_usb driver, from Marc Kleine-Budde. 5) Cache dst leaked in ip6_gre tunnel removal, fix from Huaibin Wang. 6) Traversal into drivers/net/ethernet/renesas should be triggered by CONFIG_NET_VENDOR_RENESAS, not a particular driver's config option. From Kazuya Mizuguchi. 7) Fix regression in handling of igmp_join errors in vxlan, from Marcelo Ricardo Leitner. 8) Make phy_{read,write}_mmd_indirect() properly take the mdio_lock mutex when programming the registers. From Russell King. 9) Fix non-forced handling in u32_destroy(), from WANG Cong. 10) Test the EVENT_NO_RUNTIME_PM flag before it is cleared in usbnet_stop(), from Eugene Shatokhin. 11) In sfc driver, don't fetch statistics firmware isn't capable of, from Bert Kenward. 12) Verify ASCONF address parameter location in SCTP, from Xin Long" * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: sctp: donot reset the overall_error_count in SHUTDOWN_RECEIVE state sctp: asconf's process should verify address parameter is in the beginning sfc: only use vadaptor stats if firmware is capable net: phy: fixed: propagate fixed link values to struct usbnet: Get EVENT_NO_RUNTIME_PM bit before it is cleared drivers: net: xgene: fix: Oops in linkwatch_fire_event cls_u32: complete the check for non-forced case in u32_destroy() net: fec: use reinit_completion() in mdio accessor functions net: phy: add locking to phy_read_mmd_indirect()/phy_write_mmd_indirect() vxlan: re-ignore EADDRINUSE from igmp_join net: compile renesas directory if NET_VENDOR_RENESAS is configured ip6_gre: release cached dst on tunnel removal phylib: Make PHYs children of their MDIO bus, not the bus' parent. can: pcan_usb: don't provide CAN FD bittimings by non-FD adapters net: Fix RCU splat in af_key net: bcmgenet: fix uncleaned dma flags net: bcmgenet: Avoid sleeping in bcmgenet_timeout netlink: mmap: fix tx type check
2015-08-28Merge branch 'libnvdimm-fixes' of ↵Linus Torvalds1-10/+10
git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm Pull nvdimm fixlet from Dan Williams: "This is a libnvdimm ABI fixup. I pushed back on this change quite hard given the late date, that it appears to be purely cosmetic, sysfs is not necessarily meant to be a user friendly UI, and the kernel interprets the reversed polarity of the ACPI_NFIT_MEM_ARMED flag correctly. When this flag is set, the energy source of an NVDIMM is not armed and any new writes to the DIMM may not be preserved. However, Bob Moore warned me that it is important to get these things named correctly wherever they appear otherwise we run the risk of a less than cautious firmware engineer implementing the polarity the wrong way. Once a mistake like that escapes into production platforms the flag becomes useless and we need to move to a new bit position. Bob has agreed to take a change through ACPICA to rename ACPI_NFIT_MEM_ARMED to ACPI_NFIT_MEM_NOT_ARMED, and the patch below from Toshi brings the sysfs representation of these flags in line with their respective polarities. Please pull for 4.2 as this is the first kernel to expose the ACPI NFIT sysfs representation, and this is likely a kernel that firmware developers will be using for checking out their NVDIMM enabling" * 'libnvdimm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: nfit: Clarify memory device state flags strings
2015-08-27nfit: Clarify memory device state flags stringsToshi Kani1-10/+10
ACPI 6.0 NFIT Memory Device State Flags in Table 5-129 defines NVDIMM status as follows. These bits indicate multiple info, such as failures, pending event, and capability. Bit [0] set to 1 to indicate that the previous SAVE to the Memory Device failed. Bit [1] set to 1 to indicate that the last RESTORE from the Memory Device failed. Bit [2] set to 1 to indicate that platform flush of data to Memory Device failed. As a result, the restored data content may be inconsistent even if SAVE and RESTORE do not indicate failure. Bit [3] set to 1 to indicate that the Memory Device is observed to be not armed prior to OSPM hand off. A Memory Device is considered armed if it is able to accept persistent writes. Bit [4] set to 1 to indicate that the Memory Device observed SMART and health events prior to OSPM handoff. /sys/bus/nd/devices/nmemX/nfit/flags shows this flags info. The output strings associated with the bits are "save", "restore", "smart", etc., which can be confusing as they may be interpreted as positive status, i.e. save succeeded. Change also the dev_info() message in acpi_nfit_register_dimms() to be consistent with the sysfs flags strings. Reported-by: Robert Elliott <elliott@hp.com> Signed-off-by: Toshi Kani <toshi.kani@hp.com> [ross: rename 'not_arm' to 'not_armed'] Cc: Ross Zwisler <ross.zwisler@linux.intel.com> [djbw: defer adding bit5, HEALTH_ENABLED, for now] Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2015-08-27sfc: only use vadaptor stats if firmware is capableBert Kenward1-1/+26
Some of the stats handling code differs based on SR-IOV support, and SRIOV support is only available if full-featured firmware is used. Do not use vadaptor stats if firmware mode is not set to full-featured. Signed-off-by: Shradha Shah <sshah@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2015-08-27net: phy: fixed: propagate fixed link values to structMadalin Bucur1-0/+9
The fixed link values parsed from the device tree are stored in the struct fixed_phy member status. The struct phy_device members speed, duplex were not updated. Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2015-08-26Merge branch 'for-linus' of git://git.kernel.dk/linux-blockLinus Torvalds1-0/+8
Pull block fixes from Jens Axboe: "Two fixes in this pull request: - The writeback regression fix from Tejun, which has been weeks in the making. This fixes a case where we would sometimes not issue writeback when we should have. - An older fix for a memory corruption issue in mtip32xx. It was deferred since we wanted a better fix for this (driver should not have to handle that case), but given the timing, it's better to put the simple fix in for 4.2 release" * 'for-linus' of git://git.kernel.dk/linux-block: mtip32x: fix regression introduced by blk-mq per-hctx flush writeback: sync_inodes_sb() must write out I_DIRTY_TIME inodes and always call wait_sb_inodes()
2015-08-26Add factory recertified Crucial M500s to blacklistGuillermo A. Amaral1-0/+2
The Crucial M500 is known to have issues with queued TRIM commands, the factory recertified SSDs use a different model number naming convention which causes them to get ignored by the blacklist. The new naming convention boils down to: s/Crucial_/FC/ Signed-off-by: Guillermo A. Amaral <g@maral.me> Signed-off-by: Tejun Heo <tj@kernel.org> Cc: stable@vger.kernel.org
2015-08-26PCI: Make pci_msi_setup_pci_dev() non-static for use by arch codeGuilherme G. Piccoli1-1/+1
Commit 1851617cd2da ("PCI/MSI: Disable MSI at enumeration even if kernel doesn't support MSI") changed the location of the code that initialises dev->msi_cap/msix_cap and then disables MSI/MSI-X interrupts at PCI probe time in devices that have this flag set. It moved the code from pci_msi_init_pci_dev() to a new function named pci_msi_setup_pci_dev(), called by pci_setup_device(). The pseries PCI probing code does not call pci_setup_device(), so since the aforementioned commit the function pci_msi_setup_pci_dev() is not called and MSI/MSI-X interrupts are left enabled. Additionally because dev->msi_cap/msix_cap are not initialised no driver can ever enable MSI/MSI-X. To fix this, the pseries PCI probe should manually call pci_msi_setup_pci_dev(), so this patch makes it non-static. Fixes: 1851617cd2da ("PCI/MSI: Disable MSI at enumeration even if kernel doesn't support MSI") [mpe: Update change log to mention dev->msi_cap/msix_cap] Signed-off-by: Guilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2015-08-26usbnet: Get EVENT_NO_RUNTIME_PM bit before it is clearedEugene Shatokhin1-3/+4
It is needed to check EVENT_NO_RUNTIME_PM bit of dev->flags in usbnet_stop(), but its value should be read before it is cleared when dev->flags is set to 0. The problem was spotted and the fix was provided by Oliver Neukum <oneukum@suse.de>. Signed-off-by: Eugene Shatokhin <eugene.shatokhin@rosalab.ru> Acked-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>