- 05 9月, 2012 2 次提交
-
-
由 Marc Dietrich 提交于
We forgot to release the sync write lock in case the async write fails. Found by rpiloose on IRC. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Marc Dietrich 提交于
commit 30b68231 "ARM: tegra: clock: add i2c fast clock entry in clock table" added a new clock for the i2c controllers, so clock requests are no longer conclusive. Fix this by specifying "div-clk" explicitly. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
- 14 8月, 2012 2 次提交
-
-
由 Marc Dietrich 提交于
This commit fixes coding style issues that includes long lines. Based on the original patch submitted by Adnan Ali <adnan.ali@codethink.co.uk> Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Andy Shevchenko 提交于
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: ac100@lists.launchpad.net Acked-by: NJulian Andres Klode <jak@jak-linux.org> Acked-By: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
- 26 6月, 2012 5 次提交
-
-
由 Marc Dietrich 提交于
The led driver used OEM commands which are not part of the nvec protocol definition. Therefore it is renamed to nvec_paz00 to reflect that it only applies to PAZ00 board based devices. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Marc Dietrich 提交于
Simplify powermanagement initialization by using pm_ops macro. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Marc Dietrich 提交于
This patch simplifies code by using the module_platform_driver macro. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Marc Dietrich 提交于
Replace a printk in nvec core driver with dev_warn. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Marc Dietrich 提交于
This patch cleanups the nvec and its childs by replacing calls to resource allocations by their devm_* equivalents. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
- 13 6月, 2012 1 次提交
-
-
由 Prashant Gaikwad 提交于
Use clk_prepare/clk_unprepare as required by the generic clk framework. Cc: gregkh@linuxfoundation.org Cc: ac100@lists.launchpad.net Cc: devel@driverdev.osuosl.org Signed-off-by: NPrashant Gaikwad <pgaikwad@nvidia.com> Signed-off-by: NStephen Warren <swarren@nvidia.com> Acked-by: NMarc Dietrich <marvin24@gmx.de>
-
- 01 2月, 2012 2 次提交
-
-
由 Julian Andres Klode 提交于
This saves us some calls and thus makes the code shorter and nicer. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
The constant I2C_SL_NEWL meant "new slave", but the S was missing. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 27 11月, 2011 1 次提交
-
-
由 Marc Dietrich 提交于
This adds device tree support to the nvec driver. By using this method it is no longer necessary to specify platform data through a board file. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Acked-by: NStephen Warren <swarren@nvidia.com> Cc: Julian Andres Klode <jak@jak-linux.org> Cc: Grant Likely <grant.likely@secretlab.ca> Acked-by: NOlof Johansson <olof@lixom.net> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 18 10月, 2011 1 次提交
-
-
由 Marc Dietrich 提交于
This fixes a compilation error in nvec.c due to the missing module.h include. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Cc: Julian Andres Klode <jak@jak-linux.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 30 9月, 2011 22 次提交
-
-
由 Marc Dietrich 提交于
The suspend commands need to be sent using the synchronous method, otherwise the power gets disabled before the messages are transferred. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> [jak@jak-linux.org: Rewrote commit message] Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
As the comment indicates, adding that udelay seems to improve the stability of the communication, although it is not known why this is the case. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
Add the includes that are currently missing in nvec.h and nvec.c and reorder them alphabetically. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
The nvec_power system polls nvec for battery information. In some cases, that part seems to be overloaded and unable to respond fast in which case it sends an incomplete response. We need to mark the transfer as completed, though, in order to prevent endless retries which can kill nvec. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
Reject incomplete messages, causing the request to be transmitted again. This should fix various problems out there. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
If no RX buffer is available in state 1, jump to state 0 again. This will produce an incredible amount of warnings, but it is not supposed to happen anyway. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
Allow TX buffers to be allocated only in the upper 75% of the pool to avoid a completely filled buffer preventing the driver from processing responses. This also improves performance, as RX allocations do not require checking buffers allocated for TX unless there are more than 16 incoming messages -- which is highly unlikely. An earlier version used the lower 75% for TX messages, but that was considered to be not that effective due to the overlaps of RX and TX buffers mentioned above. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
Client code wishing to make use of nvec_write_sync() must have a way to free the returned pointer, otherwise we run out of poool memory fairly soon. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
Those macros are needed only for implementation purposes and do not have any use for other code wishing to use nvec. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
Add kernel-doc comments describing the functions and structs we currently have. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
Change nvec_write_async() to return an integer, 0 by default, a negative error on failure. Change nvec_write_sync() to check the return value and abort if it is negative. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
Forgotten in the last commit(s) which contained the copyrightable material, so let's add it now. I believe that only my nvec.c contributions are copyrightable, nvec.h is just interface naming, so does not deserve that yet. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
The scratch area is not part of the pool and thus gets no allocation message. Printing a free message would be confusing, and the pointer subtraction would be undefined behavior. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
Rewrite the interrupt handler to use a state machine similar to that found in the various kernels for the Advent Vega. This also changes the code to use the new functions introduced in the previous commits. This also merges the rewrite sent in August 2011 by Marc Dietrich, and thus also includes code by him. His original patch can be found on the mailing list. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
Add functions nvec_msg_is_event() and nvec_msg_size() which do just what the say: tell whether the message is an event, and getting the size of the message. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
Introduce nvec_gpio_set_value(), which works like gpio_set_value(), but also creates a debugging message, if that's enabled. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Julian Andres Klode 提交于
Introduce two new functions nvec_msg_alloc() and nvec_msg_free() that allocate and free message buffers from the internal pool of messages. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Ilya Petrov 提交于
This patch adds support for LEDs connect to a nvec. A single brightness property is exported to sysfs. LEDs are selected via bitfields in the brightness value. Also the blinking behavior is selected through this method. Vendors may use different values for different HW designs. Signed-off-by: NIlya Petrov <ilya.muromec@gmail.com> Signed-off-by: NMarc Dietrich <marvin24@gmx.de> [jak@jak-linux.org: Fixed checkpatch warnings] Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Marc Dietrich 提交于
The ec command used was for muting, not unmuting. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Marc Dietrich 提交于
Rework the tegra slave controller init to look more like in tegra-i2c.c. This makes the nvec init reliable. Also add de-init of the slave to be used during suspend. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Marc Dietrich 提交于
Split of the previous patch and the next by Marc, as that patch is not strictly a coding style fix only. Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
由 Marc Dietrich 提交于
This patch fixes coding style and adds copyright notices. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> [jak@jak-linux.org: Merge later cleanup into that patch] Signed-off-by: NJulian Andres Klode <jak@jak-linux.org> Acked-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 25 8月, 2011 1 次提交
-
-
由 Marc Dietrich 提交于
This patch converts the nvec to use mfd cells and improves the registration of the platform driver. The child drivers are also converted to use mfd cells and platform registration. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-
- 20 6月, 2011 1 次提交
-
-
由 Vitaliy Ivanov 提交于
Many stupid corrections of duplicated includes based on the output of scripts/checkincludes.pl. Signed-off-by: NVitaliy Ivanov <vitalivanov@gmail.com> Signed-off-by: NJiri Kosina <jkosina@suse.cz>
-
- 20 5月, 2011 1 次提交
-
-
由 Marc Dietrich 提交于
This is an implementation of a NVidia compliant embedded controller protocol driver. It is used on some ARM-Tegra boards for device communication. Signed-off-by: NMarc Dietrich <marvin24@gmx.de> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
-