[PATCH 1/6] dt-bindings: drm/panel: simple: Add no-hpd property

2018-10-22 Thread Douglas Anderson
the HPD isn't hooked up you can look at the timing diagram on the panel datasheet and insert a delay for the maximum amount of time that the HPD might take to come up. Let's add a property in the device tree for this concept. Signed-off-by: Douglas Anderson --- .../devicetree/bindings/display/panel

[PATCH] tty: serial: qcom_geni_serial: Don't slow all ports just for kgdb

2018-10-15 Thread Douglas Anderson
-off-by: Douglas Anderson --- drivers/tty/serial/qcom_geni_serial.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index d3b5261ee80a..9ee6ce725e43 100644 --- a/drivers/tty/serial

[PATCH] tty: serial: qcom_geni_serial: Don't slow all ports just for kgdb

2018-10-15 Thread Douglas Anderson
-off-by: Douglas Anderson --- drivers/tty/serial/qcom_geni_serial.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index d3b5261ee80a..9ee6ce725e43 100644 --- a/drivers/tty/serial

[PATCH] dt-bindings: ufs: Fix the compatible string definition

2018-10-12 Thread Douglas Anderson
licit. We'll include a nod to the existing driver and the old binding and say that we should always include the "qcom,ufshc" string in addition to the SoC compatible string. While we're at it we'll also include another example SoC known to have UFS: sdm845. Fixes: 47555a5c8a11 ("scs

[PATCH] dt-bindings: ufs: Fix the compatible string definition

2018-10-12 Thread Douglas Anderson
licit. We'll include a nod to the existing driver and the old binding and say that we should always include the "qcom,ufshc" string in addition to the SoC compatible string. While we're at it we'll also include another example SoC known to have UFS: sdm845. Fixes: 47555a5c8a11 ("scs

[PATCH] dt-bindings: phy-qcom-qmp: Fix several mistakes from prior commits

2018-10-12 Thread Douglas Anderson
more obvious which types of PHYs need clocks and resets. This was sorta implicit in the "-names" description but I found myself confused. * As per the code not all "pcie qmp phys" have resets. Specifically note that the "has_lane_rst" property in the driver is false for

[PATCH] dt-bindings: phy-qcom-qmp: Fix several mistakes from prior commits

2018-10-12 Thread Douglas Anderson
more obvious which types of PHYs need clocks and resets. This was sorta implicit in the "-names" description but I found myself confused. * As per the code not all "pcie qmp phys" have resets. Specifically note that the "has_lane_rst" property in the driver is false for

[PATCH v2] arm64: dts: qcom: sdm845: Add qspi (quad SPI) node

2018-10-08 Thread Douglas Anderson
dm845 to header") to add the needed defines. It also shouldn't land until the patch ("dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation") [1] lands. [1] https://lkml.kernel.org/r/20181002214709.162330-1-ryandc...@chromium.org Signed-off-by: Douglas Anderson --- Changes in

[PATCH v2] arm64: dts: qcom: sdm845: Add qspi (quad SPI) node

2018-10-08 Thread Douglas Anderson
dm845 to header") to add the needed defines. It also shouldn't land until the patch ("dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation") [1] lands. [1] https://lkml.kernel.org/r/20181002214709.162330-1-ryandc...@chromium.org Signed-off-by: Douglas Anderson --- Changes in

[PATCH] arm64: dts: qcom: sdm845: Add qspi (quad SPI) node

2018-10-04 Thread Douglas Anderson
dm845 to header") to add the needed defines. It also shouldn't land until the patch ("dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation") [1] lands. [1] https://lkml.kernel.org/r/20181002214709.162330-1-ryandc...@chromium.org Signed-off-by: Douglas Anderson --- arch/arm64/

[PATCH] arm64: dts: qcom: sdm845: Add qspi (quad SPI) node

2018-10-04 Thread Douglas Anderson
dm845 to header") to add the needed defines. It also shouldn't land until the patch ("dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation") [1] lands. [1] https://lkml.kernel.org/r/20181002214709.162330-1-ryandc...@chromium.org Signed-off-by: Douglas Anderson --- arch/arm64/

[RFC PATCH] PM / core: skip suspend next time if resume returns an error

2018-09-27 Thread Douglas Anderson
was intermittent for some reason). Obviously this patch is pretty simplistic and certainly doesn't fix the world, but perhaps it moves us in the right direction? Signed-off-by: Douglas Anderson --- drivers/base/power/main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[RFC PATCH] PM / core: skip suspend next time if resume returns an error

2018-09-27 Thread Douglas Anderson
was intermittent for some reason). Obviously this patch is pretty simplistic and certainly doesn't fix the world, but perhaps it moves us in the right direction? Signed-off-by: Douglas Anderson --- drivers/base/power/main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v3 2/2] soc: qcom: geni: geni_se_clk_freq_match() should always accept multiples

