[PATCH] arm64: dts: rockchip: Fix rk3399-gru-* s2r (pinctrl hogs, wifi reset)

2018-02-27 Thread Douglas Anderson
cessary. Reported-by: Marc Zyngier Fixes: 48f4d9796d99 ("arm64: dts: rockchip: add Gru/Kevin DTS") Fixes: 981ed1bfbc6c ("pinctrl: Really force states during suspend/resume") Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 16 +++-

[PATCH] phy: rockchip-typec: Try to turn the PHY on several times

2017-12-11 Thread Douglas Anderson
For some more details on this bug, you can refer to: https://bugs.chromium.org/p/chromium/issues/detail?id=783464 Signed-off-by: Douglas Anderson --- drivers/phy/rockchip/phy-rockchip-typec.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/drivers/phy

[PATCH v4] usb: dwc2: host: Don't retry NAKed transactions right away

2017-12-12 Thread Douglas Anderson
-off-by: Douglas Anderson Reviewed-by: Julius Werner Tested-by: Stefan Wahren Acked-by: John Youn --- Changes in v4: - Removed Cc for stable as per Felipe's request in v3 - Rebased and squashed the two patches since Kees' timer stuff landed - Add John Youn's Ack. Changes in v3: - Add tested

[PATCH v2 0/5] drm/panel-simple: Patches for N116BCA-EA1

2021-01-15 Thread Douglas Anderson
longer for HPD...") new for v2. - ("drm/panel-simple: Retry if we timeout waiting for HPD") new for v2. - ("dt-bindings: dt-bindings: display: simple: Add N116BCA-EA1") new for v2. - ("drm/panel-simple: Add N116BCA-EA1") new for v2. Douglas Anderson (5): drm/panel-si

[PATCH v2 3/5] drm/panel-simple: Retry if we timeout waiting for HPD

2021-01-15 Thread Douglas Anderson
re attributed to the fact that it's pre-production and/or can be fixed, retries clearly can help in some cases and really don't hurt. Signed-off-by: Douglas Anderson --- Changes in v2: - ("drm/panel-simple: Retry if we timeout waiting for HPD") new for v2. drivers/gpu/drm/pa

[PATCH v2 4/5] dt-bindings: dt-bindings: display: simple: Add N116BCA-EA1

2021-01-15 Thread Douglas Anderson
Another simple eDP panel. Signed-off-by: Douglas Anderson --- Changes in v2: - ("dt-bindings: dt-bindings: display: simple: Add N116BCA-EA1") new for v2. .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc

[PATCH v2 5/5] drm/panel-simple: Add N116BCA-EA1

2021-01-15 Thread Douglas Anderson
This panel is quite similar to the similarly named N116BGE panel (the nominal timings are, in fact identical). However, let's add a new entry because the full range of clocks listed for N116BGE aren't supported for N116BCA-EA1, at least according to the datasheet. Signed-off-by: Douglas Anderson

[PATCH v2 2/5] drm/panel-simple: Don't wait longer for HPD than hpd_absent_delay

2021-01-15 Thread Douglas Anderson
fail to power on and need to be retried. We can detect the problem sooner. Signed-off-by: Douglas Anderson --- Changes in v2: - ("drm/panel-simple: Don't wait longer for HPD...") new for v2. drivers/gpu/drm/panel/panel-simple.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletio

[PATCH v2 1/5] drm/panel-simple: Undo enable if HPD never asserts

2021-01-15 Thread Douglas Anderson
, but this patch makes it so that if I add a retry that I can make things work. Fixes: 48834e6084f1 ("drm/panel-simple: Support hpd-gpios for delaying prepare()") Signed-off-by: Douglas Anderson --- Stephen: I didn't take your Reviewed-by tag since I made a small change. If you're OK with this cha

[PATCH v6 1/4] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2021-01-14 Thread Douglas Anderson
-initialization. Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd Reviewed-by: Maulik Shah Tested-by: Maulik Shah Reviewed-by: Bjorn Andersson --- Changes in v6: - Don't wrap line; bust through 80 columns! drivers/pinctrl/qcom/pinctrl-msm.c | 3 +-- drivers/pinctrl/qcom/pinctrl-msm.h | 2 ++ 2

[PATCH v6 3/4] pinctrl: qcom: Properly clear "intr_ack_high" interrupts when unmasking

2021-01-14 Thread Douglas Anderson
't need to open-code the logic in both places. This was found by code inspection. I don't have any access to the hardware in question nor software that needs the Ack during unmask. Fixes: 4b7618fdc7e6 ("pinctrl: qcom: Add irq_enable callback for msm gpio") Signed-off-by: Douglas Anderson Re

