[PATCH 1/2] ASoC: da7219: Reset codec gracefully, if still active

2016-09-26 Thread Adam Thomson
Currently the reset code in i2c_probe only resets the AAD part of the device and not the entire codec. This patch updates the driver to resolve this and ensures that if the codec is still active from a previous boot then the audio paths are powered down prior to reset. Signed-off-by: Adam Thomson

[PATCH 0/2] ASoC: da7219: Codec soft reset and AAD improvements

2016-09-26 Thread Adam Thomson
under the following commits: ASoC: da7219: software reset codec at probe ASoC: da7219: Support HP detect procedure when MCLK not present Adam Thomson (2): ASoC: da7219: Reset codec gracefully, if still active ASoC: da7219: Disable AAD if codec is not a wake-up source include/sound/da7219.h

[PATCH 2/2] ASoC: da7219: Disable AAD if codec is not a wake-up source

2016-09-26 Thread Adam Thomson
uring system suspend aren't captured. This patch updates the driver to disable AAD during suspend, if we're not a wake-up source, and then re-enables this on resume. Signed-off-by: Adam Thomson --- include/sound/da7219.h| 2 ++ sound/soc/codecs/da

[PATCH] ASoC: da7219: Make more efficient use of MCLK within driver

2016-07-29 Thread Adam Thomson
moving between the STANDBY and PREPARE bias level, and when a 3-pole jack is inserted and HP detection is required, thus saving power at all other times. Signed-off-by: Adam Thomson --- sound/soc/codecs/da7219-aad.c | 18 +- sound/soc/codecs/da7219.c | 18 +++--- 2

[PATCH 2/4] ASoC: da7213: Improve driver efficiency with regards to MCLK usage

2016-08-04 Thread Adam Thomson
Currently MCLK remains enabled during bias STANDBY state, and this is not necessary. This patch updates the code to handle enabling and disabling of MCLK, if provided, when moving between STANDBY and PREPARE states, therefore saving power when no active streams present. Signed-off-by: Adam

RE: [alsa-devel] [PATCH 3/4] ASoC: da7213: Refactor sysclk(), pll() functions to improve handling

2016-08-08 Thread Adam Thomson
On 08 August 2016 08:43, Peter Meerwald-Stadler wrote: > > Currently the handling of the PLL in the driver is a little clunky, > > and not ideal for all modes. This patch updates the code to make it > > cleaner and more sensible for the various PLL states. > > > > Key items of note are: > > - MCL

[PATCH 0/2] ASoC: da7218: Small clocking related updates for driver

2016-08-08 Thread Adam Thomson
This patch set contains two updates relating to clocking. The first removes the 32KHz PLL feature as this is no longer supported, and the second provides MCLK effciency improvements to avoid unnecessary MCLK enabling. Changes are based on v4.8-rc1 Linux kernel. Adam Thomson (2): ASoC: da7218

[PATCH 2/2] ASoC: da7218: Improve driver efficiency with regards to MCLK usage

2016-08-08 Thread Adam Thomson
Currently MCLK remains enabled during bias STANDBY state, and this is not necessary. This patch updates the code to handle enabling and disabling of MCLK, if provided, when moving between STANDBY and PREPARE states, therefore saving power when no active streams present. Signed-off-by: Adam

[PATCH 1/2] ASoC: da7218: Remove 32KHz PLL mode from driver

2016-08-08 Thread Adam Thomson
Functionality has been removed in latest silicon variants. This patch removes the feature from the driver to align. Signed-off-by: Adam Thomson --- sound/soc/codecs/da7218.c | 12 +++- sound/soc/codecs/da7218.h | 2 -- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a

[RFC PATCH 5/7] power: supply: Add type for USB PD PPS chargers

2017-11-01 Thread Adam Thomson
This adds a type to represent USB PPS chargers as defined in the USB Power Delivery Specification Revision 3.0 V1.1 Signed-off-by: Adam Thomson --- drivers/power/supply/power_supply_sysfs.c | 2 +- include/linux/power_supply.h | 1 + 2 files changed, 2 insertions(+), 1 deletion

[RFC PATCH 6/7] typec: tcpm: Represent source supply through power_supply class

2017-11-01 Thread Adam Thomson
pply class' Signed-off-by: Adam Thomson --- drivers/usb/typec/Kconfig | 1 + drivers/usb/typec/fusb302/Kconfig | 2 +- drivers/usb/typec/fusb302/fusb302.c | 63 +- drivers/usb/typec/tcpm.c| 225 +++- 4 files changed, 228 in

[RFC PATCH 4/7] typec: tcpm: Add core support for sink side PPS

2017-11-01 Thread Adam Thomson
This commit adds code to handle requesting of PPS APDOs. Switching between standard PDOs and APDOs, and re-requesting an APDO to modify operating voltage/current will be triggered by an external call into TCPM. Signed-off-by: Adam Thomson --- drivers/usb/typec/tcpm.c | 441

[RFC PATCH 7/7] typec: tcpm: Add support for sink PPS related messages

2017-11-01 Thread Adam Thomson
ndled. Signed-off-by: Adam Thomson --- drivers/usb/typec/tcpm.c | 152 --- 1 file changed, 143 insertions(+), 9 deletions(-) diff --git a/drivers/usb/typec/tcpm.c b/drivers/usb/typec/tcpm.c index bf3c93a..d12304e 100644 --- a/drivers/usb/typec/tcpm.c