2018-09-06 Thread Douglas Anderson
ate we can make. [1] https://lkml.kernel.org/r/1535107336-2214-1-git-send-email-dk...@codeaurora.org Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- Changes in v3: None Changes in v2: - Init best_delt

[PATCH v3 1/2] soc: qcom: geni: Don't ignore clk_round_rate() errors in geni_se_clk_tbl_get()

2018-09-06 Thread Douglas Anderson
. ...this patch doesn't try to fix those problems, it just makes the error handling more correct. Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- Changes in v3: - Init "freq" again since remo

[PATCH v3 2/2] soc: qcom: geni: geni_se_clk_freq_match() should always accept multiples

2018-09-06 Thread Douglas Anderson
ate we can make. [1] https://lkml.kernel.org/r/1535107336-2214-1-git-send-email-dk...@codeaurora.org Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- Changes in v3: None Changes in v2: - Init best_delt

[PATCH v3 1/2] soc: qcom: geni: Don't ignore clk_round_rate() errors in geni_se_clk_tbl_get()

2018-09-06 Thread Douglas Anderson
. ...this patch doesn't try to fix those problems, it just makes the error handling more correct. Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- Changes in v3: - Init "freq" again since remo

[PATCH v2 1/2] soc: qcom: geni: Don't ignore clk_round_rate() errors in geni_se_clk_tbl_get()

2018-09-06 Thread Douglas Anderson
. ...this patch doesn't try to fix those problems, it just makes the error handling more correct. Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- Changes in v2: - Get rid of unneeded init of "freq&q

[PATCH v2 1/2] soc: qcom: geni: Don't ignore clk_round_rate() errors in geni_se_clk_tbl_get()

2018-09-06 Thread Douglas Anderson
. ...this patch doesn't try to fix those problems, it just makes the error handling more correct. Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- Changes in v2: - Get rid of unneeded init of "freq&q

[PATCH v2 2/2] soc: qcom: geni: geni_se_clk_freq_match() should always accept multiples

2018-09-06 Thread Douglas Anderson
ate we can make. [1] https://lkml.kernel.org/r/1535107336-2214-1-git-send-email-dk...@codeaurora.org Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- Changes in v2: - Init best_delta to ULONG_MAX and av

[PATCH v2 2/2] soc: qcom: geni: geni_se_clk_freq_match() should always accept multiples

2018-09-06 Thread Douglas Anderson
ate we can make. [1] https://lkml.kernel.org/r/1535107336-2214-1-git-send-email-dk...@codeaurora.org Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson Reviewed-by: Matthias Kaehlcke --- Changes in v2: - Init best_delta to ULONG_MAX and av

[PATCH] tty: serial: qcom_geni_serial: Fix serial when not used as console

2018-09-05 Thread Douglas Anderson
gt; 0 qcom_geni_serial_startup qcom_geni_serial_port_setup qcom_geni_serial_pm: 0 => 3 qcom_geni_serial_pm: 3 => 0 qcom_geni_serial_startup qcom_geni_serial_start_tx Fixes: c4f528795d1a ("tty: serial: msm_geni_serial: Add serial driver support for GENI based QUP") Signed-of

[PATCH] tty: serial: qcom_geni_serial: Fix serial when not used as console

2018-09-05 Thread Douglas Anderson
gt; 0 qcom_geni_serial_startup qcom_geni_serial_port_setup qcom_geni_serial_pm: 0 => 3 qcom_geni_serial_pm: 3 => 0 qcom_geni_serial_startup qcom_geni_serial_start_tx Fixes: c4f528795d1a ("tty: serial: msm_geni_serial: Add serial driver support for GENI based QUP") Signed-of

[PATCH 1/2] soc: qcom: geni: Don't ignore clk_round_rate() errors in geni_se_clk_tbl_get()

2018-08-30 Thread Douglas Anderson
he error handling more correct. Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson --- drivers/soc/qcom/qcom-geni-se.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/so

[PATCH 1/2] soc: qcom: geni: Don't ignore clk_round_rate() errors in geni_se_clk_tbl_get()

2018-08-30 Thread Douglas Anderson
he error handling more correct. Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson --- drivers/soc/qcom/qcom-geni-se.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/qcom-geni-se.c b/drivers/so

[PATCH 2/2] soc: qcom: geni: geni_se_clk_freq_match() should always accept multiples

2018-08-30 Thread Douglas Anderson
ate we can make. [1] https://lkml.kernel.org/r/1535107336-2214-1-git-send-email-dk...@codeaurora.org Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson --- drivers/soc/qcom/qcom-geni-se.c | 37 - 1 file

[PATCH 2/2] soc: qcom: geni: geni_se_clk_freq_match() should always accept multiples

2018-08-30 Thread Douglas Anderson
ate we can make. [1] https://lkml.kernel.org/r/1535107336-2214-1-git-send-email-dk...@codeaurora.org Fixes: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson --- drivers/soc/qcom/qcom-geni-se.c | 37 - 1 file

