[PATCH v6 3/3] clk: at91: allow setting all PMC clock parents via DT

2020-05-04 Thread Michał Mirosław
We need to have clocks accessible via phandle to select them as peripheral clock parent using assigned-clock-parents in DT. Add support for PLLACK/PLLBCK/AUDIOPLLCK clocks where available. Signed-off-by: Michał Mirosław --- v2: rebase to clk/clk-at91 branch v3: no changes v4: extend to whole

Re: [PATCH v4 3/3] clk: at91: allow setting all PMC clock parents via DT

2020-05-04 Thread Michał Mirosław
On Mon, May 04, 2020 at 10:04:31PM +0200, Alexandre Belloni wrote: > Hi, > > On 03/05/2020 19:19:26+0200, Michał Mirosław wrote: > > diff --git a/include/dt-bindings/clock/at91.h > > b/include/dt-bindings/clock/at91.h > > index c3f4aa6a2d29..adcf608b41fa 100644 &g

[PATCH v5 3/3] clk: at91: allow setting all PMC clock parents via DT

2020-05-04 Thread Michał Mirosław
We need to have clocks accessible via phandle to select them as peripheral clock parent using assigned-clock-parents in DT. Add support for PLLACK/PLLBCK/AUDIOPLLCK clocks where available. Signed-off-by: Michał Mirosław --- v2: rebase to clk/clk-at91 branch v3: no changes v4: extend to whole

[PATCH v5 2/3] clk: at91: allow setting PCKx parent via DT

2020-05-04 Thread Michał Mirosław
This exposes PROGx clocks for use in assigned-clocks DeviceTree property for selecting PCKx parent clock. Signed-off-by: Michał Mirosław --- v2: rebase and update to clk/clk-at91 branch v3: rebase v4: no changes v5: no changes --- drivers/clk/at91/at91rm9200.c| 6 -- drivers/clk/at91

[PATCH v5 0/3] clk: at91: support configuring more clocks via DT