[RFC PATCH 1/7] typec: tcpm: Add PD Rev 3.0 definitions to PD header

2017-11-01 Thread Adam Thomson
This commit adds definitions for PD Rev 3.0 messages, including APDO PPS and extended message support for TCPM. Signed-off-by: Adam Thomson --- include/linux/usb/pd.h | 162 + 1 file changed, 151 insertions(+), 11 deletions(-) diff --git a

[RFC PATCH 2/7] typec: tcpm: Add ADO header for Alert message handling

2017-11-01 Thread Adam Thomson
This commit adds a header providing definitions for handling Alert messages. Currently the header only focuses on handling incoming alerts. Signed-off-by: Adam Thomson --- include/linux/usb/pd_ado.h | 49 ++ 1 file changed, 49 insertions(+) create

[RFC PATCH 0/7] typec: tcpm: Add sink side support for PPS

2017-11-01 Thread Adam Thomson
ed to ensure re-requests occur regularly to ensure PPS remains and the source does not hard reset. So with all of that covered, please feel free to rip this apart as you see fit. Note: Code changes are based on linux-next tag 'next-20171017' to pick up the move out of staging of TCPM rela

[RFC PATCH 3/7] typec: tcpm: Add SDB header for Status message handling

2017-11-01 Thread Adam Thomson
This commit adds a header providing definitions for handling Status messages. Currently the header only focuses on handling incoming Status messages. Signed-off-by: Adam Thomson --- include/linux/usb/pd_ext_sdb.h | 40 1 file changed, 40 insertions

RE: [RFC PATCH 2/7] typec: tcpm: Add ADO header for Alert message handling

2017-11-02 Thread Adam Thomson
On 01 November 2017 17:20, Greg Kroah-Hartman wrote: > On Wed, Nov 01, 2017 at 05:03:10PM +0000, Adam Thomson wrote: > > This commit adds a header providing definitions for handling Alert > > messages. Currently the header only focuses on handling incoming > > alerts. > &

RE: [RFC PATCH 3/7] typec: tcpm: Add SDB header for Status message handling

2017-11-02 Thread Adam Thomson
On 01 November 2017 17:21, Greg Kroah-Hartman wrote: > On Wed, Nov 01, 2017 at 05:03:11PM +0000, Adam Thomson wrote: > > This commit adds a header providing definitions for handling > > Status messages. Currently the header only focuses on handling > > incoming Status message

RE: [RFC PATCH 1/7] typec: tcpm: Add PD Rev 3.0 definitions to PD header

2017-11-02 Thread Adam Thomson
On 01 November 2017 20:09, Jack Pham wrote: > Hi Adam, > > On Wed, Nov 01, 2017 at 05:03:09PM +0000, Adam Thomson wrote: > > This commit adds definitions for PD Rev 3.0 messages, including > > APDO PPS and extended message support for TCPM. > > >

RE: [RFC PATCH 2/7] typec: tcpm: Add ADO header for Alert message handling

2017-11-02 Thread Adam Thomson
On 02 November 2017 16:49, Greg Kroah-Hartman wrote: > On Thu, Nov 02, 2017 at 11:40:12AM +0000, Adam Thomson wrote: > > On 01 November 2017 17:20, Greg Kroah-Hartman wrote: > > > > > On Wed, Nov 01, 2017 at 05:03:10PM +, Adam Thomson wrote: > > > >

[RFC PATCH v2 0/7] typec: tcpm: Add sink side support for PPS

2017-11-14 Thread Adam Thomson
s for referencing correct license. NOTE: Code changes are based on linux-next tag 'next-20171114' to pick up the move out of staging of TCPM related code. Adam Thomson (7): typec: tcpm: Add PD Rev 3.0 definitions to PD header typec: tcpm: Add ADO header for Alert message handling typec

[RFC PATCH v2 2/7] typec: tcpm: Add ADO header for Alert message handling

2017-11-14 Thread Adam Thomson
This commit adds a header providing definitions for handling Alert messages. Currently the header only focuses on handling incoming alerts. Signed-off-by: Adam Thomson --- include/linux/usb/pd_ado.h | 42 ++ 1 file changed, 42 insertions(+) create mode

[RFC PATCH v2 3/7] typec: tcpm: Add SDB header for Status message handling

2017-11-14 Thread Adam Thomson
This commit adds a header providing definitions for handling Status messages. Currently the header only focuses on handling incoming Status messages. Signed-off-by: Adam Thomson --- include/linux/usb/pd_ext_sdb.h | 31 +++ 1 file changed, 31 insertions(+) create

[RFC PATCH v2 5/7] power: supply: Add type for USB PD PPS chargers

2017-11-14 Thread Adam Thomson
This adds a type to represent USB PPS chargers as defined in the USB Power Delivery Specification Revision 3.0 V1.1 Signed-off-by: Adam Thomson Reviewed-by: Sebastian Reichel --- drivers/power/supply/power_supply_sysfs.c | 2 +- include/linux/power_supply.h | 1 + 2 files changed