[PATCH] clk: qcom: Allocate space for NULL terimation in DFS table

2018-08-30 Thread Douglas Anderson
: cc4f6944d0e3 ("clk: qcom: Add support for RCG to register for DFS") Signed-off-by: Douglas Anderson --- drivers/clk/qcom/clk-rcg2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/clk-rcg2.c b/drivers/clk/qcom/clk-rcg2.c index d5d77f9ad170..6e3bd195d

[PATCH] clk: qcom: Allocate space for NULL terimation in DFS table

2018-08-30 Thread Douglas Anderson
: cc4f6944d0e3 ("clk: qcom: Add support for RCG to register for DFS") Signed-off-by: Douglas Anderson --- drivers/clk/qcom/clk-rcg2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/clk-rcg2.c b/drivers/clk/qcom/clk-rcg2.c index d5d77f9ad170..6e3bd195d

[RFT PATCH 1/2] pinctrl: ssbi-gpio: Fix pm8xxx_pin_config_get() to be compliant

2018-08-30 Thread Douglas Anderson
Fix msm_config_group_get() to be compliant"), but it was pointed out that ssbi-gpio has the same problem. Let's fix it there too. Fixes: b4c45fe974bc ("pinctrl: qcom: ssbi: Family A gpio & mpp drivers") Signed-off-by: Douglas Anderson --- drivers/pinctrl/qcom/pinctrl-ssbi-

[RFT PATCH 1/2] pinctrl: ssbi-gpio: Fix pm8xxx_pin_config_get() to be compliant

2018-08-30 Thread Douglas Anderson
Fix msm_config_group_get() to be compliant"), but it was pointed out that ssbi-gpio has the same problem. Let's fix it there too. Fixes: b4c45fe974bc ("pinctrl: qcom: ssbi: Family A gpio & mpp drivers") Signed-off-by: Douglas Anderson --- drivers/pinctrl/qcom/pinctrl-ssbi-

[RFT PATCH 2/2] pinctrl: spmi-mpp: Fix pmic_mpp_config_get() to be compliant

2018-08-30 Thread Douglas Anderson
oing that. It seems like another driver (ssbi-gpio) uses a custom attribute (PM8XXX_QCOM_PULL_UP_STRENGTH) for something similar so maybe a future change should do that here too. Fixes: cfb24f6ebd38 ("pinctrl: Qualcomm SPMI PMIC MPP pin controller driver") Signed-off-by: Douglas Ander

[RFT PATCH 2/2] pinctrl: spmi-mpp: Fix pmic_mpp_config_get() to be compliant

2018-08-30 Thread Douglas Anderson
oing that. It seems like another driver (ssbi-gpio) uses a custom attribute (PM8XXX_QCOM_PULL_UP_STRENGTH) for something similar so maybe a future change should do that here too. Fixes: cfb24f6ebd38 ("pinctrl: Qualcomm SPMI PMIC MPP pin controller driver") Signed-off-by: Douglas Ander

[RFT PATCH 0/2] pinctrl: Fix two more xxx_config_get() functions to be compliant

2018-08-30 Thread Douglas Anderson
phen found. Hopefully someone can test them out and make sure they work as advertised. Douglas Anderson (2): pinctrl: ssbi-gpio: Fix pm8xxx_pin_config_get() to be compliant pinctrl: spmi-mpp: Fix pmic_mpp_config_get() to be compliant drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 19 ++-

[RFT PATCH 0/2] pinctrl: Fix two more xxx_config_get() functions to be compliant

2018-08-30 Thread Douglas Anderson
phen found. Hopefully someone can test them out and make sure they work as advertised. Douglas Anderson (2): pinctrl: ssbi-gpio: Fix pm8xxx_pin_config_get() to be compliant pinctrl: spmi-mpp: Fix pmic_mpp_config_get() to be compliant drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 19 ++-

[PATCH v3 1/3] arm64: dts: qcom: sdm845: Add USB-related nodes

2018-08-22 Thread Douglas Anderson
From: Manu Gautam This adds nodes for USB and related PHYs. Signed-off-by: Manu Gautam [dianders: reworked quite a bit] Signed-off-by: Douglas Anderson --- Changes in v3: - Don't just fix qfprom unit address, fix the reg too (Stephen). - Rebased to next-20180822 Changes in v2: - Use

[PATCH v3 1/3] arm64: dts: qcom: sdm845: Add USB-related nodes

2018-08-22 Thread Douglas Anderson
From: Manu Gautam This adds nodes for USB and related PHYs. Signed-off-by: Manu Gautam [dianders: reworked quite a bit] Signed-off-by: Douglas Anderson --- Changes in v3: - Don't just fix qfprom unit address, fix the reg too (Stephen). - Rebased to next-20180822 Changes in v2: - Use

[PATCH v3 2/3] arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators

2018-08-22 Thread Douglas Anderson
with lots of patches adding regulator_set_load() calls to drivers. NOTE: This patch is loosely based on one originally shared to me by David Collins. Signed-off-by: Douglas Anderson --- Changes in v3: - Set vin-supply for s4a_1p8 properly (Stephen). - All regulators now HPM / disallow mode c

[PATCH v3 3/3] arm64: dts: qcom: sdm845-mtp: Add nodes for USB

2018-08-22 Thread Douglas Anderson
rites on pmi8998: - pm_comm_write_byte(2, 0x1153, 0x2C, 0); - pm_comm_write_byte(2, 0x1152, 0x07, 0); - pm_comm_write_byte(2, 0x1140, 0x00, 0); - pm_comm_write_byte(2, 0x1140, 0x01, 0); Signed-off-by: Douglas Anderson --- Changes in v3: None Changes in v2: None arch/arm64/boot/dts/qcom/sdm845-mtp.dt

[PATCH v3 2/3] arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators

2018-08-22 Thread Douglas Anderson
with lots of patches adding regulator_set_load() calls to drivers. NOTE: This patch is loosely based on one originally shared to me by David Collins. Signed-off-by: Douglas Anderson --- Changes in v3: - Set vin-supply for s4a_1p8 properly (Stephen). - All regulators now HPM / disallow mode c

[PATCH v3 3/3] arm64: dts: qcom: sdm845-mtp: Add nodes for USB

2018-08-22 Thread Douglas Anderson
rites on pmi8998: - pm_comm_write_byte(2, 0x1153, 0x2C, 0); - pm_comm_write_byte(2, 0x1152, 0x07, 0); - pm_comm_write_byte(2, 0x1140, 0x00, 0); - pm_comm_write_byte(2, 0x1140, 0x01, 0); Signed-off-by: Douglas Anderson --- Changes in v3: None Changes in v2: None arch/arm64/boot/dts/qcom/sdm845-mtp.dt

[PATCH v3 0/3] arm64: dts: sdm845: Add RPMh-regulators and usb

2018-08-22 Thread Douglas Anderson
oo - LDO14 initial mode is LPM and shouldn't be always on (Vivek G) - LDO25 should have min voltage of 3.3V Douglas Anderson (2): arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators arm64: dts: qcom: sdm845-mtp: Add nodes for USB Manu Gautam (1): arm64: dts: qcom: sdm845: Add USB-rel

[PATCH v3 0/3] arm64: dts: sdm845: Add RPMh-regulators and usb

2018-08-22 Thread Douglas Anderson
oo - LDO14 initial mode is LPM and shouldn't be always on (Vivek G) - LDO25 should have min voltage of 3.3V Douglas Anderson (2): arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators arm64: dts: qcom: sdm845-mtp: Add nodes for USB Manu Gautam (1): arm64: dts: qcom: sdm845: Add USB-rel

[PATCH v2 2/3] regulator: core: Add consumer-requested load in regulator_summary

2018-08-16 Thread Douglas Anderson
It's handy to see the load requested by a regulator consumer in the regulator_summary. Add it. Signed-off-by: Douglas Anderson --- Changes in v2: - No longer consider consumers that don't call regulator_set_load(). drivers/regulator/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v2 2/3] regulator: core: Add consumer-requested load in regulator_summary

2018-08-16 Thread Douglas Anderson
It's handy to see the load requested by a regulator consumer in the regulator_summary. Add it. Signed-off-by: Douglas Anderson --- Changes in v2: - No longer consider consumers that don't call regulator_set_load(). drivers/regulator/core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v2 0/3] regulator: core: Improve regulator_summary

2018-08-16 Thread Douglas Anderson
be applied separately but some rebasing would be required since the patches touch much of the same code. Changes in v2: - No longer consider consumers that don't call regulator_set_load(). Douglas Anderson (3): regulator: core: Add the opmode to regulator_summary regulator: core: Add consumer

[PATCH v2 0/3] regulator: core: Improve regulator_summary

2018-08-16 Thread Douglas Anderson
be applied separately but some rebasing would be required since the patches touch much of the same code. Changes in v2: - No longer consider consumers that don't call regulator_set_load(). Douglas Anderson (3): regulator: core: Add the opmode to regulator_summary regulator: core: Add consumer

[PATCH v2 3/3] regulator: core: Add locking to debugfs regulator_summary

2018-08-16 Thread Douglas Anderson
Most functions that access the rdev lock the rdev mutex before looking at data. ...but not the code that implements the debugfs regulator_summary. It probably should though, so let's do it. Note: this fixes no known issues. The problem was found only by code inspection. Signed-off-by: Douglas

[PATCH v2 3/3] regulator: core: Add locking to debugfs regulator_summary

2018-08-16 Thread Douglas Anderson
Most functions that access the rdev lock the rdev mutex before looking at data. ...but not the code that implements the debugfs regulator_summary. It probably should though, so let's do it. Note: this fixes no known issues. The problem was found only by code inspection. Signed-off-by: Douglas

