[PATCH] platform/x86: intel-hid: Support Lenovo ThinkPad X1 Tablet Gen 2

2021-02-22 Thread Alban Bedel
Like a few other system the Lenovo ThinkPad X1 Tablet Gen 2 miss the HEBC method, which prevent the power button from working. Add a quirk to enable the button array on this system family and fix the power button. Signed-off-by: Alban Bedel --- drivers/platform/x86/intel-hid.c | 7 +++ 1

[PATCH v2] gpio: pca953x: add support for open drain pins on PCAL6524

2021-02-11 Thread Alban Bedel
es the OUT_INDCONF register when the GPIO API sets the drive mode of the pins. Signed-off-by: Alban Bedel --- v2: - Rename the feature flag to PCAL65xx_REGS as there is at least the PCAL6534 which also have this feature. - Fixed the typos in the log message. - Fixed the code style is

[PATCH] gpio: pca953x: add support for open drain pins on PCAL6524

2021-01-28 Thread Alban Bedel
when the GPIO API set the drive mode of the pins. Signed-off-by: Alban Bedel --- drivers/gpio/gpio-pca953x.c | 64 +++-- 1 file changed, 61 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 825b362eb4b7..d

[PATCH net v2] net: mscc: ocelot: Fix multicast to the CPU port

2021-01-19 Thread Alban Bedel
backporting easier. Signed-off-by: Alban Bedel Fixes: 9403c158b872 ("net: mscc: ocelot: support IPv4, IPv6 and plain Ethernet mdb entries") --- Changelog: v2: - Fix inside ocelot_mact_learn() as suggested by Vladimir Oltean to avoid changing the callers and making backport easier.

[PATCH] net: mscc: ocelot: Fix multicast to the CPU port

2021-01-18 Thread Alban Bedel
problem add a new `flags` parameter to ocelot_mact_learn() and set MAC_CPU_COPY when the CPU port is in the port set. We still leave the CPU port in the bitfield as it doesn't seems to hurt. Signed-off-by: Alban Bedel Fixes: 9403c158 (net: mscc: ocelot: support IPv4, IPv6 and plain Etherne

[PATCH v4 2/3] dt-bindings: hwmon: Add the +vs supply to the lm75 bindings

2020-10-01 Thread Alban Bedel
Some boards might have a regulator that control the +VS supply, add it to the bindings. Signed-off-by: Alban Bedel Acked-by: Rob Herring --- v2: Removed the unneeded `maxItems` attribute --- Documentation/devicetree/bindings/hwmon/lm75.yaml | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v4 1/3] dt-bindings: hwmon: Convert lm75 bindings to yaml

2020-10-01 Thread Alban Bedel
In order to automate the verification of DT nodes convert lm75.txt to lm75.yaml. Signed-off-by: Alban Bedel --- v2: Fix the example to pass `make dt_binding_check` v4: Add the missing additionalProperties: false --- .../devicetree/bindings/hwmon/lm75.txt| 39 .../devicetree

[PATCH v4 0/3] hwmon: (lm75) Add regulator support

2020-10-01 Thread Alban Bedel
ation - Use dummy regulator insted of explicitly handling missing regulator v3: - Use a devm action to handle disabling the regulator v4: - Added the missing `additionalProperties: false` when converting the binding documentation to yaml Alban Bedel (3): dt-bindings: hwmon: Convert

[PATCH v4 3/3] hwmon: (lm75) Add regulator support

2020-10-01 Thread Alban Bedel
Add regulator support for boards where the sensor first need to be powered up before it can be used. Signed-off-by: Alban Bedel --- v2: Rely on dummy regulators instead of explicitly handling missing regulator v3: Use a devm action to handle disabling the regulator --- drivers/hwmon/lm75.c

[PATCH v3 2/3] dt-bindings: hwmon: Add the +vs supply to the lm75 bindings

2020-09-29 Thread Alban Bedel
Some boards might have a regulator that control the +VS supply, add it to the bindings. Signed-off-by: Alban Bedel --- v2: Removed the unneeded `maxItems` attribute --- Documentation/devicetree/bindings/hwmon/lm75.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation

[PATCH v3 3/3] hwmon: (lm75) Add regulator support

2020-09-29 Thread Alban Bedel
Add regulator support for boards where the sensor first need to be powered up before it can be used. Signed-off-by: Alban Bedel --- v2: Rely on dummy regulators instead of explicitly handling missing regulator v3: Use a devm action to handle disabling the regulator --- drivers/hwmon/lm75.c

[PATCH v3 1/3] dt-bindings: hwmon: Convert lm75 bindings to yaml

2020-09-29 Thread Alban Bedel
In order to automate the verification of DT nodes convert lm75.txt to lm75.yaml. Signed-off-by: Alban Bedel --- v2: Fix the example to pass `make dt_binding_check` --- .../devicetree/bindings/hwmon/lm75.txt| 39 .../devicetree/bindings/hwmon/lm75.yaml | 60