2020-05-04 Thread Michał Mirosław
This series extends AT91 clock support with references to PCKx and PLLA/PLLB/AUDIOPLL. This makes the DT be able to fully specify (assign) clock parents when needed. First patch simplifies clock table allocation. Next two update the table with missing clock pointers and IDs. Michał Mirosław (3

[PATCH v5 1/3] clk: at91: optimize pmc data allocation

2020-05-04 Thread Michał Mirosław
Alloc whole data structure in one block. This makes the code shorter, more efficient and easier to extend in following patch. Signed-off-by: Michał Mirosław Acked-by: Alexandre Belloni --- v2: rebase and update to clk/clk-at91 branch v3: use struct_size() and C99 trailing array as suggested

[PATCH v3 7/8] power: bq25890: support IBAT compensation

2020-05-04 Thread Michał Mirosław
Add configuration for compensation of IBAT measuring resistor in series with the battery. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/bq25890_charger.c b

[PATCH v3 8/8] power: bq25890: document IBAT compensation DT properties

2020-05-04 Thread Michał Mirosław
Document newly introduced IBAT compensation settings. Signed-off-by: Michał Mirosław --- v2: initial version --- Documentation/devicetree/bindings/power/supply/bq25890.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/bq25890.txt b

[PATCH v3 5/8] power: bq25890: implement PRECHARGE_CURRENT property

2020-05-04 Thread Michał Mirosław
Report configured precharge current. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index 02e62ac76e15..dfd7bf9a3a55 100644

[PATCH v3 2/8] power: bq25890: fix ADC mode configuration

2020-05-04 Thread Michał Mirosław
disable continuous mode for power saving. Signed-off-by: Michał Mirosław --- v3: drop dependency on new input/output properties --- drivers/power/supply/bq25890_charger.c | 31 +- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/drivers/power/supply

[PATCH v3 3/8] power: bq25890: update state on property read

2020-05-04 Thread Michał Mirosław
Edge interrupts from the charger may be lost or stuck in fault mode since probe(). Check if something changed everytime userspace wants some data. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/power

[PATCH v3 4/8] power: bq25890: implement CHARGE_TYPE property

2020-05-04 Thread Michał Mirosław
Report charging type based on recently read state. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index 322d48d28fe5

[PATCH v3 6/8] power: bq25890: implement INPUT_CURRENT_LIMIT property

2020-05-04 Thread Michał Mirosław
Report REG00.IINLIM value as INPUT_CURRENT_LIMIT property. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index

[PATCH v3 0/8] power: supply: bq25890: fix and extend

2020-05-04 Thread Michał Mirosław
additions (they need more intrusive changes to properly fit into power supply class ABI) and adds binding description to IBAT compensation devicetree properties. v3 drops cleanup patches already applied and reintroduces a patch to fix IBAT reading property ID (patch 1) Michał Mirosław (8

[PATCH v3 1/8] power: bq25890: use proper CURRENT_NOW property for I_BAT

2020-05-04 Thread Michał Mirosław
Charge Current is more apropriately reflected by CURRENT_NOW property (measured current) than CONSTANT_CURRENT_VOLTAGE (configured CC-phase current limit). Fix the reference and make the sign reflect direction of the current. Signed-off-by: Michał Mirosław --- drivers/power/supply

[PATCH v4 2/3] clk: at91: allow setting PCKx parent via DT

2020-05-03 Thread Michał Mirosław
This exposes PROGx clocks for use in assigned-clocks DeviceTree property for selecting PCKx parent clock. Signed-off-by: Michał Mirosław --- v2: rebase and update to clk/clk-at91 branch v3: rebase v4: no changes --- drivers/clk/at91/at91rm9200.c| 6 -- drivers/clk/at91/at91sam9260.c

[PATCH v4 1/3] clk: at91: optimize pmc data allocation

2020-05-03 Thread Michał Mirosław
Alloc whole data structure in one block. This makes the code shorter, more efficient and easier to extend in following patch. Signed-off-by: Michał Mirosław Acked-by: Alexandre Belloni --- v2: rebase and update to clk/clk-at91 branch v3: use struct_size() and C99 trailing array as suggested

[PATCH v4 3/3] clk: at91: allow setting all PMC clock parents via DT

2020-05-03 Thread Michał Mirosław
We need to have clocks accessible via phandle to select them as peripheral clock parent using assigned-clock-parents in DT. Add support for PLLACK/PLLBCK/AUDIOPLLCK clocks where available. Signed-off-by: Michał Mirosław --- v2: rebase to clk/clk-at91 branch v3: no changes v4: extend to whole

[PATCH v4 0/3] clk: at91: support configuring more clocks via DT

2020-05-03 Thread Michał Mirosław
This series extends AT91 clock support with references to PCKx and PLLA/PLLB/AUDIOPLL. This makes the DT be able to fully specify (assign) clock parents when needed. First patch simplifies clock table allocation. Next two update the table with missing clock pointers and IDs. Michał Mirosław (3

[PATCH v2 07/11] power: bq25890: implement CHARGE_TYPE property

2020-05-03 Thread Michał Mirosław
Report charging type based on recently read state. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index e4368d01396a

[PATCH v2 06/11] power: bq25890: update state on property read

2020-05-03 Thread Michał Mirosław
Edge interrupts from the charger may be lost or stuck in fault mode since probe(). Check if something changed everytime userspace wants some data. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/power

[PATCH v2 04/11] power: bq25890: protect view of the chip's state

2020-05-03 Thread Michał Mirosław
Extend bq->lock over whole updating of the chip's state. Might get useful later for switching ADC modes correctly. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 82 -- 1 file changed, 26 insertions(+), 56 deletions(-) diff --git a/driv

[PATCH v2 02/11] power: bq25890: simplify chip name property getter

2020-05-03 Thread Michał Mirosław
Driver rejects unknown chips early in the probe(), so when bq25890_power_supply_get_property() is made reachable, bq->chip_version will already be set to correct value - there is no need to check it again. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c |

[PATCH v2 11/11] power: bq25890: document IBAT compensation DT properties

2020-05-03 Thread Michał Mirosław
Document newly introduced IBAT compensation settings. Signed-off-by: Michał Mirosław --- v2: initial version Signed-off-by: Michał Mirosław --- Documentation/devicetree/bindings/power/supply/bq25890.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v2 03/11] power: bq25890: make property table const

2020-05-03 Thread Michał Mirosław
Property list should not change, so mark it const. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index f9f29edadddc

[PATCH v2 01/11] power: bq25890: remove redundant I2C bus check

2020-05-03 Thread Michał Mirosław
regmap initialization will check I2C adapter functionality. Remove redundant check in the driver. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply

[PATCH v2 09/11] power: bq25890: implement INPUT_CURRENT_LIMIT property

2020-05-03 Thread Michał Mirosław
Report REG00.IINLIM value as INPUT_CURRENT_LIMIT property. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index

[PATCH v2 10/11] power: bq25890: support IBAT compensation

2020-05-03 Thread Michał Mirosław
Add configuration for compensation of IBAT measuring resistor in series with the battery. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/bq25890_charger.c b

[PATCH v2 08/11] power: bq25890: implement PRECHARGE_CURRENT property

2020-05-03 Thread Michał Mirosław
Report configured precharge current. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index ad0901fdceb6..b48685009048 100644

[PATCH v2 00/11] power: supply: bq25890: fix and extend

2020-05-03 Thread Michał Mirosław
support. v2 removes VBUS and VSYS additions (they need more intrusive changes to properly fit into power supply class ABI) and adds binding description to IBAT compensation devicetree properties. Michał Mirosław (11): power: bq25890: remove redundant I2C bus check power: bq25890: simplify chip name

[PATCH v2 05/11] power: bq25890: fix ADC mode configuration

2020-05-03 Thread Michał Mirosław
disable continuous mode for power saving. Signed-off-by: Michał Mirosław --- drivers/power/supply/bq25890_charger.c | 33 ++ 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index

Re: [PATCH v4 2/4] power: supply: core: add input voltage/current measurements

2020-05-02 Thread Michał Mirosław
On Sun, May 03, 2020 at 12:45:26AM +0200, Michał Mirosław wrote: > On Sun, May 03, 2020 at 12:23:49AM +0200, Sebastian Reichel wrote: > > On Fri, May 01, 2020 at 05:11:18PM +0200, Michał Mirosław wrote: [...] > > > --- a/include/linux/power_supply.h > > > +++ b/i

Re: [PATCH v4 2/4] power: supply: core: add input voltage/current measurements

2020-05-02 Thread Michał Mirosław
On Sun, May 03, 2020 at 12:23:49AM +0200, Sebastian Reichel wrote: > Hi, > > On Fri, May 01, 2020 at 05:11:18PM +0200, Michał Mirosław wrote: > > Introduce input voltage and current limits and measurements. > > This makes room for e.g. VBUS measurements in USB charge

[PATCH v4 1/4] power: supply: core: tabularize HWMON temperature labels

2020-05-01 Thread Michał Mirosław
Rework power_supply_hwmon_read_string() to check it's parameters. This allows to extend it later with labels for other types of measurements. Signed-off-by: Michał Mirosław --- v2: split from fix temperature labels v3: remove power_supply_hwmon_read_string() parameter checks

[PATCH v4 3/4] power: supply: core: add output voltage measurements

2020-05-01 Thread Michał Mirosław
Add support for supply output voltage to be measured and configured. This might be different from the voltage on the storage element (battery). Signed-off-by: Michał Mirosław --- drivers/power/supply/power_supply_hwmon.c | 25 +++ drivers/power/supply/power_supply_sysfs.c

[PATCH v4 0/4] power: supply: core: extend with new properties

2020-05-01 Thread Michał Mirosław
This series extend power supply class core with additional properties for measurements of power supply input and output power. v4 is a rebase on top of recently applied first part of v3, including patch 1 workaround for gcc and clang bugs. Michał Mirosław (4): power: supply: core: tabularize

[PATCH v4 2/4] power: supply: core: add input voltage/current measurements

2020-05-01 Thread Michał Mirosław
Introduce input voltage and current limits and measurements. This makes room for e.g. VBUS measurements in USB chargers. Signed-off-by: Michał Mirosław --- v2: add parameter checking in power_supply_hwmon_read_string() v3: remove power_supply_hwmon_read_string() parameter checks

[PATCH v4 4/4] power: supply: core: document measurement points

2020-05-01 Thread Michał Mirosław
Document used prefixes for input/output/storage voltages and currents. Signed-off-by: Michał Mirosław --- Documentation/power/power_supply_class.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/power/power_supply_class.rst b/Documentation/power/power_supply_class.rst

[PATCH] power: charger-manager: clarify num_properties starting value

2020-05-01 Thread Michał Mirosław
Initialize num_properties with length of the copied array instead of relying on previously memcpy'd value. This makes it clear how the array and the counter are related. Signed-off-by: Michał Mirosław --- drivers/power/supply/charger-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH] power: charger-manager: fix adding of optional properties

2020-05-01 Thread Michał Mirosław
On Fri, May 01, 2020 at 03:51:09PM +0200, Sebastian Reichel wrote: > Hi, > > On Fri, May 01, 2020 at 03:39:53PM +0200, Michał Mirosław wrote: > > Use num_properties to index added property. > > This will prevent overwriting POWER_SUPPLY_PROP_CHARGE_NOW with > > PO

[PATCH] power: charger-manager: fix adding of optional properties

2020-05-01 Thread Michał Mirosław
memcpy'd value. Fixes: 0a46510addc7 ("power: supply: charger-manager: Prepare for const properties") Signed-off-by: Michał Mirosław --- drivers/power/supply/charger-manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/charger-manager.c

Re: [PATCH v3 02/11] power: charger-manager: don't write through desc->properties

2020-05-01 Thread Michał Mirosław
On Fri, May 01, 2020 at 02:38:49PM +0200, Sebastian Reichel wrote: > Hi, > > On Fri, Apr 03, 2020 at 10:20:31PM +0200, Michał Mirosław wrote: > > psy_desc->properties will become pointer to const. Avoid writing > > through the pointer to enable constification

Re: [PATCH v4 10/10] dt-bindings: input: touchscreen: elants_i2c: convert to YAML

2020-04-28 Thread Michał Mirosław
On Mon, Apr 27, 2020 at 04:14:15PM -0500, Rob Herring wrote: > On Sun, Apr 26, 2020 at 11:11 AM Michał Mirosław > wrote: > > > > From: David Heidelberg > > > > Convert elants_i2c.txt DT binding to YAML and put into correct directory. > > Resend to the DT list

Re: [PATCH] usb: chipidea: usb2: remove unneeded semicolon

2020-04-28 Thread Michał Mirosław
riv->clk); > if (ret) { Fixes: c2de37b31f17 ("usb: chipidea: usb2: make clock optional") Reviewed-by: Michał Mirosław

Re: [PATCH] ASoC: atmel: fix atmel_ssc_set_audio link failure

2019-10-01 Thread Michał Mirosław
obj-$(CONFIG_SND_ATMEL_SOC_I2S) += snd-soc-atmel-i2s.o > obj-$(CONFIG_SND_MCHP_SOC_I2S_MCC) += snd-soc-mchp-i2s-mcc.o I was just exploring similar solution, using $(if X,Y) instead, but your fix will work just as well. Reviewed-by: Michał Mirosław Best Regards, Michał Mirosław

Re: [PATCH -next] ASoC: atmel: Fix build error

2019-09-30 Thread Michał Mirosław
On Mon, Sep 30, 2019 at 05:58:18PM +0200, Michał Mirosław wrote: > On Sat, Sep 28, 2019 at 04:16:41PM +0800, YueHaibing wrote: > > when do randbuilding, I got this error: > > > > sound/soc/atmel/atmel_ssc_dai.o: In function `atmel_ssc_set_audio': > > (.text+0

Re: [PATCH -next] ASoC: atmel: Fix build error

2019-09-30 Thread Michał Mirosław
On Sat, Sep 28, 2019 at 04:16:41PM +0800, YueHaibing wrote: > when do randbuilding, I got this error: > > sound/soc/atmel/atmel_ssc_dai.o: In function `atmel_ssc_set_audio': > (.text+0x12f6): undefined reference to `atmel_pcm_pdc_platform_register' > > This is because SND_ATMEL_SOC_SSC_DMA=y,

Re: [PATCH v2 4/6] dt-bindings: misc: atmel-ssc: LRCLK from TF/RF pin option

2019-08-28 Thread Michał Mirosław
On Tue, Aug 27, 2019 at 05:37:16PM -0500, Rob Herring wrote: > On Sat, Aug 24, 2019 at 10:26:55PM +0200, Michał Mirosław wrote: > > Add single-pin LRCLK source options for Atmel SSC module. > > > > Signed-off-by: Michał Mirosław > > > > --- > >

[PATCH] ata_piix: remove open-coded dmi_match(DMI_OEM_STRING)

2019-08-25 Thread Michał Mirosław
Since de40614de99 ("firmware: dmi_scan: Add DMI_OEM_STRING support to dmi_matches") dmi_check_system() can match OEM_STRINGs itself. Use the feature. Signed-off-by: Michał Mirosław --- drivers/ata/ata_piix.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-)

[PATCH v2 4/4] [RFT] ASoC: wm8994: use common FLL code

2019-08-25 Thread Michał Mirosław
Rework FLL handling to use common code. This uses polling for now to wait for FLL lock. Signed-off-by: Michał Mirosław --- sound/soc/codecs/Kconfig | 2 + sound/soc/codecs/wm8994.c | 281 +++--- sound/soc/codecs/wm8994.h | 4 +- 3 files changed, 84

[PATCH v2 3/4] ASoC: wm8904: automatically choose clock source

2019-08-25 Thread Michał Mirosław
Choose clock source automatically if not provided. This will be the case with eg. audio-graph-card. Signed-off-by: Michał Mirosław --- sound/soc/codecs/wm8904.c | 42 +-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm8904.c

[PATCH v2 2/4] ASoC: wm8904: use common FLL code

2019-08-25 Thread Michał Mirosław
Rework FLL handling to use common code introduced earlier. Signed-off-by: Michał Mirosław --- sound/soc/atmel/atmel_wm8904.c | 11 +- sound/soc/codecs/Kconfig | 1 + sound/soc/codecs/wm8904.c | 476 ++--- sound/soc/codecs/wm8904.h | 5 - 4 files

[PATCH v2 1/4] ASoC: wm_fll: extract common code for Wolfson FLLs

2019-08-25 Thread Michał Mirosław
A new implementation for FLLs as contained in WM8904, WM8994 and a few other Cirrus Logic (formerly Wolfson) codecs. Patches using this common code follow. Signed-off-by: Michał Mirosław --- sound/soc/codecs/Kconfig | 6 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/wm_fll.c | 518

[PATCH v2 0/4] wm8904: adapt driver for use with audio-graph-card

2019-08-25 Thread Michał Mirosław
://rere.qmqm.pl/git/linux branch: wm8904 (branch includes two fixes already sent to alsa-devel, but not merged yet). Michał Mirosław (4): ASoC: wm_fll: extract common code for Wolfson FLLs ASoC: wm8904: use common FLL code ASoC: wm8904: automatically choose clock source [RFT] ASoC: wm8994: use

[PATCH v2 5/6] misc: atmel-ssc: get LRCLK pin selection from DT

2019-08-24 Thread Michał Mirosław
Store LRCLK pin selection for use by ASoC DAI driver. Signed-off-by: Michał Mirosław --- v2: split from ASoC implementation --- drivers/misc/atmel-ssc.c | 9 + include/linux/atmel-ssc.h | 2 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc

[PATCH v2 4/6] dt-bindings: misc: atmel-ssc: LRCLK from TF/RF pin option

2019-08-24 Thread Michał Mirosław
Add single-pin LRCLK source options for Atmel SSC module. Signed-off-by: Michał Mirosław --- v2: split from implementation patch --- Documentation/devicetree/bindings/misc/atmel-ssc.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/misc/atmel

[PATCH v2 6/6] ASoC: atmel_ssc_dai: Enable shared FSYNC source in frame-slave mode

2019-08-24 Thread Michał Mirosław
SSC driver allows only synchronous TX and RX. In slave mode for BCLK it uses only one of TK or RK pin, but for LRCLK it configured separate inputs from TF and RF pins. Allow configuration with common FS signal. Signed-off-by: Michał Mirosław --- v2: use alternate DT binding split DT

[PATCH v2 2/6] ASoC: atmel_ssc_dai: rework DAI format configuration

2019-08-24 Thread Michał Mirosław
is not used anyway. Signed-off-by: Michał Mirosław --- v2: added note about extended modes' status incorporated common FS (LRCLK) configuration --- sound/soc/atmel/atmel_ssc_dai.c | 286 +--- 1 file changed, 80 insertions(+), 206 deletions(-) diff --git a/sound/soc

[PATCH v2 1/6] ASoC: atmel: enable SOC_SSC_PDC and SOC_SSC_DMA in Kconfig

2019-08-24 Thread Michał Mirosław
Allow SSC to be used on platforms described using audio-graph-card in Device Tree. Signed-off-by: Michał Mirosław --- v2: extended to PDC mode reworked and fixed Kconfig option dependencies --- sound/soc/atmel/Kconfig | 30 ++ 1 file changed, 18 insertions

[PATCH v2 3/6] ASoC: atmel_ssc_dai: implement left-justified data mode

2019-08-24 Thread Michał Mirosław
Enable support for left-justified data mode for SSC-codec link. Signed-off-by: Michał Mirosław --- v2: rebased --- sound/soc/atmel/atmel_ssc_dai.c | 9 + 1 file changed, 9 insertions(+) diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c index 7dc6ec9b8c7a

[PATCH v2 0/6] ] ASoC: atmel: extend SSC support