[PATCH v2 1/3] regulator: core: Add the opmode to regulator_summary

2018-08-16 Thread Douglas Anderson
It's handy to know what opmode a regulator has been configured to in the summary. Add it. Signed-off-by: Douglas Anderson --- Changes in v2: None drivers/regulator/core.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/drivers/regulator

[PATCH v2 1/3] regulator: core: Add the opmode to regulator_summary

2018-08-16 Thread Douglas Anderson
It's handy to know what opmode a regulator has been configured to in the summary. Add it. Signed-off-by: Douglas Anderson --- Changes in v2: None drivers/regulator/core.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/drivers/regulator

[PATCH 1/4] regulator: core: If consumers don't call regulator_set_load() assume max

2018-08-14 Thread Douglas Anderson
first. Signed-off-by: Douglas Anderson --- drivers/regulator/core.c | 10 +- drivers/regulator/internal.h | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 6ed568b96c0e..a4da68775b49 100644 --- a/drivers

[PATCH 1/4] regulator: core: If consumers don't call regulator_set_load() assume max

2018-08-14 Thread Douglas Anderson
first. Signed-off-by: Douglas Anderson --- drivers/regulator/core.c | 10 +- drivers/regulator/internal.h | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 6ed568b96c0e..a4da68775b49 100644 --- a/drivers

[PATCH 4/4] regulator: core: Add locking to debugfs regulator_summary

2018-08-14 Thread Douglas Anderson
Most functions that access the rdev lock the rdev mutex before looking at data. ...but not the code that implements the debugfs regulator_summary. It probably should though, so let's do it. Signed-off-by: Douglas Anderson --- drivers/regulator/core.c | 51

[PATCH 4/4] regulator: core: Add locking to debugfs regulator_summary

2018-08-14 Thread Douglas Anderson
Most functions that access the rdev lock the rdev mutex before looking at data. ...but not the code that implements the debugfs regulator_summary. It probably should though, so let's do it. Signed-off-by: Douglas Anderson --- drivers/regulator/core.c | 51

[PATCH 2/4] regulator: core: Add the opmode to regulator_summary

2018-08-14 Thread Douglas Anderson
It's handy to know what opmode a regulator has been configured to in the summary. Add it. Signed-off-by: Douglas Anderson --- drivers/regulator/core.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/drivers/regulator/core.c b/drivers

[PATCH 3/4] regulator: core: Add consumer-requested load in regulator_summary

2018-08-14 Thread Douglas Anderson
n't called regulator_set_load() and the case where a consumer called it but the load is currently 0 mA. Signed-off-by: Douglas Anderson --- drivers/regulator/core.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index b8

[PATCH 2/4] regulator: core: Add the opmode to regulator_summary

2018-08-14 Thread Douglas Anderson
It's handy to know what opmode a regulator has been configured to in the summary. Add it. Signed-off-by: Douglas Anderson --- drivers/regulator/core.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/drivers/regulator/core.c b/drivers

[PATCH 3/4] regulator: core: Add consumer-requested load in regulator_summary

2018-08-14 Thread Douglas Anderson
n't called regulator_set_load() and the case where a consumer called it but the load is currently 0 mA. Signed-off-by: Douglas Anderson --- drivers/regulator/core.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index b8

[PATCH 0/4] regulator: core: A few useful patches for regulators that need load set

2018-08-14 Thread Douglas Anderson
likely to work. The rest of the patches just work on regulator_summary to try to make it so we can confirm that the first patch works. Douglas Anderson (4): regulator: core: If consumers don't call regulator_set_load() assume max regulator: core: Add the opmode to regulator_summary

[PATCH 0/4] regulator: core: A few useful patches for regulators that need load set

2018-08-14 Thread Douglas Anderson
likely to work. The rest of the patches just work on regulator_summary to try to make it so we can confirm that the first patch works. Douglas Anderson (4): regulator: core: If consumers don't call regulator_set_load() assume max regulator: core: Add the opmode to regulator_summary

[PATCH 2/3] arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators

2018-08-10 Thread Douglas Anderson
: This patch is loosely based on one originally shared to me by David Collins. Signed-off-by: Douglas Anderson --- Changes in v2: - LDO14 initial mode is LPM and shouldn't be always on (Vivek G) - LDO25 should have min voltage of 3.3V arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 445

[PATCH 2/3] arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators

2018-08-10 Thread Douglas Anderson
: This patch is loosely based on one originally shared to me by David Collins. Signed-off-by: Douglas Anderson --- Changes in v2: - LDO14 initial mode is LPM and shouldn't be always on (Vivek G) - LDO25 should have min voltage of 3.3V arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 445

[PATCH 1/3] arm64: dts: qcom: sdm845: Add USB-related nodes