[PATCH v3 0/3] hwmon: (lm75) Add regulator support

2020-09-29 Thread Alban Bedel
v2: - Fixed the DT example while converting to YAML - Removed the unneeded maxItems from the binding documentation - Use dummy regulator insted of explicitly handling missing regulator v3: - Use a devm action to handle disabling the regulator Alban Bedel (3): dt-bindings: hwmon

[PATCH v2 3/3] hwmon: (lm75) Add regulator support

2020-09-28 Thread Alban Bedel
Add regulator support for boards where the sensor first need to be powered up before it can be used. Signed-off-by: Alban Bedel --- v2: Rely on dummy regulators instead of explicitly handling missing regulator --- drivers/hwmon/lm75.c | 23 +-- 1 file changed, 21

[PATCH v2 1/3] dt-bindings: hwmon: Convert lm75 bindings to yaml

2020-09-28 Thread Alban Bedel
In order to automate the verification of DT nodes convert lm75.txt to lm75.yaml. Signed-off-by: Alban Bedel --- v2: Fix the example to pass `make dt_binding_check` --- .../devicetree/bindings/hwmon/lm75.txt| 39 .../devicetree/bindings/hwmon/lm75.yaml | 60

[PATCH v2 0/3] hwmon: (lm75) Add regulator support

2020-09-28 Thread Alban Bedel
ation - Use dummy regulator insted of explicitly handling missing regulator Alban Bedel (3): dt-bindings: hwmon: Convert lm75 bindings to yaml dt-bindings: hwmon: Add the +vs supply to the lm75 bindings hwmon: (lm75) Add regulator support .../devicetree/bindings/hwmon/lm75.txt

[PATCH v2 2/3] dt-bindings: hwmon: Add the +vs supply to the lm75 bindings

2020-09-28 Thread Alban Bedel
Some boards might have a regulator that control the +VS supply, add it to the bindings. Signed-off-by: Alban Bedel --- v2: Removed the unneeded `maxItems` attribute --- Documentation/devicetree/bindings/hwmon/lm75.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation

[PATCH 2/3] dt-bindings: hwmon: Add the +vs supply to the lm75 bindings

2020-09-17 Thread Alban Bedel
Some boards might have a regulator that control the +VS supply, add it to the bindings. Signed-off-by: Alban Bedel --- Documentation/devicetree/bindings/hwmon/lm75.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/hwmon/lm75.yaml b/Documentation

[PATCH 1/3] dt-bindings: hwmon: Convert lm75 bindings to yaml

2020-09-17 Thread Alban Bedel
In order to automate the verification of DT nodes convert lm75.txt to lm75.yaml. Signed-off-by: Alban Bedel --- .../devicetree/bindings/hwmon/lm75.txt| 39 - .../devicetree/bindings/hwmon/lm75.yaml | 55 +++ 2 files changed, 55 insertions(+), 39

[PATCH 3/3] hwmon: (lm75) Add regulator support

2020-09-17 Thread Alban Bedel
Add regulator support for boards where the sensor first need to be powered up before it can be used. Signed-off-by: Alban Bedel --- drivers/hwmon/lm75.c | 31 +-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75

[PATCH 0/3] hwmon: (lm75) Add regulator support

2020-09-17 Thread Alban Bedel
Hi everybody, this small series add regulator support to the lm75 driver for boards that don't always power such a sensor. While at it also convert the DT bindings to yaml. Alban Bedel (3): dt-bindings: hwmon: Convert lm75 bindings to yaml dt-bindings: hwmon: Add the +vs supply to the

[PATCH 6/6] MAINTAINERS: Add an entry for the ath79 SPI driver

2019-01-16 Thread Alban Bedel
Add myself as the maintainer for the ath79 SPI driver. Signed-off-by: Alban Bedel --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 71e2965fc656..a03ab41489cf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2520,6 +2520,15 @@ S

[PATCH 3/6] spi: ath79: Enable support for compile test

2019-01-16 Thread Alban Bedel
. Signed-off-by: Alban Bedel --- arch/mips/ath79/dev-spi.h | 2 +- drivers/spi/Kconfig | 2 +- drivers/spi/spi-ath79.c | 15 --- .../linux/platform_data/spi-ath79.h | 0 4 files changed, 14

[PATCH 5/6] spi: ath79: Remove some useless includes

2019-01-16 Thread Alban Bedel
Several include are not needed, remove them to keep the list clean. Signed-off-by: Alban Bedel --- drivers/spi/spi-ath79.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c index 847f354ebef1..257acfb07819 100644 --- a/drivers/spi/spi-ath79

[PATCH 4/6] spi: ath79: Remove now useless code