[RFC PATCH v2 7/7] typec: tcpm: Add support for sink PPS related messages

2017-11-14 Thread Adam Thomson
ndled. Signed-off-by: Adam Thomson --- drivers/usb/typec/tcpm.c | 152 --- 1 file changed, 143 insertions(+), 9 deletions(-) diff --git a/drivers/usb/typec/tcpm.c b/drivers/usb/typec/tcpm.c index 7c26c3d..8db49ab 100644 --- a/drivers/usb/typec/tcpm.c

[RFC PATCH v2 6/7] typec: tcpm: Represent source supply through power_supply class

2017-11-14 Thread Adam Thomson
pply class' Signed-off-by: Adam Thomson --- drivers/usb/typec/Kconfig | 1 + drivers/usb/typec/fusb302/Kconfig | 2 +- drivers/usb/typec/fusb302/fusb302.c | 63 +- drivers/usb/typec/tcpm.c| 225 +++- 4 files changed, 228 in

[RFC PATCH v2 1/7] typec: tcpm: Add PD Rev 3.0 definitions to PD header

2017-11-14 Thread Adam Thomson
This commit adds definitions for PD Rev 3.0 messages, including APDO PPS and extended message support for TCPM. Signed-off-by: Adam Thomson --- include/linux/usb/pd.h | 174 + 1 file changed, 162 insertions(+), 12 deletions(-) diff --git a

[RFC PATCH v2 4/7] typec: tcpm: Add core support for sink side PPS

2017-11-14 Thread Adam Thomson
This commit adds code to handle requesting of PPS APDOs. Switching between standard PDOs and APDOs, and re-requesting an APDO to modify operating voltage/current will be triggered by an external call into TCPM. Signed-off-by: Adam Thomson --- drivers/usb/typec/tcpm.c | 476

RE: [PATCH 1/2] ASoC: da7218: fix fix child-node lookup

2017-11-14 Thread Adam Thomson
ematurely freed. > > Fixes: 4d50934abd22 ("ASoC: da7218: Add da7218 codec driver") > Cc: stable # 4.5 > Cc: Adam Thomson > Signed-off-by: Johan Hovold Acked-by: Adam Thomson > --- > sound/soc/codecs/da7218.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion

[PATCH 1/1] ASoC: da7219: Improve error handling for regulator supplies

2015-10-05 Thread Adam Thomson
o get supplies also provides an error message. Signed-off-by: Adam Thomson --- This patch is based on changes introduced under patch: 'ASoC: codecs: Add da7219 codec driver' (Commit 6d817c0e9fd7536be76690bfdee88e8a81c16f7d, kernel/git/broonie/sound.git) sound/soc/codecs/da7219.c | 1

[PATCH 0/2] ASoC: da7213: Add DT support for codec

2015-10-05 Thread Adam Thomson
This patch set adds DT support to the codec driver, and supporting bindings documentation. Patch set is based against v4.3-rc4 Adam Thomson (2): ASoC: da7213: Add DT support to codec driver ASoC: da7213: Add bindings documentation for codec driver Documentation/devicetree/bindings/sound

[PATCH 2/2] ASoC: da7213: Add bindings documentation for codec driver

2015-10-05 Thread Adam Thomson
Signed-off-by: Adam Thomson --- Documentation/devicetree/bindings/sound/da7213.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/da7213.txt diff --git a/Documentation/devicetree/bindings/sound/da7213.txt b

[PATCH 1/2] ASoC: da7213: Add DT support to codec driver

2015-10-05 Thread Adam Thomson
This patch adds support for DT bindings in the codec driver. As part of this support, the mclk data can now be provided and used to control the mclk during codec operation. Signed-off-by: Adam Thomson --- sound/soc/codecs/da7213.c | 181 ++ sound/soc

[PATCH v6 0/6] Add support for DA9150 Fuel-Gauge

2015-10-05 Thread Adam Thomson
patch to change MFD binding doc to use relative paths. - MFD: New patch to use DEFINE_RES_IRQ_NAMED for all other IRQ resources. Changes in v2: - Moved temp callback function prototype to be part of power fuel-gauge patch, as requested by Lee Jones. Adam Thomson (6): mfd: da9150: Add sup

[PATCH v6 4/6] power: da9150: Add DT bindings documentation for Fuel-Gauge

2015-10-05 Thread Adam Thomson
Signed-off-by: Adam Thomson Acked-By: Sebastian Reichel --- Changes in v6: - Rebase to v4.3-rc4 Changes in v5: - Rebase to v4.2 Changes in v4: - Update compatible string of fuel-gauge to "dlg,da9150-fuel-gauge". - Changed example node name to "fuel-gauge". Changes in

[PATCH v6 5/6] mfd: da9150: Use relative paths in DT bindings document

2015-10-05 Thread Adam Thomson
When referencing other DT bindings documentation, use relative path rather than absolute. Signed-off-by: Adam Thomson Suggested-by: Lee Jones Acked-by: Lee Jones --- Changes in v6: - Rebase to v4.3-rc4 Changes in v5: - Rebase to v4.2 Changes in v4: - N/A Changes in v3: - Initial

[PATCH v6 1/6] mfd: da9150: Add support for Fuel-Gauge

