summaryrefslogtreecommitdiff
path: root/backport/compat/compat-3.4.c
AgeCommit message (Collapse)Author
2013-06-13backports: rename compat file descriptionsLuis R. Rodriguez
Make these descriptions generic. Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
2013-05-07compat: backport soc_camera_power_[on|off] for 3.3Luis R. Rodriguez
We are only backporting CONFIG_SOC_CAMERA for kernels >= 3.4 but there is an exported symbol from there that some media drivers that we do support on 3.3 need. Handle this special case. SOC_CAMERA is only enabled on 3.4 as it depends on some newer regulator functionality, however there are some SOC cameras that can rely on the 3.3 regulatory built-in core and the 3.3 SOC_CAMERA module however two routines are not exported in that version of SOC_CAMERA that newer SOC cameras do require. Backport that functionality. Technically this should go into <media/soc_camera.h> given that is where its where its exported on linux-next but in practice only placing it on <linux/v4l2-mediabus.h> actually fixes linking errors for 3.3 for all SOC camera drivers we make available for 3.3: LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/imx074.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/mt9m001.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/mt9m111.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/mt9t031.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/mt9t112.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/mt9v022.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/ov2640.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/ov5642.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/ov6650.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/ov772x.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/ov9640.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/ov9740.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/rj54n1cb0c.ko LD [M] /home/mcgrof/build/drivers/media/i2c/soc_camera/tw9910.ko This fixes all pending linking errors on 3.3. $ time ckmake --check-exports --allyesconfig 1 2.6.24 [ OK ] 2 2.6.25 [ OK ] 3 2.6.26 [ OK ] 4 2.6.27 [ OK ] 5 2.6.28 [ OK ] 6 2.6.29 [ OK ] 7 2.6.30 [ OK ] 8 2.6.31 [ OK ] 9 2.6.32 [ OK ] 10 2.6.33 [ OK ] 11 2.6.34 [ OK ] 12 2.6.35 [ OK ] 13 2.6.36 [ OK ] 14 2.6.37 [ OK ] 15 2.6.38 [ OK ] 16 2.6.39 [ OK ] 17 3.0.65 [ OK ] 18 3.1.10 [ OK ] 19 3.2.38 [ OK ] 20 3.3.8 [ OK ] 21 3.4.32 [ LINK ] 22 3.5.7 [ LINK ] 23 3.6.11 [ OK ] 24 3.7.9 [ OK ] 25 3.8.0 [ OK ] 26 3.9-rc1 [ OK ] real 30m14.581s user 796m34.495s sys 126m46.807s Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-04-10compat: backport devm_regmap_init()Luis R. Rodriguez
Backport devm_regmap_init() for I2C and SPI. Asynchronous I/O support was added as of 3.9 and since the regmap is part the core we don't want to deal with trying a full backport replacement yet. Given that no one as of next-20130328 uses regmap asynchronous we simply warn if its ever used for now. The regmap callbacks were made bus agnostic as of commit 0135bbcc added on on 3.5 and becuase of this we we just remove all that from our port given that we do this port for kernels < 3.4. This works with the old core regmap implementation added as of 3.1 given that static inlines were used as wrapper for calls and the bus context was only used by the internal code. mcgrof@frijol ~/linux-stable (git::master)$ git describe --contains c0eb4676 v3.4-rc1~126^2~4^2 mcgrof@frijol ~/linux-stable (git::master)$ git describe --contains 0d509f2b v3.9-rc2~19^2~6^2~5 mcgrof@frijol ~/linux-stable (git::master)$ git describe --contains 0135bbcc v3.5-rc1~117^2~7^3~6 commit c0eb46766d395da8d62148bda2e59bad5e6ee2f2 Author: Mark Brown <broonie@opensource.wolfsonmicro.com> Date: Mon Jan 30 19:56:52 2012 +0000 regmap: Implement managed regmap_init() Save error handling and unwinding code in drivers by providing managed versions of the regmap init functions, simplifying usage. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> commit 0d509f2b112b21411712f0bf789b372987967e49 Author: Mark Brown <broonie@opensource.wolfsonmicro.com> Date: Sun Jan 27 22:07:38 2013 +0800 regmap: Add asynchronous I/O support Some use cases like firmware download can transfer a lot of data in quick succession. With high speed buses these use cases can benefit from having multiple transfers scheduled at once since this allows the bus to minimise the delay between transfers. Support this by adding regmap_raw_write_async(), allowing raw transfers to be scheduled, and regmap_async_complete() to wait for them to finish. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> commit 0135bbcc7a0cc056f0203ff839466236b8e3dc19 Author: Stephen Warren <swarren@nvidia.com> Date: Wed Apr 4 15:48:30 2012 -0600 regmap: introduce explicit bus_context for bus callbacks The only context needed by I2C and SPI bus definitions is the device itself; this can be converted to an i2c_client or spi_device in order to perform IO on the device. However, other bus types may need more context in order to perform IO. Enable this by having regmap_init accept a bus_context parameter, and pass this to all bus callbacks. The existing callbacks simply pass the struct device here. Future bus types may pass something else. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-04-02rename compat dir to backportJohannes Berg
Then we can also move all the plumbing/ stuff into it. Signed-off-by: Johannes Berg <johannes@sipsolutions.net>