2019-01-16 Thread Alban Bedel
The custom setup/cleanup routines included in the ath79 driver only take care of setting the initial CS state. However that is already handled by the bitbang code, so this code can be removed. Signed-off-by: Alban Bedel --- drivers/spi/spi-ath79.c | 43

[PATCH 2/6] spi: ath79: Simplify ath79_spi_chipselect()

2019-01-16 Thread Alban Bedel
and data bits during the controller setup. This also remove the last direct usage of the GPIO API, so we can remove the direct dependency on GPIOLIB. Signed-off-by: Alban Bedel --- drivers/spi/Kconfig | 2 +- drivers/spi/spi-ath79.c | 40 +--- 2 files

[PATCH 1/6] spi: bitbang: Don't call chipselect() in spi_bitbang_setup()

2019-01-16 Thread Alban Bedel
spi_setup() already call spi_set_cs() right after calling the controller setup method, so there is no need for the bitbang driver to do that. Because of this the chipselect() callback was confusingly still called when CS is GPIO based. Signed-off-by: Alban Bedel --- drivers/spi/spi-bitbang.c

[PATCH 2/2] phy: ath79-usb: Fix the main reset name to match the DT binding

2019-01-07 Thread Alban Bedel
g it. This patch fix the driver to match the new binding. Signed-off-by: Alban Bedel --- drivers/phy/qualcomm/phy-ath79-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-ath79-usb.c b/drivers/phy/qualcomm/phy-ath79-usb.c index f7d64f3910b4..09

[PATCH] MIPS: ath79: Enable OF serial ports in the default config

2019-01-07 Thread Alban Bedel
CONFIG_SERIAL_OF_PLATFORM is needed to get a working console on the OF boards, enable it in the default config to get a working setup out of the box. Signed-off-by: Alban Bedel --- arch/mips/configs/ath79_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/configs

[PATCH 1/2] phy: ath79-usb: Fix the power on error path

2019-01-07 Thread Alban Bedel
In the power on function the error path doesn't return the suspend override to its proper state. It should should deassert this reset line to enable the suspend override. Signed-off-by: Alban Bedel --- drivers/phy/qualcomm/phy-ath79-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH 1/2] phy: ath79-usb: Fix the power on error path

2019-01-07 Thread Alban Bedel
In the power on function the error path doesn't return the suspend override to its proper state. It should should deassert this reset line to enable the suspend override. Signed-off-by: Alban Bedel --- drivers/phy/qualcomm/phy-ath79-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH 8/8] nvmem: core: Avoid useless iterations in nvmem_cell_get_from_lookup()

2019-01-06 Thread Alban Bedel
Once the correct cell has been found there is no need to continue iterating, just stop there. While at it replace the goto used to leave the loop with simple break statements. Signed-off-by: Alban Bedel --- drivers/nvmem/core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff

[PATCH 3/8] nvmem: Add nvmem_cell_get_optional and devm_nvmem_cell_get_optional

2019-01-06 Thread Alban Bedel
Add helper functions to make the driver code simpler when a cell is optional. Using these functions just return NULL when the cell doesn't exists or if nvmem is disabled. Signed-off-by: Alban Bedel --- drivers/nvmem/core.c | 48 ++ include/linux/

[PATCH 7/8] nvmem: core: Fix device reference leak

2019-01-06 Thread Alban Bedel
: Alban Bedel --- drivers/nvmem/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 2fa97b373601..176fe72f4eb5 100644 --- a/drivers/nvmem/core.c +++ b/drivers/nvmem/core.c @@ -811,6 +811,7 @@ static struct nvmem_device *__nvmem_device_get

[PATCH 6/8] nvmem: core: Always reference the device returned by nvmem_device_get()

2019-01-06 Thread Alban Bedel
ement the reference count like it is done in the DT path. To fix this we replace the call to nvmem_find() with a call to __nvmem_device_get() which does all the referencing and return a proper ERR_PTR in case of error. Signed-off-by: Alban Bedel --- drivers/nvmem/core.c | 2 +- 1 file chang

[PATCH 4/8] nvmem: core: Fix cell lookup when no cell is found

2019-01-06 Thread Alban Bedel
struct nvmem_cell the iteration variable then contains an invalid value. This is easily solved by using a variable to iterate over the list and one to return the cell found. Signed-off-by: Alban Bedel --- drivers/nvmem/core.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions

[PATCH 5/8] nvmem: core: Properly handle connection ID in of_nvmem_device_get()

2019-01-06 Thread Alban Bedel
properly implement an optional connection. Return -ENOENT instead to let the caller know that the connection doesn't exists. Signed-off-by: Alban Bedel --- drivers/nvmem/core.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/c

[PATCH 2/8] nvmem: core: Fix of_nvmem_cell_get() for optional cells

2019-01-06 Thread Alban Bedel
of_nvmem_cell_get() should return -ENOENT when a cell isn't defined, otherwise callers can't distinguish between a missing cell and other errors. Signed-off-by: Alban Bedel --- drivers/nvmem/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme

[PATCH 0/8] nvmem: Various small fixes and improvements

2019-01-06 Thread Alban Bedel
Hi, this series is mostly small bug fixes, but also add a new API to make things simpler in drivers that need to request an optional cell. Alban Bedel (8): nvmem: core: Set the provider read-only when no write callback is given nvmem: core: Fix of_nvmem_cell_get() for optional cells

[PATCH 1/8] nvmem: core: Set the provider read-only when no write callback is given

2019-01-06 Thread Alban Bedel
If no write callback is given the device should be marked as read-only. While at it also move from a bit or to a logical or as that is a logical expression. Signed-off-by: Alban Bedel --- drivers/nvmem/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/nvmem

[PATCH v2] gpio: ath79: Fix potential NULL dereference in ath79_gpio_probe()

2018-03-24 Thread Alban Bedel
!= res == NULL e = devm_ioremap(e1, res->start, e2); Signed-off-by: Wei Yongjun [al...@free.fr: Fixed patch to apply on current tree] Signed-off-by: Alban Bedel --- drivers/gpio/gpio-ath79.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath7

[PATCH v3 3/3] mtd: Add support for reading MTD devices via the nvmem API

2018-03-24 Thread Alban Bedel
Allow drivers that use the nvmem API to read data stored on MTD devices. For this the mtd devices are registered as read-only NVMEM providers. On OF systems only devices that have the 'nvmem-provider' property are registered, on non-OF system all MTD devices are registered. Signed-off

[PATCH v3 2/3] doc: bindings: Add bindings documentation for mtd nvmem

2018-03-24 Thread Alban Bedel
Config data for drivers, like MAC addresses, is often stored in MTD. Add a binding that define how such data storage can be represented in device tree. Signed-off-by: Alban Bedel --- Changelog: v2: * Added a "Required properties" section with the nvmem-provider property v3: * Fix

[PATCH v3 1/3] nvmem: Update the OF binding to use a subnode for the cells list

2018-03-24 Thread Alban Bedel
that we can turn any kind of device in a nvmem provider. While discouraged for new uses the old scheme is still supported for backward compatibility. Signed-off-by: Alban Bedel --- Documentation/devicetree/bindings/nvmem/nvmem.txt | 55 --- drivers/nvmem/core.c

[PATCH v3 0/3] mtd: Add support for reading MTD devices via the nvmem API

2018-03-24 Thread Alban Bedel
binding or an nvmem cell. To avoid this problem we update the nvmem cell binding to use a 'nvmem-cells' subnode with compatible string to hold the list of nvmem cells. This new binding make sure that any kind of device can be used as nvmem provider. Alban Bedel (3): nvmem: Update the

[PATCH] usb: host: Remove the deprecated ATH79 USB host config options

2018-03-24 Thread Alban Bedel
option when the EHCI platform driver is enabled on the ATH79 platform. Signed-off-by: Alban Bedel --- arch/mips/Kconfig| 1 + drivers/usb/host/Kconfig | 25 - 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index

[PATCH] phy: Add a driver for the ATH79 USB phy

2018-03-24 Thread Alban Bedel
qualcom name. Signed-off-by: Alban Bedel --- MAINTAINERS | 8 +++ drivers/phy/qualcomm/Kconfig | 11 +++- drivers/phy/qualcomm/Makefile| 1 + drivers/phy/qualcomm/phy-ath79-usb.c | 108 +++ 4 files changed, 127

[PATCH] drivers: net: xgene: Fix crash on DT systems

2017-02-28 Thread Alban Bedel
On DT systems the driver require a clock, but the probe just print a warning and continue, leading to a crash when resetting the device. To fix this crash and properly handle probe deferals only ignore the missing clock if DT isn't used or if the clock doesn't exist. Signed-off-by: A

[PATCH] drm/tegra: hdmi: Fix audio to work with any pixel clock rate

2016-12-14 Thread Alban Bedel
arithmetic. This allows the driver to cope with any sane pixel clock rate. Signed-off-by: Alban Bedel --- drivers/gpu/drm/tegra/hdmi.c | 163 ++- 1 file changed, 54 insertions(+), 109 deletions(-) diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra

Re: [PATCH] usbnet: ax88179_178a: Add support for writing the EEPROM

2016-08-25 Thread Alban Bedel
On Thu, 25 Aug 2016 11:16:36 +0200 Oliver Neukum wrote: > On Wed, 2016-08-24 at 16:40 +0200, Alban Bedel wrote: > > On Wed, 24 Aug 2016 16:30:39 +0200 > > Oliver Neukum wrote: > > > > > On Wed, 2016-08-24 at 15:52 +0200, Alban Bedel wrote: >

Re: [PATCH] usbnet: ax88179_178a: Add support for writing the EEPROM