2019-08-24 Thread Michał Mirosław
against tiwai/sound/for-next tree. You can also pull from https://rere.qmqm.pl/git/linux branch: atmel-ssc Michał Mirosław (6): ASoC: atmel: enable SOC_SSC_PDC and SOC_SSC_DMA in Kconfig ASoC: atmel_ssc_dai: rework DAI format configuration ASoC: atmel_ssc_dai: implement left-justified

[PATCH v2] HID: fix error message in hid_open_report()

2019-08-23 Thread Michał Mirosław
ot; commit just promoted the message from DEBUG to ERROR. Cc: sta...@vger.kernel.org Fixes: 8c3d52fc393b ("HID: make parser more verbose about parsing errors by default") Signed-off-by: Michał Mirosław --- v2: fixed printf() warning spotted by Jiri Kosina * against v5.2.9 Signed-off

[PATCH v2 2/2] ASoC: wm8904: implement input mode select as a mux

2019-08-20 Thread Michał Mirosław
Make '* Capture Mode' a mux. This makes DAPM know that in single-ended mode only inverting mux paths need to be enabled. Signed-off-by: Michał Mirosław Acked-by: Charles Keepax --- v2: fixed 'right' to be 'Right' --- sound/soc/codecs/wm8904.c | 52 +-- 1