2015-10-05 Thread Adam Thomson
Signed-off-by: Adam Thomson Acked-by: Lee Jones --- Changes in v6: - Rebase to v4.3-rc4 Changes in v5: - Rebase to v4.2 Changes in v4: - Update compatible string of fuel-gauge to "dlg, da9150-fuel-gauge". Also made similar change to driver name to keep things consistent. Cha

[PATCH v6 3/6] power: Add support for DA9150 Fuel-Gauge

2015-10-05 Thread Adam Thomson
This adds power supply driver support for the Fuel-Gauge part of the DA9150 combined Charger and Fuel-Gauge device. Signed-off-by: Adam Thomson Acked-By: Sebastian Reichel --- Changes in v6: - Rebase to v4.3-rc4 Changes in v5: - Rebase to v4.2 Changes in v4: - Update compatible string of

[PATCH v6 2/6] mfd: da9150: Update DT bindings for Fuel-Gauge support

2015-10-05 Thread Adam Thomson
Signed-off-by: Adam Thomson Acked-by: Lee Jones --- Changes in v6: - Rebase to v4.3-rc4 Changes in v5: - Rebase to v4.2 Changes in v4: - Update compatible string of fuel-gauge to "da9150-fuel-gauge". - Node name tidy up, relating to maintainer comments on fuel-gauge DT b

[PATCH v6 6/6] mfd: da9150: Use DEFINE_RES_IRQ_NAMED() help macro for IRQ resource

2015-10-05 Thread Adam Thomson
Signed-off-by: Adam Thomson Suggested-by: Lee Jones Acked-by: Lee Jones --- Changes in v6: - Rebase to v4.3-rc4 Changes in v5: - Rebase to v4.2 Changes in v4: - N/A Changes in v3: - Initial version. Changes in v2: - N/A drivers/mfd/da9150-core.c | 35

[PATCH 0/2] ASoC: da7219: Improve mclk error checking, use of_match_ptr

2015-10-07 Thread Adam Thomson
: 'ASoC: da7219: Improve error handling for regulator supplies' (Commit 4e929134eb8271abc9c52c371e056debfea6898b , kernel/git/broonie/sound.git) Adam Thomson (2): ASoC: da7219: Use of_match_ptr() when assigning match table ASoC: da7219: Improve error checking of mclk enable/disable

[PATCH 2/2] ASoC: da7219: Improve error checking of mclk enable/disable

2015-10-07 Thread Adam Thomson
Should only try to enable/disable the provided mclk, during bias level changes, if it's not NULL. Also return value of clk_prepare_enable() should be checked and dealt with accordingly. Signed-off-by: Adam Thomson --- sound/soc/codecs/da7219.c | 13 +++-- 1 file changed, 11 inser

[PATCH 1/2] ASoC: da7219: Use of_match_ptr() when assigning match table

2015-10-07 Thread Adam Thomson
Use of_match_ptr() to handle non-DT kernel scenario where match table should be NULL. Signed-off-by: Adam Thomson --- sound/soc/codecs/da7219.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index c86a833..adcc079 100644

[PATCH v2 0/3] ASoC: da7213: Add DT support for codec

2015-10-07 Thread Adam Thomson
data provided (not NULL). - Add error checking for clk_prepare_enable() usage. Adam Thomson (3): ASoC: da7213: Add DT support to codec driver ASoC: da7213: Add support to handle mclk data provided to driver ASoC: da7213: Add bindings documentation for codec driver Documentation/devicetree

[PATCH v2 3/3] ASoC: da7213: Add bindings documentation for codec driver

2015-10-07 Thread Adam Thomson
Signed-off-by: Adam Thomson --- Documentation/devicetree/bindings/sound/da7213.txt | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/da7213.txt diff --git a/Documentation/devicetree/bindings/sound/da7213.txt b

[PATCH v2 2/3] ASoC: da7213: Add support to handle mclk data provided to driver

2015-10-07 Thread Adam Thomson
Driver now can make use of mclk data, if provided, to set, enable and disable the clock source. As part of this, the choice to enable clock squaring is dealt with as part of dai_sysclk() call rather than as platform data. Signed-off-by: Adam Thomson --- include/sound/da7213.h| 3 --- sound

[PATCH v2 1/3] ASoC: da7213: Add DT support to codec driver

2015-10-07 Thread Adam Thomson
This patch adds support for DT bindings in the codec driver. As part of this support, the mclk data can now be provided and used to control the mclk during codec operation. Signed-off-by: Adam Thomson --- sound/soc/codecs/da7213.c | 123 -- 1 file

[PATCH v7 5/6] mfd: da9150: Use relative paths in DT bindings document

2015-10-07 Thread Adam Thomson
When referencing other DT bindings documentation, use relative path rather than absolute. Signed-off-by: Adam Thomson Suggested-by: Lee Jones Acked-by: Lee Jones --- Changes in v6: - Rebase to v4.3-rc4 Changes in v5: - Rebase to v4.2 Changes in v3: - Initial version. Documentation

[PATCH v7 2/6] mfd: da9150: Update DT bindings for Fuel-Gauge support