2016-08-24 Thread Alban Bedel
On Wed, 24 Aug 2016 16:30:39 +0200 Oliver Neukum wrote: > On Wed, 2016-08-24 at 15:52 +0200, Alban Bedel wrote: > > Implement the .set_eeprom callback to allow setting the MAC address > > as well as a few other parameters. Note that the EEPROM must have a > > correct

[PATCH v2] [media] v4l2-async: Always unregister the subdev on failure

2016-08-24 Thread Alban Bedel
plug these holes. Signed-off-by: Alban Bedel --- Changelog: v2: * Added the missing unbind() calls as suggested by Javier. --- drivers/media/v4l2-core/v4l2-async.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2

[PATCH] usbnet: ax88179_178a: Add support for writing the EEPROM

2016-08-24 Thread Alban Bedel
Implement the .set_eeprom callback to allow setting the MAC address as well as a few other parameters. Note that the EEPROM must have a correct PID/VID checksum set otherwise the SROM is used and reads return the SROM content. Signed-off-by: Alban Bedel --- drivers/net/usb/ax88179_178a.c | 57

Re: [PATCH] [media] v4l2-async: Always unregister the subdev on failure

2016-08-24 Thread Alban Bedel
On Fri, 1 Jul 2016 13:55:44 +0200 Hans Verkuil wrote: > On 05/11/2016 06:32 PM, Alban Bedel wrote: > > On Wed, 11 May 2016 12:22:44 -0400 > > Javier Martinez Canillas wrote: > > > >> Hello Alban, > >> > >> On 05/11/2016 11:40 AM, Alban Bedel w

Re: [PATCH] [media] v4l2-async: Always unregister the subdev on failure

2016-05-11 Thread Alban Bedel
On Wed, 11 May 2016 12:22:44 -0400 Javier Martinez Canillas wrote: > Hello Alban, > > On 05/11/2016 11:40 AM, Alban Bedel wrote: > > In v4l2_async_test_notify() if the registered_async callback or the > > complete notifier returns an error the subdev is not unregistered.

[PATCH] [media] v4l2-async: Always unregister the subdev on failure

2016-05-11 Thread Alban Bedel
plug these holes. Signed-off-by: Alban Bedel --- drivers/media/v4l2-core/v4l2-async.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c index ceb28d4..43393f8 100644 --- a/drivers/media/v4l2

[PATCH v2] [media] v4l2-async: Pass the v4l2_async_subdev to the unbind callback

2016-05-11 Thread Alban Bedel
v4l2_async_cleanup() is always called before calling the unbind() callback. However v4l2_async_cleanup() clears the asd member, so when calling the unbind() callback the v4l2_async_subdev is always NULL. To fix this save the asd before calling v4l2_async_cleanup(). Signed-off-by: Alban Bedel

[PATCH] [media] v4l2-async: Pass the v4l2_async_subdev to the unbind callback

2016-05-10 Thread Alban Bedel
v4l2_async_cleanup() is always called before before calling the unbind() callback. However v4l2_async_cleanup() clear the asd member, so when calling the unbind() callback the v4l2_async_subdev is always NULL. To fix this save the asd before calling v4l2_async_cleanup(). Signed-off-by: Alban

[PATCH 1/3] MIPS: zboot: Avoid useless rebuilds

2016-03-30 Thread Alban Bedel
build with different flags which cause a rebuild at every run. Signed-off-by: Alban Bedel --- arch/mips/boot/compressed/Makefile | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile index

[PATCH v3 1/2] phy: Add a driver for simple phy

2016-01-28 Thread Alban Bedel
This driver is meant to take care of all trivial phys that don't need any special configuration, it just enable a regulator, a clock and deassert a reset. A public API is also included to allow re-using the code in other drivers. Signed-off-by: Alban Bedel --- drivers/phy/Kconfig

[PATCH v3 2/2] phy: Add a driver for the ATH79 USB phy

2016-01-28 Thread Alban Bedel
The ATH79 USB phy is very simple, it only have a reset. On some SoC a second reset is used to force the phy in suspend mode regardless of the USB controller status. Signed-off-by: Alban Bedel --- Changelog: v2: * Rebased on the simple PHY driver * Added myself as maintainer of the driver

[PATCH 4/5] gpio: ath79: Add support for the interrupt controller

2016-01-28 Thread Alban Bedel
Add support for the interrupt controller using GPIOLIB_IRQCHIP. Both edges isn't supported by the chip and has to be emulated by switching the polarity on each interrupt. Signed-off-by: Alban Bedel --- drivers/gpio/Kconfig | 1 + drivers/gpio/gpio-ath79.c

[PATCH 5/5] gpio: ath79: Update the copyright notice

2016-01-28 Thread Alban Bedel
Add myself to the copyright list and remove the reference to Atheros' BSP as nothing is left of this code. Signed-off-by: Alban Bedel --- drivers/gpio/gpio-ath79.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath79.c