[PATCH v2 1/2] ASoC: wm8904: fix typo in DAPM kcontrol name

2019-08-20 Thread Michał Mirosław
Trivial fix for typo in "Capture Inverting Mux"es' name. Signed-off-by: Michał Mirosław Acked-by: Charles Keepax --- v2: no changes --- sound/soc/codecs/wm8904.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm89

[PATCH 1/2] ASoC: wm8904: fix typo in DAPM kcontrol name

2019-08-20 Thread Michał Mirosław
Trivial fix for typo in "Capture Inverting Mux"es' name. Signed-off-by: Michał Mirosław --- sound/soc/codecs/wm8904.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index 5ebdd1d9afde..525e4ef654a1 100644 -

[PATCH 2/2] ASoC: wm8904: implement input mode select as a mux

2019-08-20 Thread Michał Mirosław
Make '* Capture Mode' a mux. This makes DAPM know that in single-ended mode only inverting mux paths need to be enabled. Signed-off-by: Michał Mirosław --- sound/soc/codecs/wm8904.c | 52 +-- 1 file changed, 33 insertions(+), 19 deletions(-) diff --git

Re: [PATCH v10 01/15] clk: tegra20/30: Add custom EMC clock implementation

2019-08-12 Thread Michał Mirosław
K_DFLL) += clk-tegra124-dfll-fcpu.o Doesn't it complain when both CONFIG_ARCH_TEGRA_2x_SOC and CONFIG_ARCH_TEGRA_3x_SOC are enabled at the same time? Best Regards, Michał Mirosław

