summaryrefslogtreecommitdiff
path: root/Documentation
AgeCommit message (Collapse)Author
2013-06-11ARM: tegra: Correct chip specic pathsAntti P Miettinen
Names of some modules are chip version specific. Bug 1198566 Change-Id: I0b8fd329bb96e277a49337815d07b94a02d1dcf9 Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com> Reviewed-on: http://git-master/r/189461 (cherry picked from commit 418729e250afd0793932a37d30904547e3e8df47) Reviewed-on: http://git-master/r/237135 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-04-25power: max17048: Add DT supportJinyoung Park
Added DT support and documentation for max17048_battery. Bug 1240935 Change-Id: I9536e81d0a55625bd6a53f70feb03160acaeeba6 Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/220235 Reviewed-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2013-04-18drivers: misc: therm_est: Add DT supportJinyoung Park
Add DT support and documentation for thermal estimator. Bug 1173854 Bug 1240803 Change-Id: I4631fc499cb042d7649681fe097a9087aa5c5098 Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/211125 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2013-04-17input: misc: compass: akm89xx: add support for device treeDavid Yu
Bug 1260300 Bug 1173064 Change-Id: I1cd32f31126ed08e13c731e3d40ceb2ca6052048 Signed-off-by: David Yu <davyu@nvidia.com> Reviewed-on: http://git-master/r/218488 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2013-04-11input: misc: cm3217: Add cm3217 device tree supportJoshua Cha
Add device tree based initialization support for Capella cm3217 light sensor. Bug 1173064 Bug 1260291 Change-Id: Ib3a6b3cf988b3a52dec57b53b28cc2b403baedb0 Signed-off-by: Joshua Cha <joshuac@nvidia.com> Reviewed-on: http://git-master/r/214930 Reviewed-by: Riham Haidar <rhaidar@nvidia.com> Tested-by: Riham Haidar <rhaidar@nvidia.com>
2013-04-08media: video: tegra: enable DT for ov5693Jake Park
Bug 1255103 Change-Id: I26acd27ae331343d0c8c8c1d6d5216ff45c07867 Signed-off-by: Jake Park <jakep@nvidia.com> Reviewed-on: http://git-master/r/213972 Reviewed-by: Sudhir Vyas <svyas@nvidia.com> Reviewed-by: Peter Kim <pekim@nvidia.com> Reviewed-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
2013-04-08media: video: tegra: enable DT for ad5823Jake Park
Bug 1255103 Change-Id: Iabc3dd93d71d5be9229393c7706d695ad56a0eb5 Signed-off-by: Jake Park <jakep@nvidia.com> Reviewed-on: http://git-master/r/213971 GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Courbot <acourbot@nvidia.com> Reviewed-by: Sudhir Vyas <svyas@nvidia.com> Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
2013-04-01arm: tegra: Define DT bindings for T114 EMC tablesPrashant Gaikwad
Bug 999688 Bug 1243373 Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Signed-off-by: Amit Kamath <akamath@nvidia.com> Reviewed-on: http://git-master/r/130701 (cherry picked from commit 52d06b4f8288a05561840cb451e65d1cd386ad16) Change-Id: I33b56bda4ac3c09442f142ce13e05a81497902d6 Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/212579 Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2013-03-06Merge branch 'linux-3.4.35' into rel-17Sachin Nikam
Bug 1243631 Change-Id: I915826047b2e20f0ad0a7d75df295c6cbf6e5b0a
2013-03-04doc, kernel-parameters: Document 'console=hvc<n>'Konrad Rzeszutek Wilk
commit a2fd6419174470f5ae6383f5037d0ee21ed9833f upstream. Both the PowerPC hypervisor and Xen hypervisor can utilize the hvc driver. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Link: http://lkml.kernel.org/r/1361825650-14031-3-git-send-email-konrad.wilk@oracle.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-04doc, xen: Mention 'earlyprintk=xen' in the documentation.Konrad Rzeszutek Wilk
commit 2482a92e7d17187301d7313cfe5021b13393a0b4 upstream. The earlyprintk for Xen PV guests utilizes a simple hypercall (console_io) to provide output to Xen emergency console. Note that the Xen hypervisor should be booted with 'loglevel=all' to output said information. Reported-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Link: http://lkml.kernel.org/r/1361825650-14031-2-git-send-email-konrad.wilk@oracle.com Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-01EDP: update documentationSivaram Nair
Adding documentation about debugfs features and tegra specific implementation. Change-Id: I087391b522ee89cfe7a75ad44c4ea005c139c1b2 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/204195 Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-02-13EDP: fixing bug with priority definitionsSivaram Nair
The min and max priority constants are defined incorrectly (in the wrong order). This patch corrects it and updates the affected drivers and platform data. Change-Id: I94a628c4f4076d1c36dff1692f0427ad1f218fb5 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> (cherry picked from commit 3d2fe9f41fdd54d4c79b7202680e93de8debc8a1) Reviewed-on: http://git-master/r/198395 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2013-01-17rbd: kill create_snap sysfs entryAlex Elder
Josh proposed the following change, and I don't think I could explain it any better than he did: From: Josh Durgin <josh.durgin@inktank.com> Date: Tue, 24 Jul 2012 14:22:11 -0700 To: ceph-devel <ceph-devel@vger.kernel.org> Message-ID: <500F1203.9050605@inktank.com> From: Josh Durgin <josh.durgin@inktank.com> Right now the kernel still has one piece of rbd management duplicated from the rbd command line tool: snapshot creation. There's nothing special about snapshot creation that makes it advantageous to do from the kernel, so I'd like to remove the create_snap sysfs interface. That is, /sys/bus/rbd/devices/<id>/create_snap would be removed. Does anyone rely on the sysfs interface for creating rbd snapshots? If so, how hard would it be to replace with: rbd snap create pool/image@snap Is there any benefit to the sysfs interface that I'm missing? Josh This patch implements this proposal, removing the code that implements the "snap_create" sysfs interface for rbd images. As a result, quite a lot of other supporting code goes away. [elder@inktank.com: commented out rbd_req_sync_exec() to avoid warning] Suggested-by: Josh Durgin <josh.durgin@inktank.com> Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com> (based on commit 02cdb02ceab1f3dd9ac2bc899fc51f0e0e744782)
2013-01-11tcp: implement RFC 5961 3.2Eric Dumazet
[ Upstream commit 282f23c6ee343126156dd41218b22ece96d747e3 ] Implement the RFC 5691 mitigation against Blind Reset attack using RST bit. Idea is to validate incoming RST sequence, to match RCV.NXT value, instead of previouly accepted window : (RCV.NXT <= SEG.SEQ < RCV.NXT+RCV.WND) If sequence is in window but not an exact match, send a "challenge ACK", so that the other part can resend an RST with the appropriate sequence. Add a new sysctl, tcp_challenge_ack_limit, to limit number of challenge ACK sent per second. Add a new SNMP counter to count number of challenge acks sent. (netstat -s | grep TCPChallengeACK) Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Kiran Kumar Kella <kkiran@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-12-06pinctrl: add support for Tegra114Pritesh Raithatha
Bug 1003210 Change-Id: I7166fc60969b68840b24adcbb71559c69b47763b Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/162048 Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2012-12-03get_dvb_firmware: fix download site for tda10046 firmwareMauro Carvalho Chehab
commit 25ec43d3e6306978cf66060ed18c4160ce8fc302 upstream. The previous website doesn't exist anymore. Update it to one site that actually exists. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-30Thermal: Merge thermal framwork changes from Linux-nextJinyoung Park
There are some massive changes for thermal in Linux-next. They will be released in Linux kernel-3.7. But several of them are needed for new thermal management. So merged them from Linux-next to android-tegra-nv-3.4. This is change list from Linux-next. - thermal: Fix potential NULL pointer accesses - thermal, cpufreq: Fix build when CPU_FREQ_TABLE isn't configured - Thermal: Refactor thermal.h file - Thermal: Move thermal_instance to thermal_core.h - Thermal: Add get trend, get instance API's to thermal_sys - Thermal: Add platform level information to thermal.h - Thermal: Pass zone parameters as argument to tzd_register - Thermal: Add thermal governor registration APIs - Thermal: Add a policy sysfs attribute - Thermal: Update binding logic based on platform data - Thermal: Make thermal_cdev_update as a global function - Thermal: Introduce fair_share thermal governor - Thermal: Introduce a step_wise thermal governor - Thermal: Add a thermal notifier for user space - Thermal: Remove throttling logic out of thermal_sys.c - Thermal: Add a notification API - Thermal: Add documentation for platform layer data - Thermal: Provide option to choose default thermal governor - Thermal: Fix oops and unlocking in thermal_sys.c - thermal: step_wise: Add missing static storage class specifiers - thermal: fair_share: Add missing static storage class specifiers - thermal: user_space: Add missing static storage class specifiers - Thermal: add indent for code alignment. - Thermal: fix bug of counting cpu frequencies. - Thermal: Remove the cooling_cpufreq_list. Bug 1059470 Change-Id: I9fc9d1ee6c1b99da21cad309f740a3762512f11c Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com> Reviewed-on: http://git-master/r/166320 Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2012-11-26memcg: oom: fix totalpages calculation for memory.swappiness==0Michal Hocko
commit 9a5a8f19b43430752067ecaee62fc59e11e88fa6 upstream. oom_badness() takes a totalpages argument which says how many pages are available and it uses it as a base for the score calculation. The value is calculated by mem_cgroup_get_limit which considers both limit and total_swap_pages (resp. memsw portion of it). This is usually correct but since fe35004fbf9e ("mm: avoid swapping out with swappiness==0") we do not swap when swappiness is 0 which means that we cannot really use up all the totalpages pages. This in turn confuses oom score calculation if the memcg limit is much smaller than the available swap because the used memory (capped by the limit) is negligible comparing to totalpages so the resulting score is too small if adj!=0 (typically task with CAP_SYS_ADMIN or non zero oom_score_adj). A wrong process might be selected as result. The problem can be worked around by checking mem_cgroup_swappiness==0 and not considering swap at all in such a case. Signed-off-by: Michal Hocko <mhocko@suse.cz> Acked-by: David Rientjes <rientjes@google.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-19Arm: tegra: correct idle_top_freq descriptionPuneet Saxena
idle_top_freq: Shadow cluster max frequency Change-Id: I9359f31e73cb9f3ac9a9360322f0322d36b6309c Signed-off-by: Puneet Saxena <puneets@nvidia.com> Reviewed-on: http://git-master/r/162650 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-11-15thermal: add generic cpufreq cooling implementationAmit Daniel Kachhap
This patchset introduces a new generic cooling device based on cpufreq that can be used on non-ACPI platforms. As a proof of concept, we have drivers for the following platforms using this mechanism now: * Samsung Exynos (Exynos4 and Exynos5) in the current patchset. * Freescale i.MX (git://git.linaro.org/people/amitdanielk/linux.git imx6q_thermal) There is a small change in cpufreq cooling registration APIs, so a minor change is needed for Freescale platforms. Brief Description: 1) The generic cooling devices code is placed inside driver/thermal/* as placing inside acpi folder will need un-necessary enabling of acpi code. This code is architecture independent. 2) This patchset adds generic cpu cooling low level implementation through frequency clipping. In future, other cpu related cooling devices may be added here. An ACPI version of this already exists (drivers/acpi/processor_thermal.c) .But this will be useful for platforms like ARM using the generic thermal interface along with the generic cpu cooling devices. The cooling device registration API's return cooling device pointers which can be easily binded with the thermal zone trip points. The important APIs exposed are, a) struct thermal_cooling_device *cpufreq_cooling_register( struct cpumask *clip_cpus) b) void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev) 3) Samsung exynos platform thermal implementation is done using the generic cpu cooling APIs and the new trip type. The temperature sensor driver present in the hwmon folder(registered as hwmon driver) is moved to thermal folder and registered as a thermal driver. A simple data/control flow diagrams is shown below, Core Linux thermal <-----> Exynos thermal interface <----- Temperature Sensor | | \|/ | Cpufreq cooling device <--------------- TODO: *Will send the DT enablement patches later after the driver is merged. This patch: Add support for generic cpu thermal cooling low level implementations using frequency scaling up/down based on the registration parameters. Different cpu related cooling devices can be registered by the user and the binding of these cooling devices to the corresponding trip points can be easily done as the registration APIs return the cooling device pointer. The user of these APIs are responsible for passing clipping frequency . The drivers can also register to recieve notification about any cooling action called. bug 1059470 Change-Id: Ia82baaae946598e52708e78204649e088df6fc69 [akpm@linux-foundation.org: fix comment layout] Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org> Cc: Guenter Roeck <guenter.roeck@ericsson.com> Cc: SangWook Ju <sw.ju@samsung.com> Cc: Durgadoss <durgadoss.r@intel.com> Cc: Len Brown <lenb@kernel.org> Cc: Jean Delvare <khali@linux-fr.org> Cc: Kyungmin Park <kmpark@infradead.org> Cc: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Amit Daniel Kachhap <amit.daniel@samsung.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Reviewed-on: http://git-master/r/159978 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Joshua Primero <jprimero@nvidia.com> Tested-by: Joshua Primero <jprimero@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2012-11-14pm: EDP: updated documentationSivaram Nair
Updated the EDP documentation to add more info about callbacks. Change-Id: Ifb3efa925b35083165114c8beb06eb8a726d6d54 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/160192 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com> Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2012-11-09ARM: tegra: Document sysfs/debugfs LP2 node changeBo Yan
The name of one sysfs node for CPU power state control has been changed from "lp2_in_idle" to "power_down_in_idle", the name of the corresponding debugfs node has been changed from "lp2" to "power_down_stats". bug 1034196 Change-Id: I72daa591c4da783062f070bd32b4245eb6a350df Signed-off-by: Bo Yan <byan@nvidia.com> Reviewed-on: http://git-master/r/162462 Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
2012-11-01Thermal: set upper and lower limitsZhang Rui
set upper and lower limits when binding a thermal cooling device to a thermal zone device. bug 1059470 Change-Id: I90f4c79fa2af79896cb93a528fb4e4263f02587c Signed-off-by: Joshua Primero <jprimero@nvidia.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Reviewed-by: Rafael J. Wysocki <rjw@sisk.pl> Reviewed-by: Eduardo Valentin <eduardo.valentin@ti.com> Reviewed-on: http://git-master/r/159962 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2012-11-01Thermal: Documentation updateZhang Rui
With commit 6503e5df08008b9a47022b5e9ebba658c8fa69af, the value of /sys/class/thermal/thermal_zoneX/mode has been changed from user/kernel to enabled/disabled. Update the documentation so that users won't be confused. bug 1059470 Change-Id: I40e33813ad4ebb4b033c2064664b8b1fbeed31ea Signed-off-by: Joshua Primero <jprimero@nvidia.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com> Reviewed-on: http://git-master/r/159959 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2012-11-01Thermal: Add Hysteresis attributesDurgadoss R
The Linux Thermal Framework does not support hysteresis attributes. Most thermal sensors, today, have a hysteresis value associated with trip points. This patch adds hysteresis attributes on a per-trip-point basis, to the Thermal Framework. These attributes are optionally writable. bug 1059470 Change-Id: I701a72ee65048ffcdbcfa8ff88dccc170cd3715e Signed-off-by: Joshua Primero <jprimero@nvidia.com> Signed-off-by: Durgadoss R <durgadoss.r@intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com> Reviewed-on: http://git-master/r/159958 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2012-10-31ARM: at91/tc: fix typo in the DT documentJosh Wu
commit 11930c530f3edf81160e4962e363d579f5cdce7e upstream. Signed-off-by: Josh Wu <josh.wu@atmel.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-25drivers: thermal: Make trip points writableJoshua Primero
Some of the thermal drivers using the Generic Thermal Framework require (all/some) trip points to be writeable. This patch makes the trip point temperatures writeable on a per-trip point basis, and modifies the required function call in thermal.c. This patch also updates the Documentation to reflect the new change. Change-Id: I69128011eec3e3e4848c78b239cc2c1c722cb083 Signed-off-by: Durgadoss R <durgadoss.r@intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com> Signed-off-by: Len Brown <len.brown@intel.com> Signed-off-by: Joshua Primero <jprimero@nvidia.com> Reviewed-on: http://git-master/r/139082 (cherry picked from commit bcec9491925b51d41c95175d1fe4a00d374dcb13) Signed-off-by: Gaurav Batra <gbatra@nvidia.com> Reviewed-on: http://git-master/r/146673 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
2012-10-24media: tegra: Add docs for Tegra V4L2 cameraAndrew Chew
This readme describes theory of operations of the Tegra camera host driver. Signed-off-by: Andrew Chew <achew@nvidia.com> Change-Id: I9e6f761cd60f5b8a537174290df21fb85f016dca Reviewed-on: http://git-master/r/145347 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Allen Martin <amartin@nvidia.com>
2012-10-18dt: Document: correct tegra20/30 pinctrl slew-rate namePritesh Raithatha
change nvidia,slew_rate* to nvidia,slew-rate* Bug 1003210 Change-Id: Ia85a9911c785adaa9066afea9924c25a56fc72dc Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/144585 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
2012-10-11pinctrl: implement devm_pinctrl_get()/put()Stephen Warren
These functions allow the driver core to automatically clean up any allocations made by drivers, thus leading to simplified drivers. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> (cherry picked from commit 6d4ca1fb467932773da7b808c52f3d7ef4461ba0) Change-Id: I1e1cb34b2edf9577ae79ead71196e5cc356cb337 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
2012-10-11dt: Document Tegra20/30 pinctrl bindingStephen Warren
Define a new binding for the Tegra pin controller, which is capable of defining all aspects of desired pin multiplexing and pin configuration. This is all based on the new common pinctrl bindings. Add Tegra30 binding based on Tegra20 binding. Add some basic stuff that was missing before: * How many and what reg property entries must be provided. * An example. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Dong Aisheng <dong.aisheng@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> (cherry picked from commit a3c9454e530d51fad49bbc57e19d50a30f94ce14) Change-Id: I8f6da2a842bf9d17c049ab92b2804faa3ea11214 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
2012-10-11dt: Move Tegra20 pin mux binding into new pinctrl directoryStephen Warren
This places the file in the new location for all pin controller bindings. Also, rename the file using the full compatible value for easier avoidance of conflicts between multiple bindings. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> (cherry picked from commit e3f80045e8856cb789f0938b61c263249f420ff3) Change-Id: I3517f57ec6019e099a3907de5ded4b9a2bbd9b8d Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
2012-10-11dt: pinctrl: Document device tree bindingStephen Warren
The core pin controller bindings define: * The fact that pin controllers expose pin configurations as nodes in device tree. * That the bindings for those pin configuration nodes is defined by the individual pin controller drivers. * A standardized set of properties for client devices to define numbered or named pin configuration states, each referring to some number of the afore-mentioned pin configuration nodes. * That the bindings for the client devices determines the set of numbered or named states that must exist. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Acked-by: Tony Lindgren <tony@atomide.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Dong Aisheng <dong.aisheng@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> (cherry picked from commit 7a865277fb0f9da9e456dfc11b0a564cbfc475cd) Change-Id: I579960c38e224cf51d9106a34715291538218e60 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
2012-10-11pinctrl: implement pinctrl deferred probingLinus Walleij
If drivers try to obtain pinctrl handles for a pin controller that has not yet registered to the subsystem, we need to be able to back out and retry with deferred probing. So let's return -EPROBE_DEFER whenever this location fails. Also downgrade the errors to info, maybe we will even set them to debug once the deferred probing is commonplace. Cc: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> (cherry picked from commit c05127c4e2c6e7d9949347a76fd05c337bcd5e84) Change-Id: I5c153a669989e162f6e11f7ff5f7d932f8c01d36 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
2012-10-11pinctrl: replace list_*() with get_*_count()Viresh Kumar
Most of the SoC drivers implement list_groups() and list_functions() routines for pinctrl and pinmux. These routines continue returning zero until the selector argument is greater than total count of available groups or functions. This patch replaces these list_*() routines with get_*_count() routines, which returns the number of available selection for SoC driver. pinctrl layer will use this value to check the range it can choose. This patch fixes all user drivers for this change. There are other routines in user drivers, which have checks to check validity of selector passed to them. It is also no more required and hence removed. Documentation updated as well. Acked-by: Stephen Warren <swarren@wwwdotorg.org> Signed-off-by: Viresh Kumar <viresh.kumar@st.com> [Folded in fix and fixed a minor merge artifact manually] Signed-off-by: Linus Walleij <linus.walleij@linaro.org> (cherry picked from commit d1e90e9e7467dbfe521b25ba79f520bf676ebc36) Change-Id: I7a115c0c8dade543e4da3a867933a3650b0c5ef9 Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
2012-10-11pinctrl: mark const init data with __initconst instead of __initdataUwe Kleine-König
As long as there is no other non-const variable marked __initdata in the same compilation unit it doesn't hurt. If there were one however compilation would fail with error: $variablename causes a section type conflict because a section containing const variables is marked read only and so cannot contain non-const variables. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Cc: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> (cherry picked from commit 122dbe7e58c7d064a17eefd33205227e6bce85ca) Change-Id: Id03a455b6aedaae89a2d2ea9865dd4aa28f7b77e Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
2012-10-11Documentation: pinctrl: add missing spi0_0 grp in exampleViresh Kumar
Missed one group from the documentation when proofreading. Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> (cherry picked from commit eb181c3533e8e5b3eaa96d3e8ed1cf5d9a408076) Change-Id: I286b2d93b0da825e3be941c50954c5dc94dbd9bb Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
2012-10-05pm: EDP: adding temporal governorsSivaram Nair
Following time based governors are added. (1) LRR - least recently requested (2) MRR - most recently requested (3) RR - round robin Change-Id: I4432a10f724c772f60ccb89914cd6d14c1114681 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/140846 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
2012-10-05pm: EDP: adding best-fit governorSivaram Nair
This patch adds the best-fit governor to EDP framework. Change-Id: I6dc6a3949d04953cd80365499bdc425804937985 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/140845 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2012-10-05pm: EDP: add fair governorSivaram Nair
This patch adds the fair governor to EDP framework. This governor allocates the available current budget proportional to the E0 state level of clients. Change-Id: I6bfac59e3c64ffe0917171af9246d0b287f5da66 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/140844 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
2012-10-02ALSA: hda - Workaround for silent output on VAIO Z with ALC889Takashi Iwai
commit e427c2375646789ecd0ccaef1a1e41458559ab2d upstream. On recent kernels, Realtek codec parser tries to optimize the routing aggressively and take the headphone output as primary at first. This caused a regression on VAIO Z with ALC889, the silent output from the speaker. The problem seems that the speaker pin must be connected to the first DAC (0x02) on this machine by some reason although the codec itself advertises the flexible routing with any DACs. This patch adds a fix-up for choosing the speaker pin as the primary so that the right DAC is assigned on this device. Reported-and-tested-by: Adam Williamson <awilliam@redhat.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-19ARM: tegra: Document sysfs paramsJuha Tukkinen
Intoduction of cpuquiet framework broke tegra sysfs API. Document the new sysfs interface. Bug 894311 Bug 1031064 Change-Id: I6ef94921dd0807bfaeb3bf637a6c1b037d2a337f Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com> Reviewed-on: http://git-master/r/133467 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
2012-09-18Merge remote-tracking branch 'origin/dev/from-android-3.4' into promotion_buildSimone Willett
2012-09-18pm: EDP: bug fixesSivaram Nair
This patch includes several minor bug fixes: (1) fixing example documentation (2) fixing minor errors in sysfs (3) fixing governor initcalls to postcore (4) adding missing include Change-Id: I3c1115cc23e6e887c083801a59143c5a06e75d12 Signed-off-by: Sivaram Nair <sivaramn@nvidia.com> Reviewed-on: http://git-master/r/132525 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
2012-09-18HID: uhid: add documentationDavid Herrmann
This describes the protocol used by uhid for user-space applications. It describes the details like non-blocking I/O and readv/writev for multiple events per syscall. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2012-09-16ARM: Tegra: Define DT bindings for T30 DVFSPrashant Gaikwad
Define device tree bindings for Tegra30 CPU and Core DVFS tables. Bug 906383 Change-Id: Ib04bc59fe314c82321f9cf414dd50b6ba9c3b822 Signed-off-by: Prashant Gaikwad <pgaikwad@nvidia.com> Reviewed-on: http://git-master/r/130670 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2012-09-14i2c-i801: Add Device IDs for Intel Lynx Point-LP PCHJames Ralston
commit 4a8f1ddde942e232387e6129ce4f4c412e43802f upstream. Add the SMBus Device IDs for the Intel Lynx Point-LP PCH. Signed-off-by: James Ralston <james.d.ralston@intel.com> Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-11Extcon: support mutually exclusive relation between cables.Syed Rafiuddin
There could be cables that t recannot be attaches simulatenously. Extcon device drivers may express such information via mutually_exclusive in struct extcon_dev. For example, for an extcon device with 16 cables (bits 0 to 15 are available), if mutually_exclusive = { 0x7, 0xC0, 0x81, 0 }, then, the following attachments are prohibitted. {0, 1} {0, 2} {1, 2} {6, 7} {0, 7} and every attachment set that are superset of one of the above. For the detail, please refer to linux/include/linux/extcon.h. The concept is suggested by NeilBrown <neilb@suse.de> (cherry picked from commit bde68e60b18208978c50c6fb9bdf29826d2887f3) Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> -- Changes from V5: - Updated sysfs format Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Change-Id: I5849ba647e63e44525c9113a14a6d29fb51f6d64 Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-on: http://git-master/r/130611 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2012-09-11Extcon: support multiple states at a device.Syed Rafiuddin
One switch device (e.g., MUIC(MAX8997, MAX77686, ...), and some 30-pin devices) may have multiple cables attached. For example, one 30-pin port may inhabit a USB cable, an HDMI cable, and a mic. Thus, one switch device requires multiple state bits each representing a type of cable. For such purpose, we use the 32bit state variable; thus, up to 32 different type of cables may be defined for a switch device. The list of possible cables is defined by the array of cable names in the switch_dev struct given to the class. (cherry picked from commit 806d9dd71ff52ef09764585baaeec23afbb98560) Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> -- Changes from V7 - Bugfixed in _call_per_cable() (incorrect nb) (Chanwoo Choi) - Compiler error in header for !CONFIG_EXTCON (Chanwoo Choi) Changes from V5 - Sysfs style reformed: subdirectory per cable. - Updated standard cable names - Removed unnecessary printf - Bugfixes after testing Changes from V4 - Bugfixes after more testing at Exynos4412 boards with userspace processses. Changes from V3 - Bugfixes after more testing at Exynos4412 boards. Changes from V2 - State can be stored by user - Documentation updated Changes from RFC - Switch is renamed to extcon - Added kerneldoc comments - Added APIs to support "standard" cable names - Added helper APIs to support notifier block registration with cable name. - Regrouped function list in the header file. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Change-Id: Ic77273f660d528f0f53fa38a005e61f4a9ad422f Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-on: http://git-master/r/130610 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>