2018-08-10 Thread Douglas Anderson
From: Manu Gautam This adds nodes for USB and related PHYs. Signed-off-by: Manu Gautam [dianders: reworked quite a bit] Signed-off-by: Douglas Anderson --- Changes in v2: - Use "0x784000" for qfprom rather than "0x78" as per docs. - Add calibration for 2nd USB port t

[PATCH 1/3] arm64: dts: qcom: sdm845: Add USB-related nodes

2018-08-10 Thread Douglas Anderson
From: Manu Gautam This adds nodes for USB and related PHYs. Signed-off-by: Manu Gautam [dianders: reworked quite a bit] Signed-off-by: Douglas Anderson --- Changes in v2: - Use "0x784000" for qfprom rather than "0x78" as per docs. - Add calibration for 2nd USB port t

[PATCH 3/3] arm64: dts: qcom: sdm845-mtp: Add nodes for USB

2018-08-10 Thread Douglas Anderson
rites on pmi8998: - pm_comm_write_byte(2, 0x1153, 0x2C, 0); - pm_comm_write_byte(2, 0x1152, 0x07, 0); - pm_comm_write_byte(2, 0x1140, 0x00, 0); - pm_comm_write_byte(2, 0x1140, 0x01, 0); Signed-off-by: Douglas Anderson --- Changes in v2: None arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 61 +

[PATCH 3/3] arm64: dts: qcom: sdm845-mtp: Add nodes for USB

2018-08-10 Thread Douglas Anderson
rites on pmi8998: - pm_comm_write_byte(2, 0x1153, 0x2C, 0); - pm_comm_write_byte(2, 0x1152, 0x07, 0); - pm_comm_write_byte(2, 0x1140, 0x00, 0); - pm_comm_write_byte(2, 0x1140, 0x01, 0); Signed-off-by: Douglas Anderson --- Changes in v2: None arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 61 +

[PATCH 0/3] arm64: dts: sdm845: Add RPMh-regulators and usb

2018-08-10 Thread Douglas Anderson
000" for qfprom rather than "0x78" as per docs. - Add calibration for 2nd USB port too - LDO14 initial mode is LPM and shouldn't be always on (Vivek G) - LDO25 should have min voltage of 3.3V Douglas Anderson (2): arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators arm6

[PATCH 0/3] arm64: dts: sdm845: Add RPMh-regulators and usb

2018-08-10 Thread Douglas Anderson
000" for qfprom rather than "0x78" as per docs. - Add calibration for 2nd USB port too - LDO14 initial mode is LPM and shouldn't be always on (Vivek G) - LDO25 should have min voltage of 3.3V Douglas Anderson (2): arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators arm6

[PATCH] regulator: qcom-rpmh: Add stylistic breaks in the default cases

2018-08-10 Thread Douglas Anderson
No functional change here but it can make the code more readable to have breaks in the "default" case even though it's the last case. Let's add them. Signed-off-by: Douglas Anderson --- drivers/regulator/qcom-rpmh-regulator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH] regulator: qcom-rpmh: Add stylistic breaks in the default cases

2018-08-10 Thread Douglas Anderson
No functional change here but it can make the code more readable to have breaks in the "default" case even though it's the last case. Let's add them. Signed-off-by: Douglas Anderson --- drivers/regulator/qcom-rpmh-regulator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH] dt-bindings: phy: qcom-qmp: Cleanup the 'reg' documentation as per review

2018-08-06 Thread Douglas Anderson
er already landed relying on reg-names so we'll just document it and move on. Fixes: 8b1087fa3a27 ("phy: qcom-qmp: Fix dts bindings to reflect reality") Suggested-by: Rob Herring Signed-off-by: Douglas Anderson --- .../devicetree/bindings/phy/qcom-qmp-phy.txt | 19 +++

[PATCH] dt-bindings: phy: qcom-qmp: Cleanup the 'reg' documentation as per review

2018-08-06 Thread Douglas Anderson
er already landed relying on reg-names so we'll just document it and move on. Fixes: 8b1087fa3a27 ("phy: qcom-qmp: Fix dts bindings to reflect reality") Suggested-by: Rob Herring Signed-off-by: Douglas Anderson --- .../devicetree/bindings/phy/qcom-qmp-phy.txt | 19 +++

[PATCH v3 2/2] clk: qcom: Add qspi (Quad SPI) clocks for sdm845