AT91: sama5d2: lockdep splat in sama5d2_pmc_of_clk_init_driver()

2019-07-26 Thread Michał Mirosław
Dear Developers Since upgrading to v5.2.2 from v5.1.x I keep getting lockdep complaints (below) from clk initialization on SAMA5D2 board. Have you seen this? Can you help me in finding a fix? Best Regards, Michał Mirosław --- dmesg START -- [0.00] Booting Linux on physical CPU

[PATCH v2 1/2] regulator: act8865: rename fixed LDO ops

2019-07-23 Thread Michał Mirosław
Rename act8865_ldo_ops to act8865_fixed_ldo_ops to make room for variable-output LDO ops change. Signed-off-by: Michał Mirosław --- v2: split ops rename from main patch drivers/regulator/act8865-regulator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH v2 2/2] regulator: act8865: support regulator-pull-down property

2019-07-23 Thread Michał Mirosław
AC8865 has internal 1.5k pull-down resistor that can be enabled when LDO is shut down. Signed-off-by: Michał Mirosław --- v2: split ops rename from main patch drivers/regulator/act8865-regulator.c | 41 --- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git

Re: [PATCH] regulator: act8865: support regulator-pull-down property

2019-07-23 Thread Michał Mirosław
On Tue, Jul 23, 2019 at 11:54:32AM +0100, Mark Brown wrote: > On Mon, Jul 22, 2019 at 08:13:29PM +0200, Michał Mirosław wrote: > > AC8865 has internal 1.5k pull-down resistor that can be enabled when LDO > > is shut down. > > This changelog... > > > sta