[PATCH 2/5] gpio: ath79: Allow building in compile tests

2016-01-28 Thread Alban Bedel
To allow building the driver in compile tests we must drop the dependency on asm/mach-ath79/ar71xx_regs.h. For this we replace the include with local definition of the registers needed for this driver. Signed-off-by: Alban Bedel --- drivers/gpio/Kconfig | 2 +- drivers/gpio/gpio-ath79.c

[PATCH 3/5] gpio: ath79: Make the driver removable

2016-01-28 Thread Alban Bedel
As we now allow the driver to be built as a module it should be removable. Signed-off-by: Alban Bedel --- drivers/gpio/gpio-ath79.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath79.c index afb535e..6b15792 100644 --- a/drivers

[PATCH 1/5] gpio: ath79: Move to the generic GPIO driver

2016-01-28 Thread Alban Bedel
Drop most of the code in favor of the generic MMIO GPIO driver. As the driver now depend on CONFIG_GPIO_GENERIC also add a Kconfig entry to make the driver optional. We leave the base pointer and lock in the data struct because they are needed for the IRQ support. Signed-off-by: Alban Bedel

[PATCH] MIPS: ath79: Use the reset controller to restart OF machines

2016-01-26 Thread Alban Bedel
Don't set _machine_restart() on OF machines as the reset driver now provides a system restart handler. Signed-off-by: Alban Bedel --- arch/mips/ath79/setup.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c

[PATCH v3 3/3] MIPS: ath79: Add zboot debug serial support

2016-01-26 Thread Alban Bedel
Reuse the early printk code to support the serial in zboot. We copy early_printk.c instead of referencing it because we need to build a different object file for the normal kernel and zboot. Signed-off-by: Alban Bedel --- Changelog: v2: * Properly delete the copied source files on clean

[PATCH v3 2/3] MIPS: zboot: Remove copied source files on clean

2016-01-26 Thread Alban Bedel
The copied source files must be added to the extra-y list to have them removed on clean. Signed-off-by: Alban Bedel --- arch/mips/boot/compressed/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile index acfc3ce

[PATCH v3 1/3] MIPS: zboot: Fix the build with XZ compression on older GCC versions

2016-01-26 Thread Alban Bedel
ference to '__bswapsi2' Add bswapsi.o to the link to fix the build with these versions. Signed-off-by: Alban Bedel --- Changelog: v2: * Added CC to stable as the patch hasn't been merged in 4.4 v3: * Updated to 4.5-rc1 * Removed CC to stable as this version of the patch doesn't

[PATCH 2/2] MIPS: ath79: Remove the builtin DTB support

2016-01-25 Thread Alban Bedel
Now that appended DTB is usable we can drop the builtin DTB support. Signed-off-by: Alban Bedel --- arch/mips/ath79/Kconfig | 12 arch/mips/ath79/setup.c | 4 arch/mips/boot/dts/qca/Makefile | 3 --- 3 files changed, 19 deletions(-) diff --git a/arch/mips

[PATCH 1/2] MIPS: ath79: Add support for DTB passed using the UHI boot protocol

2016-01-25 Thread Alban Bedel
This is needed for bootloader supporting UHI and to support appended DTB. Signed-off-by: Alban Bedel --- arch/mips/ath79/setup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c index 2fdba24..2895e45 100644 --- a/arch/mips/ath79/setup.c

[PATCH v2 2/2] MIPS: ath79: irq: Move the CPU IRQ driver to drivers/irqchip

2016-01-23 Thread Alban Bedel
Signed-off-by: Alban Bedel Acked-by: Marc Zyngier --- arch/mips/ath79/irq.c| 81 ++ arch/mips/include/asm/mach-ath79/ath79.h | 1 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ath79-cpu.c | 97

[PATCH v2 1/2] MIPS: ath79: irq: Move the MISC driver to drivers/irqchip

2016-01-23 Thread Alban Bedel
-off-by: Alban Bedel --- Changelog: v2: * Added the missing calls to chained_irq_enter/leave() --- arch/mips/ath79/irq.c| 163 +++--- arch/mips/include/asm/mach-ath79/ath79.h | 3 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ath79

[PATCH v2 4/4] MIPS: ath79: Add zboot debug serial support

2016-01-23 Thread Alban Bedel
Reuse the early printk code to support the serial in zboot. We copy early_printk.c instead of referencing it because we need to build a different object file for the normal kernel and zboot. Signed-off-by: Alban Bedel --- Changelog: v2: * Properly delete the copied source files on clean

[PATCH v2 3/4] MIPS: zboot: Add support for serial debug using the PROM

2016-01-23 Thread Alban Bedel
As most platforms implement the PROM serial interface prom_putchar() add a simple bridge to allow re-using this code for zboot. Signed-off-by: Alban Bedel --- Changelog: v2: * Added a license header to uart-prom.c --- arch/mips/Kconfig | 4 arch/mips/boot/compressed