2015-10-07 Thread Adam Thomson
Signed-off-by: Adam Thomson Acked-by: Lee Jones --- Changes in v6: - Rebase to v4.3-rc4 Changes in v5: - Rebase to v4.2 Changes in v4: - Update compatible string of fuel-gauge to "da9150-fuel-gauge". - Node name tidy up, relating to maintainer comments on fuel-gauge DT b

[PATCH v7 0/6] Add support for DA9150 Fuel-Gauge

2015-10-07 Thread Adam Thomson
wer fuel-gauge patch, as requested by Lee Jones. Adam Thomson (6): mfd: da9150: Add support for Fuel-Gauge mfd: da9150: Update DT bindings for Fuel-Gauge support power: Add support for DA9150 Fuel-Gauge power: da9150: Add DT bindings documentation for Fuel-Gauge mfd: da9150: Use relative

[PATCH v7 3/6] power: Add support for DA9150 Fuel-Gauge

2015-10-07 Thread Adam Thomson
This adds power supply driver support for the Fuel-Gauge part of the DA9150 combined Charger and Fuel-Gauge device. Signed-off-by: Adam Thomson Acked-by: Sebastian Reichel --- Changes in v7: - Fix return code handling for platform_get_irq_byname() call. Changes in v6: - Rebase to v4.3-rc4

[PATCH v7 1/6] mfd: da9150: Add support for Fuel-Gauge

2015-10-07 Thread Adam Thomson
Signed-off-by: Adam Thomson Acked-by: Lee Jones --- Changes in v6: - Rebase to v4.3-rc4 Changes in v5: - Rebase to v4.2 Changes in v4: - Update compatible string of fuel-gauge to "dlg, da9150-fuel-gauge". Also made similar change to driver name to keep things consistent. Cha

[PATCH v7 4/6] power: da9150: Add DT bindings documentation for Fuel-Gauge

2015-10-07 Thread Adam Thomson
Signed-off-by: Adam Thomson Acked-by: Sebastian Reichel --- Changes in v6: - Rebase to v4.3-rc4 Changes in v5: - Rebase to v4.2 Changes in v4: - Update compatible string of fuel-gauge to "dlg,da9150-fuel-gauge". - Changed example node name to "fuel-gauge". .../devic

[PATCH v7 6/6] mfd: da9150: Use DEFINE_RES_IRQ_NAMED() help macro for IRQ resource

2015-10-07 Thread Adam Thomson
Signed-off-by: Adam Thomson Suggested-by: Lee Jones Acked-by: Lee Jones --- Changes in v6: - Rebase to v4.3-rc4 Changes in v5: - Rebase to v4.2 Changes in v3: - Initial version. drivers/mfd/da9150-core.c | 35 +-- 1 file changed, 5 insertions(+), 30

[PATCH] ASoC: fsl_ssi: Fix checking of dai format for AC97 mode

2015-08-31 Thread Adam Thomson
rmine AC97 or not. Signed-off-by: Adam Thomson --- sound/soc/fsl/fsl_ssi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index c0b940e..ee47041 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -

[PATCH] ASoC: da7219: Add delays to capture path to remove DC offset noise

2018-08-09 Thread Adam Thomson
problem by adding delays post Mic PGA and post Mixin PGA. The post Mic PGA delay is determined based on Mic Bias voltage, and is only applied the first time after a headset jack is inserted. Signed-off-by: Adam Thomson --- sound/soc/codecs/da7219-aad.c | 5 + sound/soc/codecs/da7219.c

RE: [PATCH v2] ASoC: da7219: Allow pdata to specify a VDDIO

2018-07-23 Thread Adam Thomson
On 23 July 2018 00:28, Daniel Kurtz wrote: > Some systems do not have software controllable regulators driving the > DA7219's supplies, nor can they use device tree to create "always-on fixed > regulators" to easily pretend like they do. > > On these systems the call to devm_regulator_bulk_get()

RE: [PATCH v2] power: supply: da9150-fg: remove VLA usage

2018-03-12 Thread Adam Thomson
rective to remove all VLAs from > the kernel: https://lkml.org/lkml/2018/3/7/621 > > [1] https://marc.info/?l=kernel-hardening&m=152059600524753&w=2 > > Signed-off-by: Gustavo A. R. Silva Acked-by: Adam Thomson > --- > Changes in v2: > - Use DA9150_QIF_LONG_SIZ

RE: [PATCH v4 0/7] typec: tcpm: Add sink side support for PPS

2018-03-12 Thread Adam Thomson
On 09 March 2018 17:34, Greg Kroah-Hartman wrote: > On Tue, Jan 02, 2018 at 03:50:48PM +0000, Adam Thomson wrote: > > This patch set adds sink side support for the PPS feature introduced in the > > USB PD 3.0 specification. > > > > The source PPS supply is represe

RE: [PATCH v7 2/6] Documentation: power: Initial effort to document power_supply ABI

2018-03-26 Thread Adam Thomson
On 26 March 2018 10:57, Greg Kroah-Hartman wrote: > On Fri, Mar 23, 2018 at 10:12:21AM +0000, Adam Thomson wrote: > > This commit adds generic ABI information regarding power_supply > > properties. This is an initial attempt to try and align the usage > > of these propertie

[PATCH v5 5/5] typec: tcpm: Add support for sink PPS related messages