[PATCH] regulator: act8865: support regulator-pull-down property

2019-07-22 Thread Michał Mirosław
AC8865 has internal 1.5k pull-down resistor that can be enabled when LDO is shut down. Signed-off-by: Michał Mirosław --- * against broonie/regulator/for-next tree --- drivers/regulator/act8865-regulator.c | 45 --- 1 file changed, 33 insertions(+), 12 deletions

[PATCH RESEND] HID: fix error message in hid_open_report()

2019-07-22 Thread Michał Mirosław
ot; commit just promoted the message from DEBUG to ERROR. Cc: sta...@vger.kernel.org Fixes: 8c3d52fc393b ("HID: make parser more verbose about parsing errors by default") Signed-off-by: Michał Mirosław --- * against v5.2.2 Signed-off-by: Michał Mirosław --- drivers/hid/hid-core.c

Re: [PATCH] misc: remove redundant 'default n' from Kconfig-s

2019-05-20 Thread Michał Mirosław
ight make it clearer to people that a bare 'default n' is > redundant. > ... > > Signed-off-by: Bartlomiej Zolnierkiewicz [...] > drivers/misc/cb710/Kconfig|1 - Acked-by: Michał Mirosław

Re: [PATCH v9 1/7] ARM: trusted_foundations: Support L2 cache maintenance

2019-03-04 Thread Michał Mirosław
disabled.\n"); > +#if IS_ENABLED(CONFIG_CACHE_L2X0) > + pr_err("L2X0 cache will be disabled.\n"); [...] I guess this is redundant since tf_dummy_write_sec() will say the same thing when trying to enable the cache. Best Regards, Michał Mirosław

Re: [PATCH v6 0/7] Support Trusted Foundations firmware on Tegra30

2019-02-24 Thread Michał Mirosław
-by on the patches where apropriate, and thanks for your work! Best Regards, Michał Mirosław [0.00] Booting Linux on physical CPU 0x0 [0.00] Linux version 5.0.0-rc8mq-00034-g83dcf8d77845 (mirq@qmqm) (gcc version 8.2.0 (Debian 8.2.0-20)) #16 SMP Mon Feb 25 04:45:43 CET 2019 [0.

Re: [PATCH v4 0/8] Support Trusted Foundations firmware on Tegra30

2019-02-20 Thread Michał Mirosław
ekend. Which kernel tree do you suggest as base? Best Regards, Michał Mirosław

Re: [PATCH 11/26] cb710: Convert to new IDA API