[PATCH v2 2/4] MIPS: zboot: Avoid useless rebuilds

2016-01-23 Thread Alban Bedel
. To solve this we copy the source files to the build directory to avoid overwritting the kernel objects. Signed-off-by: Alban Bedel --- Changelog: v2: * Properly delete the copied source files on clean * Rewrote the commit log to better explain the problem --- arch/mips/boot/compressed

[PATCH v2 1/4] MIPS: zboot: Fix the build with XZ compression on older GCC versions

2016-01-23 Thread Alban Bedel
ference to '__bswapsi2' Add bswapsi.o to the link to fix the build with these versions. Signed-off-by: Alban Bedel CC: sta...@vger.kernel.org # v4.4 --- Changelog: v2: * Added CC to stable as the patch hasn't been merged in 4.4 --- arch/mips/boot/compressed/Makefile | 2 +- 1 file c

[PATCH 3/3] MIPS: ath79: Add zboot debug serial support

2015-12-10 Thread Alban Bedel
Reuse the early printk code to support the serial in zboot. We copy early_printk.c instead of referencing it because we need to build a different object file for the normal kernel and zboot. Signed-off-by: Alban Bedel --- arch/mips/Kconfig | 2 +- arch/mips/boot/compressed

[PATCH 2/3] MIPS: zboot: Add support for serial debug using the PROM

2015-12-10 Thread Alban Bedel
As most platforms implement the PROM serial interface prom_putchar() add a simple bridge to allow re-using this code for zboot. Signed-off-by: Alban Bedel --- arch/mips/Kconfig | 4 arch/mips/boot/compressed/Makefile| 1 + arch/mips/boot/compressed/uart-prom.c | 7

[PATCH] pwm: Fix of_pwm_get() for consistent return values

2015-11-29 Thread Alban Bedel
urns -ENODATA or -EINVAL. To get a consistent return value with both code paths we must return -ENOENT when of_property_match_string() fails. Signed-off-by: Alban Bedel --- drivers/pwm/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c

[PATCH] clkdev: Fix of_clk_get_by_name() for consistent return values

2015-11-29 Thread Alban Bedel
EINVAL. To get a consistent return value with both code paths we must return -ENOENT when of_property_match_string() fails. Signed-off-by: Alban Bedel --- drivers/clk/clkdev.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c index 77

[PATCH] reset: ath79: Add system restart support

2015-11-23 Thread Alban Bedel
Add a system restart handler that use the FULL_CHIP_RESET bit of the reset controller. Signed-off-by: Alban Bedel --- drivers/reset/reset-ath79.c | 30 +- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/reset/reset-ath79.c b/drivers/reset/reset

[PATCH 1/2] MIPS: ath79: Fix the ar724x clock calculation

2015-11-22 Thread Alban Bedel
with default FB and REF_DIV values. Tested on AR7240, AR7241 and AR7242. Signed-off-by: Weijie Gao Signed-off-by: Alban Bedel [al...@free.fr: Fixed the commit log message] --- arch/mips/ath79/clock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/ath79

[PATCH 2/2] MIPS: ath79: Fix the ar913x reference clock rate

2015-11-22 Thread Alban Bedel
r913x implementation. Signed-off-by: Alban Bedel --- arch/mips/ath79/clock.c | 38 +- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/arch/mips/ath79/clock.c b/arch/mips/ath79/clock.c index ed28465..618dfd7 100644 --- a/arch/mips/ath79/clock.c +++ b

[PATCH 1/2] MIPS: ath79: Add a machine entry for booting OF machines

2015-11-17 Thread Alban Bedel
As I'm using a board with a broken old bootloader I hardcoded the mips_machtype and did't noticed that the machine entry was still missing. Signed-off-by: Alban Bedel --- arch/mips/ath79/setup.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/mips/ath79/setup.c b/arch/

[PATCH 2/2] MIPS: ath79: Remove some unused code from setup.c

2015-11-17 Thread Alban Bedel
Remove the unused defines for the reference clocks rate and the useless machine init function. Signed-off-by: Alban Bedel --- arch/mips/ath79/setup.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/arch/mips/ath79/setup.c b/arch/mips/ath79/setup.c index 8755d61

[PATCH 5/6] MIPS: ath79: Allow using ath79_ddr_wb_flush() from drivers

2015-11-17 Thread Alban Bedel
Move the declaration of ath79_ddr_wb_flush() to asm/mach-ath79/ath79.h to allow using it from drivers. This is needed to move the CPU IRQ driver to drivers/irqchip. Signed-off-by: Alban Bedel --- arch/mips/ath79/common.h | 1 - arch/mips/include/asm/mach-ath79/ath79.h | 1 + 2

[PATCH 6/6] MIPS: ath79: irq: Move the CPU IRQ driver to drivers/irqchip