2018-03-20 Thread Adam Thomson
ndled. Signed-off-by: Adam Thomson Acked-by: Heikki Krogerus --- drivers/usb/typec/tcpm.c | 152 --- 1 file changed, 143 insertions(+), 9 deletions(-) diff --git a/drivers/usb/typec/tcpm.c b/drivers/usb/typec/tcpm.c index 18ab36f..148db99 100644 --- a/driver

[PATCH v5 2/5] Documentation: power: Initial effort to document power_supply ABI

2018-03-20 Thread Adam Thomson
This commit adds generic ABI information regarding power_supply properties. This is an initial attempt to try and align the usage of these properties between drivers. As part of this commit, common Battery and USB related properties have been listed. Signed-off-by: Adam Thomson

[PATCH v5 4/5] typec: tcpm: Represent source supply through power_supply

2018-03-20 Thread Adam Thomson
pply class' Signed-off-by: Adam Thomson --- drivers/usb/typec/Kconfig | 1 + drivers/usb/typec/fusb302/Kconfig | 2 +- drivers/usb/typec/fusb302/fusb302.c | 63 +- drivers/usb/typec/tcpm.c| 242 +++- 4 files changed, 245 in

[PATCH v5 0/5] typec: tcpm: Add sink side support for PPS

2018-03-20 Thread Adam Thomson
nected types (e.g. USB), as discussed with Heikki. Changes in v2: - Use USB_PD and usb_pd prefixes for macros and inline functions in headers. - Negotiate spec revision of PD headers during initial contract agreement. - New headers now use SPDX tags for referencing correct license. NOTE: Cod

[PATCH v5 1/5] typec: tcpm: Add core support for sink side PPS

2018-03-20 Thread Adam Thomson
This commit adds code to handle requesting of PPS APDOs. Switching between standard PDOs and APDOs, and re-requesting an APDO to modify operating voltage/current will be triggered by an external call into TCPM. Signed-off-by: Adam Thomson Acked-by: Heikki Krogerus --- drivers/usb/typec/tcpm.c

[PATCH v5 3/5] power: supply: Add 'usb_type' property and supporting code

2018-03-20 Thread Adam Thomson
e 'usb_type' enum contains all of the USB variant types that exist for the 'type' enum at this time, and in addition has SDP and PPS types. The mirroring is intentional so as to not impact existing usage of the 'type' property. Signed-off-by: Adam Thomson Acked-by: Heikki

RE: [PATCH v5 5/5] typec: tcpm: Add support for sink PPS related messages