2018-06-21 Thread Michał Mirosław
On Thu, Jun 21, 2018 at 02:28:20PM -0700, Matthew Wilcox wrote: > Eliminates the custom spinlock and the call to ida_pre_get. > > Signed-off-by: Matthew Wilcox Acked-by: Michał Mirosław

Re: [PATCH 11/26] cb710: Convert to new IDA API

2018-06-21 Thread Michał Mirosław
On Thu, Jun 21, 2018 at 02:28:20PM -0700, Matthew Wilcox wrote: > Eliminates the custom spinlock and the call to ida_pre_get. > > Signed-off-by: Matthew Wilcox Acked-by: Michał Mirosław

[PATCH 2/2] procfs: let userspace find out max /proc/pid/comm length

2017-08-31 Thread Michał Mirosław
Abuse llseek(SEEK_END) to return max /proc/pid/comm length. This is needed for pthread_getname_np to be able to return ERANGE without modifying thread's name. Signed-off-by: Michał Mirosław <mirq-li...@rere.qmqm.pl> --- fs/proc/base.c | 11 ++- 1 file changed, 10 insertions

[PATCH 2/2] procfs: let userspace find out max /proc/pid/comm length

2017-08-31 Thread Michał Mirosław
Abuse llseek(SEEK_END) to return max /proc/pid/comm length. This is needed for pthread_getname_np to be able to return ERANGE without modifying thread's name. Signed-off-by: Michał Mirosław --- fs/proc/base.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/fs

[PATCH 1/2] procfs: signal /proc/pid/comm write truncation

2017-08-31 Thread Michał Mirosław
Keeps truncation working, but also signals to writing process when that happens. Fixes: 830e0fc967a7 ("fs, proc: truncate /proc/pid/comm writes to first TASK_COMM_LEN bytes") Signed-off-by: Michał Mirosław <mirq-li...@rere.qmqm.pl> --- fs/proc/base.c | 11 ++- 1

[PATCH 1/2] procfs: signal /proc/pid/comm write truncation

2017-08-31 Thread Michał Mirosław
Keeps truncation working, but also signals to writing process when that happens. Fixes: 830e0fc967a7 ("fs, proc: truncate /proc/pid/comm writes to first TASK_COMM_LEN bytes") Signed-off-by: Michał Mirosław --- fs/proc/base.c | 11 ++- 1 file changed, 10 insertions(+),

[PATCH 0/2] procfs: /proc/pid/comm fixes

2017-08-31 Thread Michał Mirosław
These two patches are preparation for extending TASK_COMM_LEN above current 16-byte limit. Michał Mirosław (2): procfs: signal /proc/pid/comm write truncation procfs: let userspace find out max /proc/pid/comm length fs/proc/base.c | 22 -- 1 file changed, 20 insertions

[PATCH 0/2] procfs: /proc/pid/comm fixes

2017-08-31 Thread Michał Mirosław
These two patches are preparation for extending TASK_COMM_LEN above current 16-byte limit. Michał Mirosław (2): procfs: signal /proc/pid/comm write truncation procfs: let userspace find out max /proc/pid/comm length fs/proc/base.c | 22 -- 1 file changed, 20 insertions

[PATCH] prctl: prepare for bigger TASK_COMM_LEN

2017-08-31 Thread Michał Mirosław
Linux prctl(PR_SET/GET_NAME) is documented and assumed to use 16-byte fixed-size buffers for thread name. There is /proc/[pid]/comm interface that has no such limit. This is one step to removing TASK_COMM_LEN 16-byte limit. Signed-off-by: Michał Mirosław <mirq-li...@rere.qmqm.pl> ---

[PATCH] prctl: prepare for bigger TASK_COMM_LEN

2017-08-31 Thread Michał Mirosław
Linux prctl(PR_SET/GET_NAME) is documented and assumed to use 16-byte fixed-size buffers for thread name. There is /proc/[pid]/comm interface that has no such limit. This is one step to removing TASK_COMM_LEN 16-byte limit. Signed-off-by: Michał Mirosław --- kernel/sys.c | 11 --- 1

Re: [PATCH RESEND v2 1/2] regulator: include 'enabled' status in debugfs/regulator_summary

2017-06-19 Thread Michał Mirosław
On Mon, Jun 19, 2017 at 05:47:33PM +0100, Mark Brown wrote: > On Mon, Jun 19, 2017 at 06:41:34PM +0200, Michał Mirosław wrote: > > On Mon, Jun 19, 2017 at 11:17:41AM +0100, Mark Brown wrote: > > > On Sat, Jun 17, 2017 at 11:30:12PM +0200, Michał Mirosław wrote: > > > >

Re: [PATCH RESEND v2 1/2] regulator: include 'enabled' status in debugfs/regulator_summary

2017-06-19 Thread Michał Mirosław
On Mon, Jun 19, 2017 at 05:47:33PM +0100, Mark Brown wrote: > On Mon, Jun 19, 2017 at 06:41:34PM +0200, Michał Mirosław wrote: > > On Mon, Jun 19, 2017 at 11:17:41AM +0100, Mark Brown wrote: > > > On Sat, Jun 17, 2017 at 11:30:12PM +0200, Michał Mirosław wrote: > > > >