2015-11-17 Thread Alban Bedel
Signed-off-by: Alban Bedel --- arch/mips/ath79/irq.c| 81 ++ arch/mips/include/asm/mach-ath79/ath79.h | 1 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ath79-cpu.c | 97 4 files

[PATCH 3/6] MIPS: ath79: irq: Prepare moving the MISC driver to drivers/irqchip

2015-11-17 Thread Alban Bedel
To prepare moving out of the arch directory rework the MISC implementation to use irq domains instead of hard coded IRQ numbers. Also remove the uses of the ath79_reset_base global pointer in the IRQ methods. Signed-off-by: Alban Bedel --- arch/mips/ath79/irq.c | 58

[PATCH 4/6] MIPS: ath79: irq: Move the MISC driver to drivers/irqchip

2015-11-17 Thread Alban Bedel
-off-by: Alban Bedel --- arch/mips/ath79/irq.c| 163 +++ arch/mips/include/asm/mach-ath79/ath79.h | 3 + drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-ath79-misc.c | 182 +++ 4 files changed

[PATCH 0/6] MIPS: ath79: Move the IRQ drivers to drivers/irqchip

2015-11-17 Thread Alban Bedel
Hi all, A first round of cleanup on the IRQ code to move most of it to drivers/irqchip. After this the handlers for the cascaded interrupts on the ar934x and qca955x is the only IRQ code left in the platform directory. For these two a new driver must be written first. Alban Alban Bedel (6

[PATCH 1/6] MIPS: ath79: Fix the size of the MISC INTC registers in ar9132.dtsi

2015-11-17 Thread Alban Bedel
There is 2 registers that is 8 bytes long, not 4. Signed-off-by: Alban Bedel --- arch/mips/boot/dts/qca/ar9132.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/boot/dts/qca/ar9132.dtsi b/arch/mips/boot/dts/qca/ar9132.dtsi index 857ca48..3ad4ba9 100644 --- a

[PATCH 2/6] MIPS: ath79: irq: Remove useless #ifdef CONFIG_IRQCHIP

2015-11-17 Thread Alban Bedel
IRQCHIP is always enabled, so the #ifdef can just be removed. Signed-off-by: Alban Bedel --- arch/mips/ath79/irq.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/mips/ath79/irq.c b/arch/mips/ath79/irq.c index eeb3953..26f8d1b 100644 --- a/arch/mips/ath79/irq.c +++ b/arch/mips/ath79

[PATCH] MIPS: ath79: Fix the DDR control initialization on ar71xx and ar934x

2015-11-17 Thread Alban Bedel
The DDR control initialization needs to know the SoC type, however ath79_detect_sys_type() was called after ath79_ddr_ctrl_init(). Reverse the order to fix the DDR control initialization on ar71xx and ar934x. Signed-off-by: Alban Bedel CC: sta...@vger.kernel.org # v4.2+ --- arch/mips/ath79

[PATCH v2 1/5] phy: Add a driver for simple phy

2015-11-16 Thread Alban Bedel
This driver is meant to take care of all trivial phys that don't need any special configuration, it just enable a regulator, a clock and deassert a reset. A public API is also included to allow re-using the code in other drivers. Signed-off-by: Alban Bedel --- drivers/phy/Kconfig

[PATCH v2 2/5] devicetree: Add bindings for the ATH79 USB phy

2015-11-16 Thread Alban Bedel
Signed-off-by: Alban Bedel --- .../devicetree/bindings/phy/phy-ath79-usb.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-ath79-usb.txt diff --git a/Documentation/devicetree/bindings/phy/phy-ath79-usb.txt b

[PATCH v2 0/5] MIPS: ath79: Add USB support on the TL-WR1043ND

2015-11-16 Thread Alban Bedel
d any configuration. Alban Alban Bedel (5): phy: Add a driver for simple phy devicetree: Add bindings for the ATH79 USB phy phy: Add a driver for the ATH79 USB phy MIPS: ath79: Add the EHCI controller and USB phy to the AR9132 dtsi MIPS: ath79: Enable the USB port on the TL-WR1

[PATCH v2 3/5] phy: Add a driver for the ATH79 USB phy

2015-11-16 Thread Alban Bedel
The ATH79 USB phy is very simple, it only have a reset. On some SoC a second reset is used to force the phy in suspend mode regardless of the USB controller status. Signed-off-by: Alban Bedel --- Changelog: v2: * Rebased on the simple PHY driver * Added myself as maintainer of the driver

[PATCH v2 4/5] MIPS: ath79: Add the EHCI controller and USB phy to the AR9132 dtsi

2015-11-16 Thread Alban Bedel
Signed-off-by: Alban Bedel --- Changelog: v2: * Fix the USB controller node name to follow ePAPR * Set the USB phy as disabled like the USB controller --- arch/mips/boot/dts/qca/ar9132.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/mips/boot/dts/qca

  1   2   3   >