[PATCH v6 4/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2021-01-14 Thread Douglas Anderson
le callback for msm gpio") Fixes: 71266d9d3936 ("pinctrl: qcom: Move clearing pending IRQ to .irq_request_resources callback") Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah --- I kept Maulik's tags from v5 even though there were slight

[PATCH v6 2/4] pinctrl: qcom: No need to read-modify-write the interrupt status

2021-01-14 Thread Douglas Anderson
nterrupt status bits to share a register. NOTE: this code fixes no bugs--it simply avoids an extra register read. Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson --- Changes in v6: - Remove unneeded parenth

[PATCH] arm64: dts: qcom: sc7180: Add "dp_hot_plug_det" pinconf for trogdor

2021-01-06 Thread Douglas Anderson
We have an external pull on this line, so disable the internal pull. Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180

[PATCH v7 4/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2021-01-14 Thread Douglas Anderson
le callback for msm gpio") Fixes: 71266d9d3936 ("pinctrl: qcom: Move clearing pending IRQ to .irq_request_resources callback") Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah --- I kept Maulik's tags from v5 even though there were slight

[PATCH v7 2/4] pinctrl: qcom: No need to read-modify-write the interrupt status

2021-01-14 Thread Douglas Anderson
nterrupt status bits to share a register. NOTE: this code fixes no bugs--it simply avoids an extra register read. Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson --- (no changes since v6) Changes in v6

[PATCH v7 1/4] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2021-01-14 Thread Douglas Anderson
-initialization. Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd Reviewed-by: Maulik Shah Tested-by: Maulik Shah Reviewed-by: Bjorn Andersson --- (no changes since v6) Changes in v6: - Don't wrap line; bust through 80 columns! drivers/pinctrl/qcom/pinctrl-msm.c | 3 +-- drivers/pinctrl/qcom

[PATCH] drm/panel-simple: Undo enable if HPD never asserts

2021-01-14 Thread Douglas Anderson
, but this patch makes it so that if I add a retry that I can make things work. Fixes: 48834e6084f1 ("drm/panel-simple: Support hpd-gpios for delaying prepare()") Signed-off-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-simple.c | 10 -- 1 file changed, 8 insertions(+), 2 deletion

[PATCH v7 3/4] pinctrl: qcom: Properly clear "intr_ack_high" interrupts when unmasking

2021-01-14 Thread Douglas Anderson
't need to open-code the logic in both places. This was found by code inspection. I don't have any access to the hardware in question nor software that needs the Ack during unmask. Fixes: 4b7618fdc7e6 ("pinctrl: qcom: Add irq_enable callback for msm gpio") Signed-off-by: Douglas Anderson Re

[PATCH v9 1/4] HID: i2c-hid: Reorganize so ACPI and OF are separate modules

2021-01-15 Thread Douglas Anderson
o that we now have 3 modules: the old i2c-hid module becomes the "core" module and two new modules will depend on it, handling probing the specific device. As part of this work, we'll remove the i2c-hid "platform data" concept since it's not needed. Signed-off-by: Doug

[PATCH v9 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2021-01-15 Thread Douglas Anderson
on the new subclass system. Changes in v3: - Fixed compatible in example. - Removed Benjamin as a maintainer. - Rework to use subclassing. - Updated description. Changes in v2: - ("dt-bindings: HID: i2c-hid: Introduce bindings for the Goodix GT7375P") new in v2. - Get timings based on the compa

[PATCH v9 2/4] arm64: defconfig: Update config names for i2c-hid rejigger

2021-01-15 Thread Douglas Anderson
The i2c-hid driver has been split in two. Let's enable both halves. Signed-off-by: Douglas Anderson Acked-by: Will Deacon --- (no changes since v4) Changes in v4: - ("arm64: defconfig: Update config names for i2c-hid rejigger") new for v4. arch/arm64/configs/defconfig | 3 +

[PATCH v9 3/4] dt-bindings: input: HID: i2c-hid: Introduce bindings for the Goodix GT7375P

2021-01-15 Thread Douglas Anderson
This adds new bindings for the Goodix GT7375P touchscreen. While this touchscreen's communications are based on the generic "i2c-over-hid" protocol, it needs special power sequencing and thus gets its own compatible and bindings. Signed-off-by: Douglas Anderson Reviewed-by: R

[PATCH v9 4/4] HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core

2021-01-15 Thread Douglas Anderson
touchscreen: GT7375P Signed-off-by: Douglas Anderson --- Changes in v9: - 120 ms delay => 180 ms delay Changes in v6: - Suspend/resume are no longer exported from the core. Changes in v5: - i2chid_subclass_data => i2chid_ops. - power_up_device => power_up (same with power_down). - subcla

[PATCH 1/2] soc: qcom: aoss: Don't wait for IRQ if we might be in suspend/resume noirq

2020-08-05 Thread Douglas Anderson
p_intr() (our IRQ handler). Doh! I believe that the correct fix here is to assume that our power_off / power_on functions might be called at "noirq" time and just always poll if we're called via that path. Other paths can continue to wait for the IRQ. Fixes: 2209481409b7 ("soc: q

[PATCH 2/2] soc: qcom: aoss: qmp_send() can't handle interruptions so stop pretending

2020-08-05 Thread Douglas Anderson
doodoo anyway. Let's just use the non-interruptible version of the function and call it good enough. Found by code inspection. No known test cases expose the problem described here. Fixes: 2209481409b7 ("soc: qcom: Add AOSS QMP driver") Signed-off-by: Douglas Anderson --- driver

[PATCH] drm/bridge: ti-sn65dsi86: Add retries for link training

2020-10-02 Thread Douglas Anderson
ttle blurb to the logs if we ever need more than 5. Signed-off-by: Douglas Anderson --- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 40 +++ 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi

[PATCH] arm64: dts: qcom: sc7180: Fix one forgotten interconnect reference

2020-10-01 Thread Douglas Anderson
king right. If nothing else, without this fix I see this in the logs: OF: /soc@0/mdss@ae0: could not get #interconnect-cells for /soc@0/interrupt-controller@17a0 Fixes: e23b1220a246 ("arm64: dts: qcom: sc7180: Increase the number of interconnect cells") Signed-off-

[PATCH v2] clk: qcom: lpasscc: Re-configure the PLL in case lost

2020-10-14 Thread Douglas Anderson
From: Taniya Das In the case where the PLL configuration is lost, then the pm runtime resume will reconfigure before usage. Fixes: edab812d802d ("clk: qcom: lpass: Add support for LPASS clock controller for SC7180") Signed-off-by: Taniya Das Signed-off-by: Douglas Anderson

[PATCH v4 3/3] clk: qcom: lpasscc-sc7180: Re-configure the PLL in case lost

2020-10-14 Thread Douglas Anderson
From: Taniya Das In the case where the PLL configuration is lost, then the pm runtime resume will reconfigure before usage. Fixes: edab812d802d ("clk: qcom: lpass: Add support for LPASS clock controller for SC7180") Signed-off-by: Taniya Das Signed-off-by: Douglas Anderson --- Cha

[PATCH v4 1/3] clk: qcom: lpasscc-sc7810: Use devm in probe

2020-10-14 Thread Douglas Anderson
Let's convert the lpass clock control driver to use devm. This is a few more lines of code, but it will be useful in a later patch which disentangles the two devices handled by this driver. Signed-off-by: Douglas Anderson --- Changes in v4: - Fixed typo lapss => lpass - Mo

[PATCH v4 2/3] clk: qcom: lpass-sc7180: Disentangle the two clock devices

2020-10-14 Thread Douglas Anderson
by the same driver. Signed-off-by: Douglas Anderson --- (no changes since v3) Changes in v3: - ("clk: qcom: lpass-sc7180: Disentangle the two clock devices") new for v3. drivers/clk/qcom/lpasscorecc-sc7180.c | 101 -- 1 file changed, 62 insertions(+), 39 deletion

[PATCH v3 1/3] clk: qcom: lpasscc-sc7810: Use devm in probe

2020-10-14 Thread Douglas Anderson
Let's convert the lpass clock control driver to use devm. This is a few more lines of code, but it will be useful in a later patch which disentangles the two devices handled by this driver. Signed-off-by: Douglas Anderson --- Changes in v3: - ("clk: qcom: lpasscc-sc7810: Use devm in

[PATCH v3 3/3] clk: qcom: lpasscc-sc7180: Re-configure the PLL in case lost

2020-10-14 Thread Douglas Anderson
From: Taniya Das In the case where the PLL configuration is lost, then the pm runtime resume will reconfigure before usage. Fixes: edab812d802d ("clk: qcom: lpass: Add support for LPASS clock controller for SC7180") Signed-off-by: Taniya Das Signed-off-by: Douglas Anderson --- Cha

[PATCH v3 2/3] clk: qcom: lpass-sc7180: Disentangle the two clock devices

2020-10-14 Thread Douglas Anderson
by the same driver. Signed-off-by: Douglas Anderson --- Changes in v3: - ("clk: qcom: lpass-sc7180: Disentangle the two clock devices") new for v3. drivers/clk/qcom/lpasscorecc-sc7180.c | 121 +++--- 1 file changed, 72 insertions(+), 49 deletions(-) diff --git a/driver

[PATCH 2/2] HID: i2c-hid: Add the ability to control a reset GPIO

2020-10-14 Thread Douglas Anderson
+ +-- | (a) | RESET -+ +- | (b) | I2C comm OK -+ Where (a) is 10 ms and (b) is 120 ms. Let's add the ability to support this into the i2c-hid driver. Signed-off-by: Douglas Anderson --- drivers/hid/i2c

[PATCH 1/2] dt-bindings: HID: i2c-hid: Add the ability to control a reset GPIO

2020-10-14 Thread Douglas Anderson
+ +-- | (a) | RESET -+ +- | (b) | I2C comm OK -+ Where (a) is 10 ms and (b) is 120 ms. Let's add the ability to specify these timings to the devicetree bindings. Signed-off-by: Douglas Anderson --- I

[PATCH 0/3] i2c: i2c-qcom-geni: More properly fix the DMA race

2020-10-08 Thread Douglas Anderson
/ rejigger. To me it seemed like a good idea to first fix the probelm (and make the two functions as much of an inverse as possible) and later try to clean things up. Yell if you want something different. Douglas Anderson (3): soc: qcom: geni: More properly switch to DMA mode Revert &quo

[PATCH 1/3] soc: qcom: geni: More properly switch to DMA mode

2020-10-08 Thread Douglas Anderson
tel(). NOTE: the only current user of GENI_SE_DMA in mainline is i2c. Fixes: 37692de5d523 ("i2c: i2c-qcom-geni: Add bus driver for the Qualcomm GENI I2C controller") Fixes: 02b9aec59243 ("i2c: i2c-qcom-geni: Fix DMA transfer race") Signed-off-by: Douglas Anderson --- driv

[PATCH 3/3] soc: qcom: geni: Optimize select fifo/dma mode

2020-10-08 Thread Douglas Anderson
that this makes any performance difference and it fixes no bugs. However, it seems (to me) like it makes the functions a little easier to understand. Decreasing the amount of times we read/write memory mapped registers is also nice, even if we are using "relaxed" variants. Signed-off-by: Dougla

[PATCH 2/3] Revert "i2c: i2c-qcom-geni: Fix DMA transfer race"

2020-10-08 Thread Douglas Anderson
;) is a prerequisite for this one. Fixes: 02b9aec59243 ("i2c: i2c-qcom-geni: Fix DMA transfer race") Signed-off-by: Douglas Anderson --- drivers/i2c/busses/i2c-qcom-geni.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/driv

[PATCH] ASoC: qcom: lpass-sc7180: Add MODULE_DEVICE_TABLE

2020-09-16 Thread Douglas Anderson
The lpass-sc7180 driver can be built as a module but is lacking a MODULE_DEVICE_TABLE. This means it won't auto-load. Fix this oversight. Fixes: 24caf8d9eb10 ("ASoC: qcom: lpass-sc7180: Add platform driver for lpass audio") Signed-off-by: Douglas Anderson --- sound/soc/qcom/lpas

[PATCH] mmc: sdhci-msm: Add retries when all tuning phases are found valid

2020-08-27 Thread Douglas Anderson
the retry count to 10 just to be extra sure. Fixes: 415b5a75da43 ("mmc: sdhci-msm: Add platform_execute_tuning implementation") Signed-off-by: Douglas Anderson --- drivers/mmc/host/sdhci-msm.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/d

[PATCH] mmc: sdhci-msm: When dev_pm_opp_of_add_table() returns 0 it's not an error

2020-08-27 Thread Douglas Anderson
" will evaluate to true and we'll fall into the error case. Oops. Let's fix this. Fixes: d05a7238fe1c ("mmc: sdhci-msm: Unconditionally call dev_pm_opp_of_remove_table()") Signed-off-by: Douglas Anderson --- drivers/mmc/host/sdhci-msm.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH] mmc: sdhci-msm: We need to restore_dll_config for sc7180

2020-08-27 Thread Douglas Anderson
the DLL config whenever we do runtime resume. This is safe and gets things working again. NOTE: we don't need to introduce a whole new "struct sdhci_msm_variant_info" for sc7180 since it would be exactly the same as the sdm845 one. We'll just refer to that one. Signed-off-by: Dougla

[PATCH] soc: qcom: socinfo: add SC7180 entry to soc_id array

2020-08-13 Thread Douglas Anderson
Add an entry for SC7180 SoC. Signed-off-by: Douglas Anderson --- drivers/soc/qcom/socinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c index e19102f46302..e56eea29615c 100644 --- a/drivers/soc/qcom/socinfo.c +++ b/drivers/soc

[PATCH] arm64: dts: qcom: Add sc7180-lazor sku2

2020-09-08 Thread Douglas Anderson
Add a new SKU variant. This is a pick from the downstream tree that is the current source of truth for this platform. Link: https://crrev.com/c/2386997 Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../dts/qcom/sc7180-trogdor-lazor-r1-kb.dts

[PATCH v2] iio: sx9310: Prefer async probe

2020-09-01 Thread Douglas Anderson
to indicate that it's done. There's no reason to block probe of all other devices on our probe. Turn on async probe. Signed-off-by: Douglas Anderson --- Changes in v2: - Updated commit message w/ details on why probe is slow. - Added comment next to flag about why probe is slow. drivers/iio

[PATCH] dt-bindings: clock: Fix YAML schemas for LPASS clocks on SC7180

2020-07-31 Thread Douglas Anderson
elieve both examples are supposed to be independent of each other. Let's fix the bindings. Fixes: 381cc6f97cda ("dt-bindings: clock: Add YAML schemas for LPASS clocks on SC7180") Signed-off-by: Douglas Anderson --- .../bindings/clock/qcom,sc7180-lpasscorecc.yaml| 14 ++ 1 fil

[PATCH] spi: spi-geni-qcom: Don't wait to start 1st transfer if transmitting

2020-09-12 Thread Douglas Anderson
urn a bool indicating if there is more to tx. Signed-off-by: Douglas Anderson --- drivers/spi/spi-geni-qcom.c | 167 +++- 1 file changed, 86 insertions(+), 81 deletions(-) diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index 0dc3f4c55b0b..49

[PATCH 1/3] spi: spi-geni-qcom: Use the FIFO even more

2020-09-12 Thread Douglas Anderson
er several runs. Before: It took 6.66 seconds and 59669 interrupts fired. After: It took 6.66 seconds and 47992 interrupts fired. Signed-off-by: Douglas Anderson --- drivers/spi/spi-geni-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-geni-qcom.c b/

[PATCH 2/3] spi: spi-geni-qcom: Don't program CS_TOGGLE again and again

2020-09-12 Thread Douglas Anderson
not really noticeable on any real world benchmarks, we might as well save the time. Signed-off-by: Douglas Anderson --- drivers/spi/spi-geni-qcom.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index

[PATCH 3/3] spi: spi-geni-qcom: Slightly optimize setup of bidirectional xfters

2020-09-12 Thread Douglas Anderson
-by: Douglas Anderson --- drivers/spi/spi-geni-qcom.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index 92d88bf85a90..6c7e12b68bf0 100644 --- a/drivers/spi/spi-geni-qcom.c +++ b/drivers/spi/spi-geni

[PATCH v3 2/2] arm64: dts: qcom: Switch sc7180-trogdor to control SPI CS via GPIO

2020-09-21 Thread Douglas Anderson
and we do a lot of SPI traffic. Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd --- (no changes since v1) arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 19 --- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/

[PATCH v3 1/2] arm64: dts: qcom: sc7180: Provide pinconf for SPI to use GPIO for CS

2020-09-21 Thread Douglas Anderson
se devices. >From a testing perspective, running "flashrom -p ec -r /tmp/foo.bin" in a loop after this patch shows almost no reduction in time, but the number of interrupts per command goes from 32357 down to 30611 (about a 5% reduction). Signed-off-by: Douglas Anderson Reviewed-by: Ste

[PATCH] arm64: crypto: Add an option to assume NEON XOR is the fastest

2020-09-21 Thread Douglas Anderson
is called. Without seeing evidence that this would really help someone, though, that doesn't seem worth it. Signed-off-by: Douglas Anderson --- arch/arm64/Kconfig | 15 +++ arch/arm64/include/asm/xor.h | 5 + 2 files changed, 20 insertions(+) diff --git a/arch/arm64

[PATCH] tty: serial: qcom_geni_serial: 115.2 is a better console default than 9600

2020-09-11 Thread Douglas Anderson
nsole by just adding "console=ttyMSM0" (instead of "console=ttyMSM0,115200n8") to the command line, so it seems like it'd be nice to fix. Let's switch the default to 115200. Signed-off-by: Douglas Anderson --- drivers/tty/serial/qcom_geni_serial.c | 2 +- 1 file changed, 1

[PATCH 2/3] drm: panel: simple: Add BOE NV110WTM-N61

2020-10-27 Thread Douglas Anderson
structure to do this cleanly. This assumes that the backlight will be enabled _after_ the panel enable finishes. This is how it works today and seems a sane assumption. Signed-off-by: Douglas Anderson --- drivers/gpu/drm/panel/panel-simple.c | 48 1 file changed

[PATCH 1/3] drm: panel: simple: Allow timing constraints, not fixed delays

2020-10-27 Thread Douglas Anderson
nimum time between HPD being asserted by the panel and setting the backlight enable GPIO. By specifying as a constraint we can enforce this without over-delaying. Specifically the link training is allowed to happen in parallel with this delay so adding a fixed 80 ms delay isn't ideal. Signed-off-b

[PATCH 3/3] dt-bindings: dt-bindings: display: simple: Add BOE NV110WTM-N61

2020-10-27 Thread Douglas Anderson
Add yet another eDP panel. Signed-off-by: Douglas Anderson --- .../devicetree/bindings/display/panel/panel-simple.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display

[PATCH 1/2] clk: qcom: gcc-sc7180: Use floor ops for sdcc clks

2020-12-10 Thread Douglas Anderson
e the next patch AKA ("clk: qcom: gcc-sc7180: Add 50 MHz clock rate for SDC2")). That means then when you run an older SD card it'll try to clock it at 100 MHz when it's only specced to run at 50 MHz max. As you can probably guess that doesn't work super well. Signed-off-by: Dou

[PATCH 2/2] clk: qcom: gcc-sc7180: Add 50 MHz clock rate for SDC2

2020-12-10 Thread Douglas Anderson
f their normal speed. There doesn't seem to be any reason to skip this clock rate, so add it. Fixes: 17269568f726 ("clk: qcom: Add Global Clock controller (GCC) driver for SC7180") Signed-off-by: Douglas Anderson --- drivers/clk/qcom/gcc-sc7180.c | 1 + 1 file changed, 1 insertion(+)

[PATCH] mmc: sdhci-msm: Warn about overclocking SD/MMC

2020-12-10 Thread Douglas Anderson
a warning in the Qualcomm SDHCI driver to help catch the problem. This would have saved a bunch of time [1]. [1] http://lore.kernel.org/r/20201210102234.1.I096779f219625148900fc984dd0084ed1ba87c7f@changeid Suggested-by: Stephen Boyd Signed-off-by: Douglas Anderson --- drivers/mmc/host/sdhci-

[PATCH v2] mmc: sdhci-msm: Warn about overclocking SD/MMC

2020-12-10 Thread Douglas Anderson
a warning in the Qualcomm SDHCI driver to help catch the problem. This would have saved a bunch of time [1]. [1] http://lore.kernel.org/r/20201210102234.1.I096779f219625148900fc984dd0084ed1ba87c7f@changeid Suggested-by: Stephen Boyd Signed-off-by: Douglas Anderson --- Changes in v2: - Store rate i

[PATCH v3] mmc: sdhci-msm: Warn about overclocking SD/MMC

2020-12-10 Thread Douglas Anderson
a warning in the Qualcomm SDHCI driver to help catch the problem. This would have saved a bunch of time [1]. [1] http://lore.kernel.org/r/20201210102234.1.I096779f219625148900fc984dd0084ed1ba87c7f@changeid Suggested-by: Stephen Boyd Signed-off-by: Douglas Anderson --- Changes in v3: - Proper pri

[PATCH v4 1/2] mmc: sdhci-msm: Warn about overclocking SD/MMC

2020-12-11 Thread Douglas Anderson
rnel.org/r/20201210102234.1.I096779f219625148900fc984dd0084ed1ba87c7f@changeid Suggested-by: Stephen Boyd Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson --- Changes in v4: - Emphasize in the commit message that this itself doesn't fix anything. Changes in v3: - Pro

[PATCH v4 2/2] mmc: sdhci-msm: Actually set the actual clock

2020-12-11 Thread Douglas Anderson
wrong rate (maybe it's rounding up instead of down), this will make it much more obvious what's going on. NOTE: we have to be a little careful here because the "actual_clock" field shouldn't include the multiplier that sdhci-msm needs internally. Signed-off-by: Douglas Anderson ---

[PATCH v7 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2020-12-11 Thread Douglas Anderson
T7375P") new in v2. - Get timings based on the compatible string. - Use a separate compatible string for this new touchscreen. Douglas Anderson (4): HID: i2c-hid: Reorganize so ACPI and OF are separate modules arm64: defconfig: Update config names for i2c-hid rejigger dt-bindings: inpu

[PATCH v7 1/4] HID: i2c-hid: Reorganize so ACPI and OF are separate modules

2020-12-11 Thread Douglas Anderson
o that we now have 3 modules: the old i2c-hid module becomes the "core" module and two new modules will depend on it, handling probing the specific device. As part of this work, we'll remove the i2c-hid "platform data" concept since it's not needed. Signed-off-by: Doug

[PATCH v7 4/4] HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core

2020-12-11 Thread Douglas Anderson
touchscreen: GT7375P Signed-off-by: Douglas Anderson --- (no changes since v6) Changes in v6: - Suspend/resume are no longer exported from the core. Changes in v5: - i2chid_subclass_data => i2chid_ops. - power_up_device => power_up (same with power_down). - subclass => ops. Chan

[PATCH v7 3/4] dt-bindings: input: HID: i2c-hid: Introduce bindings for the Goodix GT7375P

2020-12-11 Thread Douglas Anderson
This adds new bindings for the Goodix GT7375P touchscreen. While this touchscreen's communications are based on the generic "i2c-over-hid" protocol, it needs special power sequencing and thus gets its own compatible and bindings. Signed-off-by: Douglas Anderson Reviewed-by: R

[PATCH v7 2/4] arm64: defconfig: Update config names for i2c-hid rejigger

2020-12-11 Thread Douglas Anderson
The i2c-hid driver has been split in two. Let's enable both halves. Signed-off-by: Douglas Anderson Acked-by: Will Deacon --- (no changes since v4) Changes in v4: - ("arm64: defconfig: Update config names for i2c-hid rejigger") new for v4. arch/arm64/configs/defconfig | 3 +

[PATCH v4 1/4] irqchip: qcom-pdc: Fix phantom irq when changing between rising/falling

2020-12-11 Thread Douglas Anderson
rupt controller for QCOM SoCs") Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah Reviewed-by: Stephen Boyd --- There are no dependencies between this patch and patch #2/#3. It can go in by itself. Patches are only grouped together in one series because

[PATCH v4 2/4] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2020-12-11 Thread Douglas Anderson
-initialization. Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd --- (no changes since v1) drivers/pinctrl/qcom/pinctrl-msm.c | 4 ++-- drivers/pinctrl/qcom/pinctrl-msm.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl

[PATCH v4 4/4] pinctrl: qcom: Clear possible pending parent irq when remuxing GPIOs

2020-12-11 Thread Douglas Anderson
nt already masked us, but it's a good idea in general. * When we mux back will clear any interrupts and unmask our parent if needed. Fixes: 71266d9d3936 ("pinctrl: qcom: Move clearing pending IRQ to .irq_request_resources callback") Signed-off-by: Douglas Anderson --- This patch

[PATCH v4 3/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2020-12-11 Thread Douglas Anderson
then get rid of the clear. Fixes: 4b7618fdc7e6 ("pinctrl: qcom: Add irq_enable callback for msm gpio") Signed-off-by: Douglas Anderson --- I don't have lots of good test cases here, so hopefully someone from Qualcomm can confirm that this works well for them and there isn't some other ph

[PATCH v8 1/4] HID: i2c-hid: Reorganize so ACPI and OF are separate modules

2020-12-11 Thread Douglas Anderson
o that we now have 3 modules: the old i2c-hid module becomes the "core" module and two new modules will depend on it, handling probing the specific device. As part of this work, we'll remove the i2c-hid "platform data" concept since it's not needed. Signed-off-by: Doug

[PATCH v8 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2020-12-11 Thread Douglas Anderson
uot;dt-bindings: HID: i2c-hid: Introduce bindings for the Goodix GT7375P") new in v2. - Get timings based on the compatible string. - Use a separate compatible string for this new touchscreen. Douglas Anderson (4): HID: i2c-hid: Reorganize so ACPI and OF are separate modules arm64: defco

[PATCH v8 3/4] dt-bindings: input: HID: i2c-hid: Introduce bindings for the Goodix GT7375P

2020-12-11 Thread Douglas Anderson
This adds new bindings for the Goodix GT7375P touchscreen. While this touchscreen's communications are based on the generic "i2c-over-hid" protocol, it needs special power sequencing and thus gets its own compatible and bindings. Signed-off-by: Douglas Anderson Reviewed-by: R

[PATCH v8 4/4] HID: i2c-hid: Introduce goodix-i2c-hid using i2c-hid core

2020-12-11 Thread Douglas Anderson
touchscreen: GT7375P Signed-off-by: Douglas Anderson --- (no changes since v6) Changes in v6: - Suspend/resume are no longer exported from the core. Changes in v5: - i2chid_subclass_data => i2chid_ops. - power_up_device => power_up (same with power_down). - subclass => ops. Chan

[PATCH v8 2/4] arm64: defconfig: Update config names for i2c-hid rejigger

2020-12-11 Thread Douglas Anderson
The i2c-hid driver has been split in two. Let's enable both halves. Signed-off-by: Douglas Anderson Acked-by: Will Deacon --- (no changes since v4) Changes in v4: - ("arm64: defconfig: Update config names for i2c-hid rejigger") new for v4. arch/arm64/configs/defconfig | 3 +

[PATCH v3 1/3] irqchip: qcom-pdc: Fix phantom irq when changing between rising/falling

2020-12-09 Thread Douglas Anderson
rupt controller for QCOM SoCs") Signed-off-by: Douglas Anderson Reviewed-by: Maulik Shah Tested-by: Maulik Shah --- There are no dependencies between this patch and patch #2/#3. It can go in by itself. Patches are only grouped together in one series because they address similar iss

[PATCH v3 3/3] pinctrl: qcom: Clear possible pending irq when remuxing GPIOs

2020-12-09 Thread Douglas Anderson
hat could have been generated the first time we set RAW_STATUS_EN. Fixes: 71266d9d3936 ("pinctrl: qcom: Move clearing pending IRQ to .irq_request_resources callback") Signed-off-by: Douglas Anderson --- This patch depends on #2 in the series, but not #1. #1 can land on its own and then

[PATCH v3 2/3] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2020-12-09 Thread Douglas Anderson
-initialization. Signed-off-by: Douglas Anderson --- (no changes since v1) drivers/pinctrl/qcom/pinctrl-msm.c | 4 ++-- drivers/pinctrl/qcom/pinctrl-msm.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index

[PATCH v3 1/4] spi: spi-geni-qcom: Fix geni_spi_isr() NULL dereference in timeout case

2020-12-17 Thread Douglas Anderson
gh handle_fifo_timeout() and then start a new transfer because interrupts from the old transfer / cancel / abort could still be pending. A future patch will help this corner case. Fixes: 561de45f72bd ("spi: spi-geni-qcom: Add SPI driver support for GENI based QUP") Signed-off-by: Douglas

[PATCH v3 2/4] spi: spi-geni-qcom: Fail new xfers if xfer/cancel/abort pending

2020-12-17 Thread Douglas Anderson
;) Signed-off-by: Douglas Anderson --- Changes in v3: - spin the lock in spi_geni_is_abort_still_pending() if abort pending. Changes in v2: - Make this just about the failed abort. drivers/spi/spi-geni-qcom.c | 59 +++-- 1 file changed, 57 insertions(+), 2 delet

[PATCH v3 3/4] spi: spi-geni-qcom: Don't try to set CS if an xfer is pending

2020-12-17 Thread Douglas Anderson
the driver even more confused about what it's doing. The SPI core in general assumes that setting chip select is a simple operation that doesn't fail. Yet another reason to just reconfigure the chip select line as GPIOs. Signed-off-by: Douglas Anderson --- Changes in v3: - xfter => xfer

[PATCH v3 4/4] spi: spi-geni-qcom: Print an error when we timeout setting the CS

2020-12-17 Thread Douglas Anderson
If we're using geni to manage the chip select line (don't do it--use a GPIO!) and we happen to get a timeout waiting for the chip select command to be completed, no errors are printed even though things might not be in the best shape. Let's add a print. Signed-off-by: Douglas Anderson

[PATCH v5 1/2] mmc: sdhci-msm: Warn about overclocking SD/MMC

2020-12-14 Thread Douglas Anderson
rnel.org/r/20201210102234.1.I096779f219625148900fc984dd0084ed1ba87c7f@changeid Suggested-by: Stephen Boyd Signed-off-by: Douglas Anderson Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson --- (no changes since v4) Changes in v4: - Emphasize in the commit message that this itself doesn't fix anything

[PATCH v5 2/2] mmc: sdhci-msm: Actually set the actual clock

2020-12-14 Thread Douglas Anderson
wrong rate (maybe it's rounding up instead of down), this will make it much more obvious what's going on. NOTE: we have to be a little careful here because the "actual_clock" field shouldn't include the multiplier that sdhci-msm needs internally. Suggested-by: Adrian Hunter Signed-o

[PATCH 1/2] spi: spi-geni-qcom: Fix geni_spi_isr() NULL dereference in timeout case

2020-12-14 Thread Douglas Anderson
ixes: 561de45f72bd ("spi: spi-geni-qcom: Add SPI driver support for GENI based QUP") Signed-off-by: Douglas Anderson --- drivers/spi/spi-geni-qcom.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index 25

[PATCH 2/2] spi: spi-geni-qcom: Really ensure the previous xfer is done before new one

2020-12-14 Thread Douglas Anderson
t the next transfer. Fixes: 561de45f72bd ("spi: spi-geni-qcom: Add SPI driver support for GENI based QUP") Signed-off-by: Douglas Anderson --- drivers/spi/spi-geni-qcom.c | 69 - 1 file changed, 53 insertions(+), 16 deletions(-) diff --git a/drivers/s

[PATCH v2 1/4] spi: spi-geni-qcom: Fix geni_spi_isr() NULL dereference in timeout case

2020-12-16 Thread Douglas Anderson
gh handle_fifo_timeout() and then start a new transfer because interrupts from the old transfer / cancel / abort could still be pending. A future patch will help this corner case. Fixes: 561de45f72bd ("spi: spi-geni-qcom: Add SPI driver support for GENI based QUP") Signed-off-by: Douglas

[PATCH v2 4/4] spi: spi-geni-qcom: Print an error when we timeout setting the CS

2020-12-16 Thread Douglas Anderson
If we're using geni to manage the chip select line (don't do it--use a GPIO!) and we happen to get a timeout waiting for the chip select command to be completed, no errors are printed even though things might not be in the best shape. Let's add a print. Signed-off-by: Douglas Anderson

[PATCH v2 2/4] spi: spi-geni-qcom: Fail new xfers if xfer/cancel/abort pending

2020-12-16 Thread Douglas Anderson
;) Signed-off-by: Douglas Anderson --- Changes in v2: - Make this just about the failed abort. drivers/spi/spi-geni-qcom.c | 56 +++-- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index

[PATCH v2 3/4] spi: spi-geni-qcom: Don't try to set CS if an xfer is pending

2020-12-16 Thread Douglas Anderson
ure the chip select line as GPIOs. Signed-off-by: Douglas Anderson --- Changes in v2: - ("spi: spi-geni-qcom: Don't try to set CS if an xfer is pending") new for v2. drivers/spi/spi-geni-qcom.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-

[PATCH v2 1/3] dt-bindings: HID: i2c-hid: Label this binding as deprecated

2020-10-23 Thread Douglas Anderson
ot;hid-over-i2c" fallback and the various timings. [1] https://lore.kernel.org/r/20201019211036.GA3595039@bogus Signed-off-by: Douglas Anderson --- Changes in v2: - ("dt-bindings: HID: i2c-hid: Label this binding as deprecated") new in v2. Documentation/devicetree/bindings/input/hid

[PATCH v2 2/3] dt-bindings: HID: i2c-hid: Introduce bindings for the Goodix GT7375P

2020-10-23 Thread Douglas Anderson
hat we can list the two possible i2c addresses for this device, which gives extra checking. Signed-off-by: Douglas Anderson --- Changes in v2: - ("dt-bindings: HID: i2c-hid: Introduce bindings for the Goodix GT7375P") new in v2. .../bindings/input/goodix,gt7375p.yaml| 64 +++

[PATCH v2 3/3] HID: i2c-hid: Support the Goodix GT7375P touchscreen

2020-10-23 Thread Douglas Anderson
tree, the guidance from the device tree maintainer is that it's better to list the specific model and infer everything from there. Thus that's what this patch implements. Signed-off-by: Douglas Anderson --- Changes in v2: - Use a separate compatible string for this new touchscreen. - Get timings

[PATCH] arm64: dts: qcom: sc7180: Assign numbers to eMMC and SD

2020-11-11 Thread Douglas Anderson
not already well-defined numbers for all sd/mmc controllers, in the case of sc7180 there _are_ well defined numbers. IMO it is less confusing to use those and match the docs. Signed-off-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --g

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