Re: [PATCH RESEND v2 1/2] regulator: include 'enabled' status in debugfs/regulator_summary

2017-06-19 Thread Michał Mirosław
On Mon, Jun 19, 2017 at 11:17:41AM +0100, Mark Brown wrote: > On Sat, Jun 17, 2017 at 11:30:12PM +0200, Michał Mirosław wrote: > > Extend regulator's info line with enabled/disabled status. > Why is the use count not enough information here? Regulators can be enabled without any us

Re: [PATCH RESEND v2 1/2] regulator: include 'enabled' status in debugfs/regulator_summary

2017-06-19 Thread Michał Mirosław
On Mon, Jun 19, 2017 at 11:17:41AM +0100, Mark Brown wrote: > On Sat, Jun 17, 2017 at 11:30:12PM +0200, Michał Mirosław wrote: > > Extend regulator's info line with enabled/disabled status. > Why is the use count not enough information here? Regulators can be enabled without any us

[PATCH RESEND v2 1/2] regulator: include 'enabled' status in debugfs/regulator_summary

2017-06-17 Thread Michał Mirosław
Extend regulator's info line with enabled/disabled status. Signed-off-by: Michał Mirosław <mirq-li...@rere.qmqm.pl> --- v2: - include commit message drivers/regulator/core.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/core.c b/d

[PATCH RESEND v2 2/2] regulator: use consumer->supply_name in debugfs/regulator_summary

2017-06-17 Thread Michał Mirosław
0mV 0mV Signed-off-by: Michał Mirosław <mirq-li...@rere.qmqm.pl> --- v2: - extend commit message drivers/regulator/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index ba4d121ae07f..a9bfabd132cf

[PATCH RESEND v2 1/2] regulator: include 'enabled' status in debugfs/regulator_summary

2017-06-17 Thread Michał Mirosław
Extend regulator's info line with enabled/disabled status. Signed-off-by: Michał Mirosław --- v2: - include commit message drivers/regulator/core.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index

[PATCH RESEND v2 2/2] regulator: use consumer->supply_name in debugfs/regulator_summary

2017-06-17 Thread Michał Mirosław
0mV 0mV Signed-off-by: Michał Mirosław --- v2: - extend commit message drivers/regulator/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index ba4d121ae07f..a9bfabd132cf 100644 --- a/drivers/regulator

[PATCH v2] regulator: tps65910: wire up sleep control configuration

2017-06-14 Thread Michał Mirosław
This enables configuring the PMIC's sleep mode via device-tree. A pointer indirection to sleep mode data is removed, as it simplifies the implementation slightly. In current kernel tree, platform data structure is not used outside MFD cell drivers. Signed-off-by: Michał Mirosław <mirq

[PATCH v2] regulator: tps65910: wire up sleep control configuration

2017-06-14 Thread Michał Mirosław
This enables configuring the PMIC's sleep mode via device-tree. A pointer indirection to sleep mode data is removed, as it simplifies the implementation slightly. In current kernel tree, platform data structure is not used outside MFD cell drivers. Signed-off-by: Michał Mirosław --- v2

Re: [PATCH] regulator: tps65910: wire up sleep control configuration

2017-06-14 Thread Michał Mirosław
On Wed, Jun 14, 2017 at 06:15:18PM +0100, Mark Brown wrote: > On Wed, Jun 14, 2017 at 05:13:29PM +0200, Michał Mirosław wrote: > > On Wed, Jun 14, 2017 at 03:42:08PM +0100, Mark Brown wrote: > > > On Wed, Jun 14, 2017 at 02:25:13PM +0200, Michał Mirosław wrote:

Re: [PATCH] regulator: tps65910: wire up sleep control configuration

2017-06-14 Thread Michał Mirosław
On Wed, Jun 14, 2017 at 06:15:18PM +0100, Mark Brown wrote: > On Wed, Jun 14, 2017 at 05:13:29PM +0200, Michał Mirosław wrote: > > On Wed, Jun 14, 2017 at 03:42:08PM +0100, Mark Brown wrote: > > > On Wed, Jun 14, 2017 at 02:25:13PM +0200, Michał Mirosław wrote:

Re: [PATCH] regulator: tps65910: wire up sleep control configuration

2017-06-14 Thread Michał Mirosław
On Wed, Jun 14, 2017 at 03:42:08PM +0100, Mark Brown wrote: > On Wed, Jun 14, 2017 at 02:25:13PM +0200, Michał Mirosław wrote: > > References: 201cf052810d20814a77ca0e0045a2c1a3508a1f > I have no idea what you mean by this, sorry. This is a commit id which introduced the feat

<    1   2   3   4   >