summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mfd: twl-core: Fix kernel panic on bootJon Hunter2013-02-141-8/+8
| | | | | | | | | | | | | | | Commit 8a6aaa3 (mfd: twl-core: Collect global variables behind one private structure (global)) removed the variable "inuse" that is used to determine if the device has been initialised and now use the twl_priv structure instead. This is causing the kernel to panic on OMAP3+ devices using the twl driver, because we try to access the twl_priv->ready member before checking if twl_priv is initialised. Fix this and move this test to the beginning of the twl_i2c_read/write function because twl_get_last_module() also uses the twl_priv structure. Signed-off-by: Jon Hunter <jon-hunter@ti.com> Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* Merge branch 'abx500-pinctrl-for-mfd' of ↵Samuel Ortiz2013-02-141-3/+50
|\ | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl into for-next Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
| * mfd: ab8500: allow AB9540 based devices to use ABX500 pinctrlLee Jones2013-02-081-1/+2
| | | | | | | | | | | | | | | | | | | | The old AB8500 GPIO driver has been un-BROKEN and converted into a multi-platform pinctrl driver. If any AB9540 based devices wish to request any GPIO pins that it offers, they can after this patch. Cc: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
| * mfd: ab8500: ensure new AB8500 pinctrl driver is probed correctlyLee Jones2013-02-081-1/+1
| | | | | | | | | | | | | | | | | | | | The old, BROKEN AB8500 GPIO driver has been revamped as a shiny new pinctrl driver and has been renamed as such. So, if we would like to make use of it, we need to register it via its new name. Cc: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
| * mfd: ab8500: provide a irq_set_type() functionLee Jones2013-02-081-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In the AB8500 IRQ mask and unmask functions, we rely on testing for IRQ_TYPE_EDGE_RISING and IRQ_TYPE_EDGE_FALLING interrupts to physically mask and unmask the correct interrupt lines. In order for us to do that, the trigger needs to be set in the associated flags. However, unless a irq_set_type() function pointer is passed when registering the IRQ chip, the IRQ subsystem will refuse to do it. For that reason, we're providing one. Cc: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
| * mfd: ab8500: actually handle the AB8500 GPIO IRQs correctlyLinus Walleij2013-02-081-3/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch: "mfd: ab8500: prepare to handle AB8500 GPIO's IRQs correctly" altered the AB8500 IRQ mask/unmask functions such that they would handle masking on/off the falling edge IRQ if this was requested by the consumer. However the bit mask for hwirqs 43 and 44 was shifting the bit mask incorrectly, resulting in the wrong IRQ being mased/unmasked. Further while the patch would mask/unmask the correct line, when the interrupt actually came in, it would still be treated as a valid hwirq. The offsetting applied when masking/unmasking was not applied when handling the IRQ, i.e. the falling edge lines were not routed back to the rising edge lines. This fixes both cases. The end result has been tested with the SIM detect IRQ, GPIO12, hwirq 46 and 62. Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
| * mfd: ab8500: prepare to handle AB8500 GPIO's IRQs correctlyLee Jones2013-02-081-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In an upcoming patch, the gpio-ab8500 driver will relinquish all IRQ handling capability and pass it back into the AB8500 core driver. This will aid in reducing massive code duplication within the kernel. Also, most of the functionality is already in the AB8500 core driver, as the GPIO IRQs are actually sandwiched between lots of other IRQs which the core driver already handles. All we're doing here is providing the core driver with knowledge that each GPIO has two IRQs assigned to it; one for rising and a separate one for falling. Cc: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* | mfd: rtsx: Fix issue that booting OS with SD card insertedWei WANG2013-02-144-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Realtek card reader supports both SD and MS card. According to the settings of rtsx MFD driver, SD host will be probed before MS host. If we boot/reboot Linux with SD card inserted, the resetting flow of SD card will succeed, and the following resetting flow of MS is sure to fail. Then MS upper-level driver will ask rtsx driver to turn power off. This request leads to the result that the following SD commands fail and SD card can't be accessed again. In this commit, Realtek's SD and MS host driver will check whether the card that upper driver requesting is the one existing in the slot. If not, Realtek's host driver will refuse the operation to make sure the exlusive accessing at the same time. Signed-off-by: Wei WANG <wei_wang@realsil.com.cn> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | mfd: ab8500: Fix compile errorLinus Walleij2013-02-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When compiling the AB8500 core driver in the latest MFD tree the following happens: CC drivers/mfd/ab8500-debugfs.o /home/elinwal/linux-next/drivers/mfd/ab8500-debugfs.c:157:3: error: 'AB8500_SYS_CTRL1_BLOCK' undeclared here (not in a function) /home/elinwal/linux-next/drivers/mfd/ab8500-debugfs.c:157:2: error: array index in initializer not of integer type /home/elinwal/linux-next/drivers/mfd/ab8500-debugfs.c:157:2: error: (near initialization for 'debug_ranges') (...) This is due to a missing include statement, so fix it up. Cc: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | mfd: Add missing GENERIC_HARDIRQS dependeciesHeiko Carstens2013-02-141-34/+38
| | | | | | | | | | | | | | | | | | | | | | | | A lot of mfd drivers select MFD_CORE which however depends on GENERIC_HARDIRQS support. So add the missing dependency to all drivers to get rid of this link error: ERROR: "irq_create_mapping" [drivers/mfd/mfd-core.ko] undefined! Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | Merge branch 'for-mfd' of git://git.linaro.org/people/ljones/linux-3.0-ux500 ↵Samuel Ortiz2013-02-148-74/+1394
|\ \ | | | | | | | | | | | | | | | into for-next Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
| * | mfd: ab8500-gpadc: Use new ab8500_gpadc_get() with name parameterPhilippe Langlais2013-02-041-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | The new format of ab8500_gpadc_get() accepts a device name as a parameter to specify which device to retrieve. This patch enforces the use of that new format. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Philippe Langlais <philippe.langlais@linaro.org>
| * | mfd: ab8500-gpadc: Remove unused 'struct ab8500_gpadc'Lee Jones2013-02-041-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ab8500_gpadc structure carries lots of important information which most functions make good use of. The initial expectation was that ab8500_gpadc_runtime_idle() would be no exception; however, this hasn't been the case to date. Let's remove it for now and add it back in only when we have a use for it. Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: ab8500-gpadc: Reduce conversion timeoutLee Jones2013-02-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Reduce the conversion timeout from 2s to 0.5s Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
| * | mfd: ab8500-debugfs: sizeof() mismatch bugfixAshok G2013-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Simple pointer error fix to obtain the expected sizeof() result. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Ashok G <ashok.g@stericsson.com> Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
| * | mfd: ab8500-gpadc: Add runtime pm supportLee Jones2013-02-041-6/+64
| | | | | | | | | | | | | | | | | | | | | | | | Add runtime pm support to speed up multiple ADC reads in a row. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
| * | mfd: ab8500-debugfs: Add interrupt debugBengt Jonsson2013-02-043-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds an entry in debugfs to check number of interrupts from the AB. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
| * | mfd ab8500-gpadc: Introduce new AB version detectionMichel JAOUEN2013-02-041-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for AB8505 and AB9540 Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Maxime Coquelin <maxime.coquelin@stericsson.com> Signed-off-by: Bengt Jonsson <bengt.g.jonsson@stericsson.com> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com>
| * | mfd: ab8500-debugfs: Allow number of IRQs to be provided more dynamicallyLinus Walleij2013-02-041-10/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the introduction of new AB* platforms, it's important to allow as much code reuse as possible. By allowing a system's number of IRQs to be dynamically passed, we can reuse almost all of the -debugfs driver. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
| * | mfd: ab8500-core: Allow the possibility to dump all AB8500 registersMian Yousaf Kaukab2013-02-043-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement an API so that a user may dump all AB8500 registers via debugfs file access. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
| * | mfd: ab8500-debugfs: add debugfs node to read all registersMian Yousaf Kaukab2013-02-041-14/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | Update the ab8500_registers_print() to reuse it from multiple places. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
| * | mfd: ab8500-debugfs: Set the USB charging current to 300mA for ABV3Philippe Langlais2013-02-041-2/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case of AB-V3, the eye diagram related issues are resolved. So, set the device charging current to 300mA when connected to standard host. Also, add the USB PHY tuning values to improve the USB eye diagram Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: <thirupathi.chippakurthy@stericsson.com>
| * | mfd: ab8500-debugfs: Export all AB8500 ADCs as debugfs nodesJohn Beckett2013-02-041-21/+465
| | | | | | | | | | | | | | | | | | | | | | | | | | | Allow a user to take a glimpse into the inner workings of the AB8500 Analogue-to-Digital Converters, via debugfs. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: John Beckett <john.beckett@stericsson.com> Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
| * | mfd: ab8500-debugfs: Formated access AB8500 registers from debugfs entrycarriere etienne2013-02-041-52/+338
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add debugfs entry ab8500/hwreg to read/write bit-field in AB8500 registers. Check the debugfs entries usage from heading comments in ab8500-debugfs.c Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: carriere etienne <etienne.carriere@stericsson.com> Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
| * | mfd: ab8500-debugfs: Use NULL to initialise remaining NULL pointerLee Jones2013-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Partly for coding style reasons, but mostly because sparse warns on it. This patch is a completion of a previous patch by Mark Brown. Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: ab8500-debugfs: Keep count of IRQs in debugfsMattias Wallin2013-02-041-24/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a counter to the sysfs file dynamically created by debugfs. It also fixes an array index error. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com> Reviewed-by: Mattias NILSSON <mattias.i.nilsson@stericsson.com>
| * | mfd: ab8500-debugfs: Provide a means for a user subscribe to IRQsLee Jones2013-02-041-0/+198
| | | | | | | | | | | | | | | | | | Allow users to subscribe to and view IRQ events live from debugfs. Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: abx500-core: Provide an API to dump all ABx500 registersMian Yousaf Kaukab2013-02-042-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some drivers can detect subsystem failures e.g. shared memory driver can detect modem sub system failures. It would be helpful in analyzing these failures if AB register dump is available at that point. This patch adds the API for the drivers to dump AB registers in the kernel log. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
| * | mfd: ab8500-sysctrl: export read/write symbolsJonas Aaberg2013-02-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Export ab8500_sysctrl_read() and ab8500_sysctrl_write() symobols. They will be used by LTP test cases. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
| * | mfd: ab8500-sysctrl: Provide configuration for SysClkReqRfClkBuf registersKennet Wallden2013-02-043-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the possibility to pass configuration settings for SysCl1kReqRfClkBuf to SysClk8ReqRfClkBuf via platform data. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Kennet Wallden <kennet.wallden@stericsson.com> Reviewed-by: Karl-Johan PERNTZ <karl-johan.perntz@stericsson.com> Reviewed-by: Bengt JONSSON <bengt.g.jonsson@stericsson.com>
| * | mfd: ab8500-gpadc: Change to usleep_range() for greater resolutionLee Jones2013-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | The resolution of msleep is related to HZ, so with HZ set to 100 any msleep of less than 10ms will become ~10ms. Signed-off-by: Lee Jones <lee.jones@linaro.org>
| * | mfd: ab8500-sysctrl.c: Provide charging as reset reasonJonas Aaberg2013-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's possible to supply a string to provide a reason for triggering a restart. In this case our reason is to enter charging-only mode, as a charger was found to be present. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
| * | mfd: ab8500-sysctrl: Only reboot into charging mode if battery type is knownJonas Aaberg2013-02-041-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a charger is connected, we usually want AB8500 based systems to reboot into charging-only mode. However, if the battery type cannot be identified this would be futile, so we'll just shut the system down instead. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
| * | mfd: ab8500-sysctrl: If a charger is present, reboot insteadJonas Aaberg2013-02-041-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | If a charger is attached on power off, reboot the system into charging mode instead of powering it off. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
| * | mfd: ab8500-sysctrl: Provide a platform specific pm_power_off() call-backLee Jones2013-02-042-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | The kernel allows us to specify a function call-back which will be invoked when a system power-off request has been received. Here we provide one which is to be used when shutting down AB8500 based platforms. Signed-off-by: Lee Jones <lee.jones@linaro.org>
* | | Documentation: Add docs for max8925 dtQing Xu2013-02-143-0/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | add docs for dt of max8925-mfd, max8925-backlight, and max8925-battery Signed-off-by: Qing Xu <qingx@marvell.com> Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: max8925: Add dtsQing Xu2013-02-142-1/+161
| | | | | | | | | | | | | | | | | | | | | | | | Add max8925 dts support into mmp2 brownstone platform Signed-off-by: Qing Xu <qingx@marvell.com> Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: max8925: Support dt for backlightQing Xu2013-02-141-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | Add device tree support in max8925 backlight. Signed-off-by: Qing Xu <qingx@marvell.com> Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: max8925: Fix onkey driver irq baseQing Xu2013-02-142-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | update onkey driver's irq base, it should get from max8925, but not save in a private value Signed-off-by: Qing Xu <qingx@marvell.com> Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: max8925: Fix mfd device register failureQing Xu2013-02-141-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | we encounter rtc/power/touch driver registry failure, root cause it is resources confilict in insert_resouce, solved by changing mfd_add_devices 5th parameter to NULL Signed-off-by: Qing Xu <qingx@marvell.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: max8925: Add irqdomain for dtQing Xu2013-02-143-34/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add irqdomains for max8925's main irq, wrap irq register operations into irqdomain's map func. it is necessary for dt support. Also, add dt support for max8925 driver. Signed-off-by: Qing Xu <qingx@marvell.com> Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: vexpress: Allow vexpress-sysreg to self-initialiseCatalin Marinas2013-02-141-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The vexpress_sysreg_init() is a core_initcall() already and it can trigger the early initialisation if a matching node is found. This patch allows the SoC code to avoid calling vexpress_sysreg_of_early_init() explicitly. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Pawel Moll <pawel.moll@arm.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: rtsx: Support RTS5227Roger Tseng2013-02-145-1/+246
| | | | | | | | | | | | | | | | | | | | | | | | Support new model RTS5227. Signed-off-by: Roger Tseng <rogerable@realtek.com> Reviewed-by: Wei WANG <wei_wang@realsil.com.cn> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: rtsx: Implement driving adjustment to device-dependent callbacksRoger Tseng2013-02-143-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement different ways of selecting driving capability(a necessary adjustment along with voltage change). It was origionally in device-independent mmc/host/rtsx_pci_sdmmc.c. Moving it here to support devices which may have a different way of adjustment. Signed-off-by: Roger Tseng <rogerable@realtek.com> Reviewed-by: Wei WANG <wei_wang@realsil.com.cn> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: vexpress: Add pseudo-GPIO based LEDsPawel Moll2013-02-142-18/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The LEDs on the Versatile Express motherboard are controlled through simple memory-mapped register. This patch extends the pseudo-GPIO controller definition for these lines and creates generic "leds-gpio" device using them Signed-off-by: Pawel Moll <pawel.moll@arm.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: ab8500: Rename ab8500 to abx500 for hwmon driverHongbo Zhang2013-02-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | We are using a generic abx500 hwmon layer, so rename specific ab8500 to generic abx500 for hwmon device and driver matching. Signed-off-by: Hongbo Zhang <hongbo.zhang@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: rtsx: Optimize card detect flowWei WANG2013-02-141-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Schedule card detect work at the end of the ISR 2. Callback function ops->cd_deglitch may delay for a period of time. It is not proper to call this callback when local irq disabled. 3. Card detect flow can't be executed in parallel with other card reader operations, so it's better to be protected by mutex. Signed-off-by: Wei WANG <wei_wang@realsil.com.cn> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: rtsx: Use macros to replace some variablesWei WANG2013-02-142-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In function rtsx_pci_switch_clock, some variables, such as min_n, max_n, and max_div, are not necessary. And those assigned values look very obscure for others. It's more proper to use macro definitions here to replace these variables. Signed-off-by: Wei WANG <wei_wang@realsil.com.cn> Acked-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: rtsx: Fix checkpatch warningWei WANG2013-02-141-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WARNING: Avoid CamelCase: <min_N> + u8 N, min_N, max_N, clk_divider; WARNING: Avoid CamelCase: <max_N> + u8 N, min_N, max_N, clk_divider; Signed-off-by: Wei WANG <wei_wang@realsil.com.cn> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | mfd: rtsx: Declare that the DMA address limitation is 32bit explicitlyWei WANG2013-02-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Realtek PCIe card reader only supports 32bit DMA. This declaration can improve the readability. Signed-off-by: Wei WANG <wei_wang@realsil.com.cn> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
OpenPOWER on IntegriCloud