2018-07-24 Thread Douglas Anderson
Add both the interface and core clock. Signed-off-by: Douglas Anderson (am from https://lore.kernel.org/patchwork/patch/966680/mbox) --- Changes in v3: - Removed gcc_parent_names_9 which I had left in (doh!). Changes in v2: - Only 19.2, 100, 150, and 300 MHz now. - All clocks come from MAIN

[PATCH v3 0/2] clk: qcom: Quad SPI (qspi) clock support for sdm845

2018-07-24 Thread Douglas Anderson
had left in (doh!). Changes in v2: - Only 19.2, 100, 150, and 300 MHz now. - All clocks come from MAIN rather than EVEN. - Use parent map 0 instead of new parent map 9. Douglas Anderson (2): clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header clk: qcom: Add qspi (Quad SPI) clo

[PATCH v3 2/2] clk: qcom: Add qspi (Quad SPI) clocks for sdm845

2018-07-24 Thread Douglas Anderson
Add both the interface and core clock. Signed-off-by: Douglas Anderson (am from https://lore.kernel.org/patchwork/patch/966680/mbox) --- Changes in v3: - Removed gcc_parent_names_9 which I had left in (doh!). Changes in v2: - Only 19.2, 100, 150, and 300 MHz now. - All clocks come from MAIN

[PATCH v3 0/2] clk: qcom: Quad SPI (qspi) clock support for sdm845

2018-07-24 Thread Douglas Anderson
had left in (doh!). Changes in v2: - Only 19.2, 100, 150, and 300 MHz now. - All clocks come from MAIN rather than EVEN. - Use parent map 0 instead of new parent map 9. Douglas Anderson (2): clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header clk: qcom: Add qspi (Quad SPI) clo

[PATCH v3 1/2] clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header

2018-07-24 Thread Douglas Anderson
These clocks will need to be defined in the clock driver and referenced in device tree files. Signed-off-by: Douglas Anderson --- Changes in v3: None Changes in v2: None include/dt-bindings/clock/qcom,gcc-sdm845.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings

[PATCH v3 1/2] clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header

2018-07-24 Thread Douglas Anderson
These clocks will need to be defined in the clock driver and referenced in device tree files. Signed-off-by: Douglas Anderson --- Changes in v3: None Changes in v2: None include/dt-bindings/clock/qcom,gcc-sdm845.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings

[PATCH v2 1/2] clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header

2018-07-23 Thread Douglas Anderson
These clocks will need to be defined in the clock driver and referenced in device tree files. Signed-off-by: Douglas Anderson --- Changes in v2: None include/dt-bindings/clock/qcom,gcc-sdm845.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-sdm845.h

[PATCH v2 1/2] clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header

2018-07-23 Thread Douglas Anderson
These clocks will need to be defined in the clock driver and referenced in device tree files. Signed-off-by: Douglas Anderson --- Changes in v2: None include/dt-bindings/clock/qcom,gcc-sdm845.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-sdm845.h

[PATCH v2 2/2] clk: qcom: Add qspi (Quad SPI) clocks for sdm845

2018-07-23 Thread Douglas Anderson
Add both the interface and core clock. Signed-off-by: Douglas Anderson --- Changes in v2: - Only 19.2, 100, 150, and 300 MHz now. - All clocks come from MAIN rather than EVEN. - Use parent map 0 instead of new parent map 9. drivers/clk/qcom/gcc-sdm845.c | 63

[PATCH v2 0/2] clk: qcom: Quad SPI (qspi) clock support for sdm845

2018-07-23 Thread Douglas Anderson
now. - All clocks come from MAIN rather than EVEN. - Use parent map 0 instead of new parent map 9. Douglas Anderson (2): clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header clk: qcom: Add qspi (Quad SPI) clocks for sdm845 drivers/clk/qcom/gcc-sdm845.c |

[PATCH v2 2/2] clk: qcom: Add qspi (Quad SPI) clocks for sdm845

2018-07-23 Thread Douglas Anderson
Add both the interface and core clock. Signed-off-by: Douglas Anderson --- Changes in v2: - Only 19.2, 100, 150, and 300 MHz now. - All clocks come from MAIN rather than EVEN. - Use parent map 0 instead of new parent map 9. drivers/clk/qcom/gcc-sdm845.c | 63

[PATCH v2 0/2] clk: qcom: Quad SPI (qspi) clock support for sdm845

2018-07-23 Thread Douglas Anderson
now. - All clocks come from MAIN rather than EVEN. - Use parent map 0 instead of new parent map 9. Douglas Anderson (2): clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header clk: qcom: Add qspi (Quad SPI) clocks for sdm845 drivers/clk/qcom/gcc-sdm845.c |

[RFC PATCH 0/2] clk: qcom: Quad SPI (qspi) clock support for sdm845

2018-07-18 Thread Douglas Anderson
tried to map Qualcomm register definition into the clock driver, so it'd be nice if someone could double-check and make sure I mapped all the numbers correctly. If nothing else it does appear to work though. Douglas Anderson (2): clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header

[RFC PATCH 0/2] clk: qcom: Quad SPI (qspi) clock support for sdm845

2018-07-18 Thread Douglas Anderson
tried to map Qualcomm register definition into the clock driver, so it'd be nice if someone could double-check and make sure I mapped all the numbers correctly. If nothing else it does appear to work though. Douglas Anderson (2): clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header

[RFC PATCH 2/2] clk: qcom: Add qspi (Quad SPI) clocks for sdm845

2018-07-18 Thread Douglas Anderson
Add both the interface and core clock. Signed-off-by: Douglas Anderson --- drivers/clk/qcom/gcc-sdm845.c | 73 +++ 1 file changed, 73 insertions(+) diff --git a/drivers/clk/qcom/gcc-sdm845.c b/drivers/clk/qcom/gcc-sdm845.c index 0f694ed4238a..2ee96f9bc217

[RFC PATCH 1/2] clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header

2018-07-18 Thread Douglas Anderson
These clocks will need to be defined in the clock driver and referenced in device tree files. Signed-off-by: Douglas Anderson --- include/dt-bindings/clock/qcom,gcc-sdm845.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-sdm845.h b/include/dt

[RFC PATCH 2/2] clk: qcom: Add qspi (Quad SPI) clocks for sdm845

2018-07-18 Thread Douglas Anderson
Add both the interface and core clock. Signed-off-by: Douglas Anderson --- drivers/clk/qcom/gcc-sdm845.c | 73 +++ 1 file changed, 73 insertions(+) diff --git a/drivers/clk/qcom/gcc-sdm845.c b/drivers/clk/qcom/gcc-sdm845.c index 0f694ed4238a..2ee96f9bc217

[RFC PATCH 1/2] clk: qcom: Add qspi (Quad SPI) clock defines for sdm845 to header

2018-07-18 Thread Douglas Anderson
These clocks will need to be defined in the clock driver and referenced in device tree files. Signed-off-by: Douglas Anderson --- include/dt-bindings/clock/qcom,gcc-sdm845.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-sdm845.h b/include/dt

[PATCH 1/3] arm64: dts: qcom: sdm845: Add USB-related nodes

2018-07-10 Thread Douglas Anderson
From: Manu Gautam This adds nodes for USB and related PHYs. Signed-off-by: Manu Gautam [dianders: reworked quite a bit] Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 189 +++ 1 file changed, 189 insertions(+) diff --git a/arch/arm64/boot

[PATCH 0/3] arm64: dts: sdm845: Add RPMh-regulators and usb

2018-07-10 Thread Douglas Anderson
t them out there to start the review process. Douglas Anderson (2): arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators arm64: dts: qcom: sdm845-mtp: Add nodes for USB Manu Gautam (1): arm64: dts: qcom: sdm845: Add USB-related nodes arch/arm64/boot/dts/qcom/sdm845-mtp

[PATCH 1/3] arm64: dts: qcom: sdm845: Add USB-related nodes

2018-07-10 Thread Douglas Anderson
From: Manu Gautam This adds nodes for USB and related PHYs. Signed-off-by: Manu Gautam [dianders: reworked quite a bit] Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 189 +++ 1 file changed, 189 insertions(+) diff --git a/arch/arm64/boot

[PATCH 0/3] arm64: dts: sdm845: Add RPMh-regulators and usb

2018-07-10 Thread Douglas Anderson
t them out there to start the review process. Douglas Anderson (2): arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators arm64: dts: qcom: sdm845-mtp: Add nodes for USB Manu Gautam (1): arm64: dts: qcom: sdm845: Add USB-related nodes arch/arm64/boot/dts/qcom/sdm845-mtp

[PATCH 3/3] arm64: dts: qcom: sdm845-mtp: Add nodes for USB

2018-07-10 Thread Douglas Anderson
rites on pmi8998: - pm_comm_write_byte(2, 0x1153, 0x2C, 0); - pm_comm_write_byte(2, 0x1152, 0x07, 0); - pm_comm_write_byte(2, 0x1140, 0x00, 0); - pm_comm_write_byte(2, 0x1140, 0x01, 0); Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 61 + 1 fi

[PATCH 2/3] arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators

2018-07-10 Thread Douglas Anderson
: This patch is loosely based on one originally shared to me by David Collins. Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 446 1 file changed, 446 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom

[PATCH 3/3] arm64: dts: qcom: sdm845-mtp: Add nodes for USB

2018-07-10 Thread Douglas Anderson
rites on pmi8998: - pm_comm_write_byte(2, 0x1153, 0x2C, 0); - pm_comm_write_byte(2, 0x1152, 0x07, 0); - pm_comm_write_byte(2, 0x1140, 0x00, 0); - pm_comm_write_byte(2, 0x1140, 0x01, 0); Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 61 + 1 fi

[PATCH 2/3] arm64: dts: qcom: sdm845-mtp: Add RPMh VRM/XOB regulators

2018-07-10 Thread Douglas Anderson
: This patch is loosely based on one originally shared to me by David Collins. Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 446 1 file changed, 446 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom

[PATCH] phy: qcom-qmp: Fix dts bindings to reflect reality

2018-07-06 Thread Douglas Anderson
0d239936bd ("phy: qcom-qmp: Add support for runtime PM") Signed-off-by: Douglas Anderson --- .../devicetree/bindings/phy/qcom-qmp-phy.txt | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt b/Docu

<    2   3   4   5   6   7   8   9   10   11   >