backports: make regulator palmas driver depend on v3.15

The regulator palmas driver makes use of the new struct regulator_desc
enable_val and disable_val added via commit ca5d1b352 on v3.15 to help
overcome an issue on assumptions on how regulator drivers enable /
disable the regulator with only one value / mask. We can't port this
so just require at least v3.15 for it.

mcgrof@ergon ~/linux (git::master)$ git describe --contains ca5d1b352
v3.15-rc1~148^2~4^3

commit ca5d1b3524b4d90a2e2f1f71583c1dca6b96fd92
Author: Carlo Caione <carlo@caione.org>
Date:   Wed Mar 5 22:11:29 2014 +0100

    regulator: helpers: Modify helpers enabling multi-bit control

    This patch extends the regulator helpers to account for device that use
    multiple bits for control when using regmap enable/disable/bypass ops.

    The actual regulator helpers wrongly assume that the regulator control
    is always performed using single bits, using in the regulator_desc
    struct only two parameters *_reg and *_mask defining register and mask
    for control.

    This patch extends this struct and introduces the helpers to take into
    account devices where control is performed using multiple bits and
    specific multi-bit values are used for enabling/disabling/bypassing the
    regulator.

    Signed-off-by: Carlo Caione <carlo@caione.org>
    Signed-off-by: Mark Brown <broonie@linaro.org>

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
backports: include gpio consumer.h

While doing a make allmodconfig I noticed the following:
  CC [M]  /dev/shm/backports-next/drivers/media/i2c/adv7604.o
/dev/shm/backports-next/drivers/media/i2c/adv7604.c:31:33: fatal error: linux/gpio/consumer.h: No such file or directory

Including the header fixes the error.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Revert "backports: include gpio consumer.h"

This is provides in-kernel functionality, to include
it assuems we have provided a backport for this functionality
and that's not true.

This reverts commit 16472f0c6924f0fa54c68a024a55d89689b413a0.
backports: bump minimum kernel version for ADV7604 to 3.13

While doing a make allmodconfig I noticed the following:
  CC [M]  /dev/shm/backports-next/drivers/media/i2c/adv7604.o
/dev/shm/backports-next/drivers/media/i2c/adv7604.c:31:33: fatal error: linux/gpio/consumer.h: No such file or directory

linux/gpio/consumer.h cannot be backported currently, as functions rely
on in-kernel functionality (GPIO_DEVRES). Bumping the minimum required
kernel version for ADV7604 to 3.13 where the header got introduced.

Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
[add comment with reason]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: remove parameter from dma_buf_export()

dma_buf_export() got a new parameter which is not available in older
kernel versions.

This was once removed in this commit and is needed again:
commit 9981d1abf4b52e84a432fc9bdfbdd30d1838819d
Author: Hauke Mehrtens <hauke@hauke-m.de>
Date:   Mon Jun 16 21:02:25 2014 +0200

    backports: Revert "remove parameter from dma_buf_export()"

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add U16_MAX

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add cc2520 driver

This adds the cc2520.h and disables the driver on kernel < 3.5.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add pci_zalloc_consistent()

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add request_firmware_direct()

request_firmware_direct() was newly added and in some places it is
better to use request_firmware_direct(), but request_firmware() will
also work and result in 60 seconds waiting if the file is not there in
some situations.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: backport __QUEUE_STATE_{DRV,STACK}_XOFF

The old __QUEUE_STATE_XOFF was divided into __QUEUE_STATE_DRV_XOFF and
__QUEUE_STATE_STACK_XOFF, in this patch we map both to the old version
on old kernel vesions.

This backports this upstream commit:
commit 7346649826382b769cfadf4a2fe8a84d060c55e9
Author: Tom Herbert <therbert@google.com>
Date:   Mon Nov 28 16:32:44 2011 +0000

    net: Add queue state xoff flag for stack

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: build some regulator drivers only with kernel 3.17

They are depending in some headers only available in more recent kernel
versions.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: add some ubuntu trusty specific changes

It is now possible to detect a ubuntu kernel see:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1327619

This uses the new define and adds some code depending on the ubuntu
trusty kernel.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: disable some more media drivers

These driver need clk_prepare_enable(), clk_disable_unprepare(),
devm_regulator_bulk_get() or devm_regmap_init_i2c()

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: make AT86RF230 driver depend on kernel > 3.4

AT86RF230 needs the devm_regmap_init_spi() function.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backports: refresh patches on next-20140710

1   3.0.101             [  OK  ]
2   3.1.10              [  OK  ]
3   3.2.60              [  OK  ]
4   3.3.8               [  OK  ]
5   3.4.93              [  OK  ]
6   3.5.7               [  OK  ]
7   3.6.11              [  OK  ]
8   3.7.10              [  OK  ]
9   3.8.13              [  OK  ]
10  3.9.11              [  OK  ]
11  3.10.43             [  OK  ]
12  3.11.10             [  OK  ]
13  3.12.22             [  OK  ]
14  3.13.11             [  OK  ]
15  3.14.7              [  OK  ]
16  3.15.0              [  OK  ]
17  3.16-rc1            [  OK  ]

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>