2018-03-22 Thread Adam Thomson
On 22 March 2018 03:53, Guenter Roeck wrote: > > +static void tcpm_pd_ext_msg_request(struct tcpm_port *port, > > + const struct pd_message *msg) > > +{ > > + enum pd_ext_msg_type type = pd_header_type_le(msg->header); > > + unsigned int data_size = pd_ext_header_

RE: [PATCH v5 1/5] typec: tcpm: Add core support for sink side PPS

2018-03-22 Thread Adam Thomson
On 22 March 2018 04:03, Guenter Roeck wrote: > > static enum pdo_err tcpm_caps_err(struct tcpm_port *port, const u32 *pdo, > > @@ -1308,6 +1347,26 @@ static enum pdo_err tcpm_caps_err(struct tcpm_port > *port, const u32 *pdo, > > pdo_min_voltage(pdo[i - 1]))

RE: [PATCH v5 3/5] power: supply: Add 'usb_type' property and supporting code

2018-03-22 Thread Adam Thomson
On 22 March 2018 04:08, Guenter Roeck wrote: > > +static ssize_t power_supply_show_usb_type(struct device *dev, > > + enum power_supply_usb_type > *usb_types, > > + ssize_t num_usb_types, > > +

RE: [PATCH v5 4/5] typec: tcpm: Represent source supply through power_supply

2018-03-22 Thread Adam Thomson
On 22 March 2018 04:09, Guenter Roeck wrote: > > +static int tcpm_psy_set_prop(struct power_supply *psy, > > +enum power_supply_property psp, > > +const union power_supply_propval *val) > > +{ > > + struct tcpm_port *port = power_supply_get_drvdata

[PATCH v6 6/6] typec: tcpm: Add support for sink PPS related messages

2018-03-22 Thread Adam Thomson
ndled. Signed-off-by: Adam Thomson Acked-by: Heikki Krogerus --- drivers/usb/typec/tcpm.c | 143 --- 1 file changed, 134 insertions(+), 9 deletions(-) diff --git a/drivers/usb/typec/tcpm.c b/drivers/usb/typec/tcpm.c index c859cba..fffe97d 100644 --- a/driver

[PATCH v6 4/6] power: supply: Add 'usb_type' property and supporting code

2018-03-22 Thread Adam Thomson
e 'usb_type' enum contains all of the USB variant types that exist for the 'type' enum at this time, and in addition has SDP and PPS types. The mirroring is intentional so as to not impact existing usage of the 'type' property. Signed-off-by: Adam Thomson

[PATCH v6 0/6] typec: tcpm: Add sink side support for PPS

2018-03-22 Thread Adam Thomson
b_pd prefixes for macros and inline functions in headers. - Negotiate spec revision of PD headers during initial contract agreement. - New headers now use SPDX tags for referencing correct license. NOTE: Code changes based on usb-next (027bd6cafd9a1e3a109b5e5682c85ac84e804a8d) Adam Thomson (6)

[PATCH v6 5/6] typec: tcpm: Represent source supply through power_supply

2018-03-22 Thread Adam Thomson
pply class' Signed-off-by: Adam Thomson --- drivers/usb/typec/Kconfig | 1 + drivers/usb/typec/fusb302/Kconfig | 2 +- drivers/usb/typec/fusb302/fusb302.c | 63 +- drivers/usb/typec/tcpm.c| 242 +++- 4 files changed, 245 in

[PATCH v6 3/6] power: supply: Add error checking of psy desc during registration

2018-03-22 Thread Adam Thomson
it updates the registration code to add some basic checks on the desc pointer validity, name, and presence of properties. Signed-off-by: Adam Thomson --- drivers/power/supply/power_supply_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/power/supply/power_supply_core.c b/dri

[PATCH v6 1/6] typec: tcpm: Add core support for sink side PPS

2018-03-22 Thread Adam Thomson
This commit adds code to handle requesting of PPS APDOs. Switching between standard PDOs and APDOs, and re-requesting an APDO to modify operating voltage/current will be triggered by an external call into TCPM. Signed-off-by: Adam Thomson Acked-by: Heikki Krogerus --- drivers/usb/typec/tcpm.c

[PATCH v6 2/6] Documentation: power: Initial effort to document power_supply ABI

2018-03-22 Thread Adam Thomson
This commit adds generic ABI information regarding power_supply properties. This is an initial attempt to try and align the usage of these properties between drivers. As part of this commit, common Battery and USB related properties have been listed. Signed-off-by: Adam Thomson

[PATCH v7 3/6] power: supply: Add error checking of psy desc during registration

2018-03-23 Thread Adam Thomson
it updates the registration code to add some basic checks on the desc pointer validity, name, and presence of properties. Signed-off-by: Adam Thomson --- drivers/power/supply/power_supply_core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/power/supply/power_supply_core.c b/dri

[PATCH v7 4/6] power: supply: Add 'usb_type' property and supporting code

2018-03-23 Thread Adam Thomson
e 'usb_type' enum contains all of the USB variant types that exist for the 'type' enum at this time, and in addition has SDP and PPS types. The mirroring is intentional so as to not impact existing usage of the 'type' property. Signed-off-by: Adam Thomson

[PATCH v7 1/6] typec: tcpm: Add core support for sink side PPS

2018-03-23 Thread Adam Thomson
This commit adds code to handle requesting of PPS APDOs. Switching between standard PDOs and APDOs, and re-requesting an APDO to modify operating voltage/current will be triggered by an external call into TCPM. Signed-off-by: Adam Thomson Acked-by: Heikki Krogerus --- drivers/usb/typec/tcpm.c

[PATCH v7 5/6] typec: tcpm: Represent source supply through power_supply

2018-03-23 Thread Adam Thomson
pply class' Signed-off-by: Adam Thomson --- drivers/usb/typec/Kconfig | 1 + drivers/usb/typec/fusb302/Kconfig | 2 +- drivers/usb/typec/fusb302/fusb302.c | 63 +- drivers/usb/typec/tcpm.c| 245 +++- 4 files changed, 248 in

[PATCH v7 6/6] typec: tcpm: Add support for sink PPS related messages

2018-03-23 Thread Adam Thomson
ndled. Signed-off-by: Adam Thomson Acked-by: Heikki Krogerus --- drivers/usb/typec/tcpm.c | 143 --- 1 file changed, 134 insertions(+), 9 deletions(-) diff --git a/drivers/usb/typec/tcpm.c b/drivers/usb/typec/tcpm.c index 57a7d1a..7025a16 100644 --- a/driver

[PATCH v7 2/6] Documentation: power: Initial effort to document power_supply ABI

2018-03-23 Thread Adam Thomson
This commit adds generic ABI information regarding power_supply properties. This is an initial attempt to try and align the usage of these properties between drivers. As part of this commit, common Battery and USB related properties have been listed. Signed-off-by: Adam Thomson

[PATCH v7 0/6] typec: tcpm: Add sink side support for PPS

2018-03-23 Thread Adam Thomson
as discussed with Heikki. Changes in v2: - Use USB_PD and usb_pd prefixes for macros and inline functions in headers. - Negotiate spec revision of PD headers during initial contract agreement. - New headers now use SPDX tags for referencing correct license. NOTE: Code changes based on usb

RE: [PATCH] power: supply: da9150-fg: remove VLA usage

2018-03-09 Thread Adam Thomson
On 09 March 2018 04:58, Gustavo A. R. Silva wrote: > In preparation to enabling -Wvla, remove VLA usage and replace it > with fixed-length arrays. > > It seems that the length of array 'buf' will not exceed > DA9150_QIF_SHORT_SIZE bytes (2 bytes). But a fixed length > of DA9150_QIF_BYTE_SIZE byte

[PATCH] ASoC: da7219: Add common clock usage for providing DAI clks

2018-03-09 Thread Adam Thomson
is used. Signed-off-by: Adam Thomson --- Documentation/devicetree/bindings/sound/da7219.txt | 6 + include/sound/da7219.h | 2 + sound/soc/codecs/da7219.c | 129 +++-- sound/soc/codecs/da7219.h

RE: linux-next: build failure after merge of the sound-asoc tree

2018-03-13 Thread Adam Thomson
On 13 March 2018 06:09, Stephen Rothwell wrote: > Hi all, > > After merging the sound-asoc tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > sound/soc/codecs/da7219.o: In function `.da7219_remove': > da7219.c:(.text+0xcbc): undefined reference to `.clkdev_drop' > > C

[PATCH] ASoC: da7219: clkdev_drop usage depends on CONFIG_COMMON_CLK

2018-03-13 Thread Adam Thomson
defined for those platforms, in headers and source but the functions are not linked in. This patch resolves this issue, so clkdev_drop is only used if CONFIG_COMMON_CLK is defined. Signed-off-by: Adam Thomson --- sound/soc/codecs/da7219.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a

RE: [PATCH 1/2] power: supply: add input voltage limit property.

2018-11-21 Thread Adam Thomson
On 21 November 2018 15:35, Enric Balletbo i Serra wrote: > We have a problem with USBPD chargers which under certain conditions > can result in system overheating if the voltage provided by the USBPD > port is too high. While the preferred means to control this would be > through devicetree or

RE: [PATCH v2 1/2] power: supply: add input voltage limit property.

2018-11-22 Thread Adam Thomson
evel > knowledge or user input. > > Signed-off-by: Enric Balletbo i Serra > Reviewed-by: Guenter Roeck Acked-by: Adam Thomson > --- > > Changes in v2: > - Document the new property in ABI/testing/sysfs-class-power. > - Add the Reviewed-by Guenter Roeck ta

RE: [PATCH 2/2] ASoC: DA7219: Implement error check on reg read and write

2018-12-04 Thread Adam Thomson
On 04 December 2018 18:36, Akshu Agrawal wrote: > Failed i2c transaction can lead to failure in reg read or write. > Need to have error check for each read write operation. > I'm not really clear what this gains you. If I2C is broken this won't solve anything, and you have far deeper problems. Se

RE: [PATCH 2/2] ASoC: DA7219: Implement error check on reg read and write

2018-12-05 Thread Adam Thomson
On 05 December 2018 04:27, Akshu Agrawal wrote: > On 12/5/2018 2:46 AM, Adam Thomson wrote: > > On 04 December 2018 18:36, Akshu Agrawal wrote: > > > >> Failed i2c transaction can lead to failure in reg read or write. > >> Need to have error check for each read

RE: [PATCH] regulator: Use of_node_name_eq for node name comparisons

2018-12-05 Thread Adam Thomson
org > Signed-off-by: Rob Herring For da9052 regulator driver: Acked-by: Adam Thomson > --- > drivers/regulator/88pm8607.c | 2 +- > drivers/regulator/da9052-regulator.c | 2 +- > drivers/regulator/max8997-regulator.c | 2 +- > drivers/regulator

RE: [PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-12 Thread Adam Thomson
On 12 December 2018 02:47, Kyle Tso wrote: > On Mon, Dec 10, 2018 at 7:36 PM Adam Thomson > wrote: > > > > On 10 December 2018 09:01, Adam Thomson wrote: > > > > > On 06 December 2018 03:02, Kyle Tso wrote: > > > > > > > Current ma

RE: [PATCH v3 1/2] power: supply: add input voltage limit property

2018-12-13 Thread Adam Thomson
operty, similar to input current limit, to > re-configure > the maximum voltage from the external supply at runtime based on system-level > knowledge or user input. > > Signed-off-by: Enric Balletbo i Serra > Reviewed-by: Guenter Roeck Acked-by: Adam Thomson > --- &g

RE: [PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-17 Thread Adam Thomson
On 17 December 2018 02:48, Kyle Tso wrote: > Current matching rules ensure that the voltage range of selected Source > Capability is entirely within the range defined in one of the Sink > Capabilities. This > is reasonable but not practical because Sink may not support wide range of > voltage whe

RE: [PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-17 Thread Adam Thomson
On 17 December 2018 12:45, Kyle Tso wrote: > On Mon, Dec 17, 2018 at 8:23 PM Adam Thomson > wrote: > > > > On 17 December 2018 02:48, Kyle Tso wrote: > > > > > Current matching rules ensure that the voltage range of selected > > > Source Capability is e

RE: [PATCH v3] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-17 Thread Adam Thomson
um operational voltage times the >maximum current defined in the selected Source PDO d. Select the Source PDO > with the highest maximum power > > Signed-off-by: Kyle Tso Acked-by: Adam Thomson > > --- > Changelog since v1: > - updated the commit message as sugges

RE: [PATCH] usb: typec: tcpm: Extend the matching rules on PPS APDO selection

2018-12-10 Thread Adam Thomson
On 06 December 2018 03:02, Kyle Tso wrote: > Current matching rules ensure that the voltage range of selected Source > Capability is entirely within the range defined in one of the Sink > Capabilities. This > is reasonable but not practical because Sink may not support wide range of > voltage whe

  1   2   3   4   5   6   >