account for it.
Signed-off-by: Douglas Anderson
---
drivers/phy/rockchip/phy-rockchip-typec.c | 13 +
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/drivers/phy/rockchip/phy-rockchip-typec.c
b/drivers/phy/rockchip/phy-rockchip-typec.c
index 4d2c57f21d76..38831eebc934 10064
make sure that we don't overrun memory even if we encounter some
sort of weird device tree.
Fixes: d9f9c167edae ("ASoC: rockchip: Init dapm routes dynamically")
Signed-off-by: Douglas Anderson
---
sound/soc/rockchip/rk3399_gru_sound.c | 12 +++-
1 file changed, 11 insertions
h of PCIe traffic but it also (on my system) outputs some
SELinux log spam.
Fixes: 03de19212ea3 ("mmc: dw_mmc: introduce timer for broken command transfer
over scheme")
Signed-off-by: Douglas Anderson
---
drivers/mmc/host/dw_mmc.c | 92 +--
1
ed for the CTO timer on one of my devices and so I can
confirm that part still works. As mentioned in the 3rd patch I also
ran the mmc_test kernel module on this and did manage to see the 3rd
patch doing something useful.
Douglas Anderson (3):
mmc: dw_mmc: cancel the CTO timer after a voltage sw
19212ea3 ("mmc: dw_mmc: introduce timer for broken command transfer
over scheme")
Signed-off-by: Douglas Anderson
---
drivers/mmc/host/dw_mmc.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index f5b2bb4b4d9
switch was done. Let's promote the cancel
into the dw_mci_cmd_interrupt() function to fix this.
Fixes: 03de19212ea3 ("mmc: dw_mmc: introduce timer for broken command transfer
over scheme")
Signed-off-by: Douglas Anderson
---
drivers/mmc/host/dw_mmc.c | 3 ++-
1 file change
These are a few stragglers that I left out of the original patch to
cache calls to the C compiler ("kbuild: Add a cache for generated
variables") because they bleed out into the main Makefile and thus
uglify things a little bit. The idea is the same here, though.
Signed-off-by: Dougla
already
in our cache. The cache is stored in a format that it shouldn't need
any invalidation since anything that might change should affect the
"key" and any old cached value won't be used. The cache will be
cleaned by virtue of the ".o" suffix by a "make cl
ertain
architectures you might need some extra escaping here and there.
Douglas Anderson (2):
kbuild: Add a cache for generated variables
kbuild: Cache a few more calls to the compiler
Documentation/kbuild/makefiles.txt | 21 ++
Makefile |
...so the type C PHY was always in default state. TX_ANA_CTRL_REG_1
is documented to be 0x0 after reset. This was also confirmed by
printk.
Suggested-by: Shawn Nematbakhsh
Reviewed-by: Chris Zhong
Signed-off-by: Douglas Anderson
---
Changes in v3: None
Changes in v2: None
drivers/phy/r
g his tag. If
folks would rather I didn't do that, please yell.
Changes in v3:
- Voltage swing patch now patch 2.
Changes in v2:
- Voltage swing patch new for v2.
- Removed extra blank line.
Douglas Anderson (4):
phy: rockchip-typec: Set the AUX channel flip state earlier
phy: rockchip-t
say whether this is a better or worse solution. Tightening signals
to give cleaner waveforms can often have adverse affects, like
increasing EMI or adding noise to other signals. I'd rather not
tune things like this without a healthy application of expertise
that I don't have.
tested the pullup and pulldown codes were nearly the same (0x23 and
0x24) and the adjustment codes were 0.
Reviewed-by: Chris Zhong
Signed-off-by: Douglas Anderson
---
Changes in v3: None
Changes in v2:
- Removed extra blank line.
drivers/phy/rockchip/phy-rockchip-ty
ion code. This
will hopefully come in a followup change.
This also doesn't attempt to document any of the other parts of the
PHY--just the aux init which is all I got docs for.
Reviewed-by: Chris Zhong
Signed-off-by: Douglas Anderson
---
Changes in v3: None
Changes in v2: None
driv
tested the pullup and pulldown codes were nearly the same (0x23 and
0x24) and the adjustment codes were 0.
Reviewed-by: Chris Zhong
Signed-off-by: Douglas Anderson
---
Changes in v2:
- Removed extra blank line
drivers/phy/rockchip/phy-rockchip-typec.c | 27 ++-
1 file c
...so the type C PHY was always in default state. TX_ANA_CTRL_REG_1
is documented to be 0x0 after reset. This was also confirmed by
printk.
Suggested-by: Shawn Nematbakhsh
Reviewed-by: Chris Zhong
Signed-off-by: Douglas Anderson
---
Changes in v2: None
drivers/phy/rockchip/phy-rockch
g his tag. If
folks would rather I didn't do that, please yell.
Changes in v2:
- Removed extra blank line
- Voltage swing patch new for v2.
Douglas Anderson (4):
phy: rockchip-typec: Set the AUX channel flip state earlier
phy: rockchip-typec: Avoid magic numbers + add delays in aux calib
say whether this is a better or worse solution. Tightening signals
to give cleaner waveforms can often have adverse affects, like
increasing EMI or adding noise to other signals. I'd rather not
tune things like this without a healthy application of expertise
that I don't have.
ion code. This
will hopefully come in a followup change.
This also doesn't attempt to document any of the other parts of the
PHY--just the aux init which is all I got docs for.
Reviewed-by: Chris Zhong
Signed-off-by: Douglas Anderson
---
Changes in v2: None
drivers/phy/rockchip/p
If rx_submit() returns an error code then nobody calls usb_free_urb().
That means it's leaked.
NOTE: This problem was found solely by code inspection and not due to
any failing test cases.
Signed-off-by: Douglas Anderson
---
drivers/net/usb/usbnet.c | 9 ++---
1 file changed, 6 inser
e is allocating much less than 4K
worth of data and probably never fails.
Signed-off-by: Douglas Anderson
---
drivers/net/usb/usbnet.c | 50 +---
1 file changed, 22 insertions(+), 28 deletions(-)
diff --git a/drivers/net/usb/usbnet.c b/drivers/net
gged".
ALSO NOTE: If somehow some of the types of work need to be repeated if
usbnet_defer_kevent() is called multiple times then that should be
quite easy to accomplish without dropping any work on the floor. We
can just keep an atomic count for that type of work and add a loop
into usb
...so the type C PHY was always in default state. TX_ANA_CTRL_REG_1
is documented to be 0x0 after reset. This was also confirmed by
printk.
Suggested-by: Shawn Nematbakhsh
Reviewed-by: Chris Zhong
Signed-off-by: Douglas Anderson
---
drivers/phy/rockchip/phy-rockchip-typec.c | 62 +++
ion code. This
will hopefully come in a followup change.
This also doesn't attempt to document any of the other parts of the
PHY--just the aux init which is all I got docs for.
Reviewed-by: Chris Zhong
Signed-off-by: Douglas Anderson
---
drivers/phy/rockchip/phy-rockchip-typec.c | 203
've added Chris Zhong's Reviewed-by tags since he
gave a +1 to nearly identical patches on the Chrome OS gerrit and I
didn't think he'd mind me carrying his tag. If folks would rather I
didn't do that, please yell.
Douglas Anderson (3):
phy: rockchip-typec: Set the AUX ch
tested the pullup and pulldown codes were nearly the same (0x23 and
0x24) and the adjustment codes were 0.
Reviewed-by: Chris Zhong
Signed-off-by: Douglas Anderson
---
drivers/phy/rockchip/phy-rockchip-typec.c | 28 +++-
1 file changed, 19 insertions(+), 9 deletions(-)
=ffc0cc042080
mtpd-20553 13759487us : async_getcompleted before spin_lock_irqsave
mtpd-20553 13759497us!: usbdev_release after kfree(ps):
ps=ffc0cc042080
<...>-2104 0d.h2 13760294us : async_completed before wake_up():
as=ffc0cc638200
To fix this problem we can just
When the "if (record->size <= 0)" test is true in
pstore_get_backend_records() it's pretty clear that nobody holds a
reference to the allocated pstore_record, yet we don't free it.
Let's free it.
Fixes: 2a2b0acf768c ("pstore: Allocate records on heap inste
nefit of
avoiding an error path in the init code.
Note that the saving code that we're removing (and the comments
talking about how important it is to do the save) has been around
since commit 336cfbb05edf ("ASoC: Intel: mrfld- add ACPI module").
Signed-off-by: Douglas Anderson
---
rs we were storing data in.
Note that the saving code (and the comments talking about how
important it is to do the save) has been around since
commit 336cfbb05edf ("ASoC: Intel: mrfld- add ACPI module").
Signed-off-by: Douglas Anderson
---
This problem was found only by code inspection and
There's no reason for rt5514_i2c_driver to be non-static.
Signed-off-by: Douglas Anderson
---
sound/soc/codecs/rt5514.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c
index b281a46d769d..481e77763fe4 100644
--- a/
ently believed that this problem should be fixed in the
rt5514 driver itself because it seems that the i2c controller in the
rt5514 is easily confused. Most i2c devices wouldn't detect a start
bit in this case.
Signed-off-by: Douglas Anderson
---
sound/soc/codecs/rt5
e
value do we're not passing a possibly uninitialized int to printk.
Signed-off-by: Douglas Anderson
---
sound/soc/codecs/rt5514.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c
index 481e77763fe4..969a05620e04 1
mc: add runtime PM callback")
Cc:
Reported-by: Brian Norris
Signed-off-by: Douglas Anderson
---
drivers/mmc/host/dw_mmc.c | 11 +--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index 249ded65192e..e45129f48
able to kill a
task quickly when we want to. That means this patch has some
merit.
2. Though this patch has merit, it isn't isn't actually all that
critical because:
2a) On newer kernels the OOM reaper should keep us from getting
deadlocked.
2b) Even on old kernels ther
as long as
ARM Trusted Firmware isn't starting up the M0 at exactly the same time
that the kernel is disabling unused clocks. ...but if the race
happens then we go boom.
Signed-off-by: Douglas Anderson
---
drivers/clk/rockchip/clk-rk3399.c | 8
1 file changed, 4 insertions(+), 4 deleti
resumably this problem is unique
to that IP, so I have placed the workaround there to avoid possibly of
accidentally triggering bad behavior on other IP. Also note the RX
Timeout behaves very differently in the DMA case, for for now the
workaround is only applied to the non-DMA case.
Signed-off-by
550 ms (50 for regulator, 500 to off=>on too quick)
As you can see, even giving the regulator 10 ms (the max the panel
spec allows) for ramping up we are sure that the regulator was on for
300 ms now.
Signed-off-by: Douglas Anderson
---
drivers/gpu/drm/panel/panel-simple.c | 1 +
1 file ch
it). That makes the old init useless. Get rid of it.
Fixes: 6f339dc2719e ("clk: rockchip: lookup General Register Files in
rockchip_clk_init")
Signed-off-by: Douglas Anderson
---
drivers/clk/rockchip/clk.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/clk/rockchip/
UARTs and it's plausible some other
UART could get into the same state. If these two extra lines of code
are too much overhead, we can certainly move it into the DesignWare
driver or even only do it for Rockchip UARTs.
Signed-off-by: Douglas Anderson
---
Testing and development done on a ker
;t mean that any in-progress dm_bufio
transactions are all done.
Maybe the above argument would be obvious to someone wise in the ways
of dm_bufio but it's a useful argument to make for those like me who
are trying to make a small fix without full comprehension of all of
dm_bufio's fine
o
pass GFP_NOWAIT instead of GFP_NOIO to alloc_buffer() when holding a
mutex that can be contended by a concurrent slab shrinker (if
count_objects didn't use a trylock, this pattern would trivially
deadlock).
Suggested-by: David Rientjes
Signed-off-by: Douglas Anderson
---
Note that t
Commit-ID: 4b7e9cf9c84b09adc428e0433cd376b91f9c52a7
Gitweb: http://git.kernel.org/tip/4b7e9cf9c84b09adc428e0433cd376b91f9c52a7
Author: Douglas Anderson
AuthorDate: Fri, 21 Oct 2016 08:58:51 -0700
Committer: Thomas Gleixner
CommitDate: Wed, 26 Oct 2016 13:14:47 +0200
timers: Fix
Commit-ID: 6c5e9059692567740a4ee51530dffe51a4b9584d
Gitweb: http://git.kernel.org/tip/6c5e9059692567740a4ee51530dffe51a4b9584d
Author: Douglas Anderson
AuthorDate: Fri, 21 Oct 2016 08:58:50 -0700
Committer: Thomas Gleixner
CommitDate: Wed, 26 Oct 2016 13:14:46 +0200
timers: Fix
afe enough
to use to implement our timeout. We'll delay 1 ms for 1000 times, which
should give us a full second of delay (just like the old code wanted)
but allow us to notice that we're done every 1 ms.
Signed-off-by: Douglas Anderson
---
Changes in v2:
- Use udelay, not __delay
ke
of that but they were aware
of many people relying on usleep_range() never returning before the
minimum.
Reported-by: Tao Huang
Signed-off-by: Douglas Anderson
---
Changes in v5:
- Don't accidentally busy wait after first wakeup (Thomas Gleixner)
- Removed Reviewed-by tags
Changes in v4:
alculation cost that isn't needed in all cases.
Suggested-by: Daniel Kurtz
Signed-off-by: Douglas Anderson
---
Changes in v5: None
Changes in v4:
- Fixed stray double quotes.
- Updated wording as per Thomas Gleixner.
Changes in v3:
- Documentation fix new for v3.
k
alculation cost that isn't needed in all cases.
Suggested-by: Daniel Kurtz
Signed-off-by: Douglas Anderson
---
Changes in v4:
- Fixed stray double quotes.
- Updated wording as per Thomas Gleixner.
Changes in v3:
- Documentation fix new for v3.
kernel/time/hrtimer.c | 20 ++--
of that but they were aware
of many people relying on usleep_range() never returning before the
minimum.
Reported-by: Tao Huang
Signed-off-by: Douglas Anderson
Reviewed-by: Andreas Mohr
Reviewed-by: Brian Norris
Reviewed-by: Guenter Roeck
---
Changes in v4: None
Changes in v3:
- Add Reviewed-by t
of that but they were aware
of many people relying on usleep_range() never returning before the
minimum.
Reported-by: Tao Huang
Signed-off-by: Douglas Anderson
Reviewed-by: Andreas Mohr
Reviewed-by: Brian Norris
Reviewed-by: Guenter Roeck
---
Changes in v3:
- Add Reviewed-by tags
- Add notes about
alculation cost that isn't needed in all cases.
Suggested-by: Daniel Kurtz
Signed-off-by: Douglas Anderson
---
Changes in v3:
- Documentation fix new for v3.
kernel/time/hrtimer.c | 20 ++--
kernel/time/timer.c | 11 +++
2 files changed, 21 insertions(+), 10 d
ccurate timeout and the
only penalty is that we might wait an extra 99 "loops" before we enter
the debugger.
Signed-off-by: Douglas Anderson
---
kernel/debug/debug_core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/debug/debug_core.c b/kernel/debu
usleep_range().
- There aren't lots of places that use usleep_range(), since many people
call either msleep() or udelay().
Reported-by: Tao Huang
Signed-off-by: Douglas Anderson
---
Changes in v2:
- Fixed stupid bug that snuck in before posting
- Use ktime_before
- Remove delta from th
usleep_range().
- There aren't lotsof places that use usleep_range(), since many people
call either msleep() or udelay().
Reported-by: Tao Huang
Signed-off-by: Douglas Anderson
---
kernel/time/timer.c | 23 ---
1 file changed, 20 insertions(+), 3 deletions(-)
diff
On some rk3399 boards GPIO0_A0 is hooked up to a 32 kHz clock. This can
be used as the source for various clocks in the system.
Add a pinmux so boards can get this pin properly configured.
Signed-off-by: Douglas Anderson
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 6 ++
1 file changed
the device tree property
"settle-time-up-us" which allows us to specify a fixed delay after a
voltage increase.
We don't add an option of a fixed delay on the way down for now because
the way down is probably modelled best with a ramp rate, not a fixed
delay.
Signed-off-by: Matthias Ka
e() call
until we've finished delaying. A future patch atop this one might
choose to return more immediately and let the voltages fall in the
background. That would possibly to allow us to cancel a slow downward
decay if there was a request to go back up.
Signed-off-by: Douglas Anderson
---
i2c_adapt_div()
at resume time and be done with it.
NOTE: On rk3399 on ports whose power was lost, I put printouts in at
resume time. I saw things like:
before: con=0x00010300, div=0x00060006
after: con=0x00010200, div=0x00180025
Signed-off-by: Douglas Anderson
---
Tested on chromeos-
cit in our request so we're not relying on the firmware.
With the current firmware I tested with this patch has no expected
impact but it's probably good to do anyway.
Signed-off-by: Douglas Anderson
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 ++--
1 file changed, 2 insertions(+),
t;clk: rockchip: fix incorrect
aclk_emmc source gate bits on rk3399"). Before that change we were
presumably not actually gating any of these clocks because we were
setting the wrong gate.
Signed-off-by: Xing Zheng
Signed-off-by: Douglas Anderson
---
drivers/clk/rockchip/clk-rk3399.c
I believe this brings some resolution to the problems reported before.
See the commit 6fc09244d74d ("mmc: sdhci-of-arasan: Revert: Always power
the PHY off/on when clock changes").
Signed-off-by: Douglas Anderson
Acked-by: Adrian Hunter
Reviewed-by: Shawn Lin
---
Tested on chromeos kern
egister for the "big" cores in the "GPU" slot. It
was never initting the GPU counts.
Note: this change assumes that ATF will actually set these values at
boot, as I'm proposing in <http://crosreview.com/372381>.
Signed-off-by: Douglas Anderson
---
drivers/soc/roc
I believe this brings some resolution to the problems reported before.
See the commit 6fc09244d74d ("mmc: sdhci-of-arasan: Revert: Always power
the PHY off/on when clock changes").
Signed-off-by: Douglas Anderson
---
Tested on chromeos kernel-4.4 with backports.
dr
get
yourself a reliable and glitch-free regulator.
Fixes: 4773be185a0f ("regulator: pwm-regulator: Add support for
continuous-voltage")
Signed-off-by: Douglas Anderson
---
Note: I don't have a board that works against mainline and can use the
PWM regulator in continuous mode without B
neral the pen switch could be used by the software on the device to
kick off any number of actions when the pen is inserted or removed.
Signed-off-by: Douglas Anderson
---
include/uapi/linux/input-event-codes.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/linux/input-event-co
tens of uS. 1000 is way too much. We'll try to be dynamic
and use 10%
Signed-off-by: Douglas Anderson
---
Note that this patch is atop Boris's recent PWM regulator fixes. If
desired it wouldn't be too hard to write it atop the old code, though
quite honestly anyone using a PWM reg
e 150 MHz series should still work fine even without this
one.
Signed-off-by: Douglas Anderson
---
drivers/mmc/host/sdhci-of-arasan.c | 21 ++---
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/drivers/mmc/host/sdhci-of-arasan.c
b/drivers/mmc/host/sdhci-of-arasa
Two times out of 2000 reboots I ran into the error message
"rockchip_emmc_phy_power: dllrdy timeout". Presumably there is some
corner case where the DLL just takes a little longer to timeout. Let's
give it even more time to handle these corner cases.
Signed-off-by: D
ous) with Kishon's Ack as appropriate.
Douglas Anderson (3):
mmc: sdhci-of-arasan: Revert: Always power the PHY off/on when clock
changes
phy: rockchip-emmc: Be tolerant to card clock of 0 in power on
phy: rockchip-emmc: Wait even longer for the DLL to lock
drivers/mmc/host/sdhci-of-arasan.c
cycle the PHY.
Note: this patch should help with suspend/resume where the system will
try to turn the PHY back on when the clock is 0.
Signed-off-by: Douglas Anderson
---
drivers/phy/phy-rockchip-emmc.c | 59 ++---
1 file changed, 37 insertions(+), 22 deleti
et the corecfg also include a reference to the syscon.
[1]: https://arasan.com/wp-content/media/eMMC-5-1-Total-Solution_Rev-1-3.pdf
Signed-off-by: Douglas Anderson
Acked-by: Rob Herring
Reviewed-by: Heiko Stuebner
Reviewed-by: Shawn Lin
---
Changes in v3:
- Add collected tags
Changes in v2:
-
From: Brian Norris
Some of the spacing was wrong (spaces instead of tabs), and due to
longer entries added later, the columns weren't aligned. Let's get
everything consistent.
Signed-off-by: Brian Norris
Signed-off-by: Douglas Anderson
Acked-by: Kishon Vijay Abraham I
Reviewed
xport the SDHCI card clock using a standard device tree mechanism
so that the PHY can get access to it and query the card clock frequency.
Signed-off-by: Douglas Anderson
Acked-by: Rob Herring
Reviewed-by: Heiko Stuebner
---
Changes in v3:
- Add collected tags
Changes in v2:
- Adjust commit me
Norris
Signed-off-by: Douglas Anderson
Acked-by: Kishon Vijay Abraham I
Tested-by: Heiko Stuebner
---
Changes in v3:
- Add Brian's PHY patches into my series
Changes in v2: None
drivers/phy/phy-rockchip-emmc.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/driver
From: Shawn Lin
Signal integrity analysis has suggested we set these values. Do this in
power_on(), so that they get reconfigured after suspend/resume.
Signed-off-by: Shawn Lin
Signed-off-by: Brian Norris
Signed-off-by: Douglas Anderson
Acked-by: Kishon Vijay Abraham I
Tested-by: Heiko
There's no reason to store the return value of rockchip_emmc_phy_power()
in a variable nor to check it. Just return it.
Signed-off-by: Douglas Anderson
Acked-by: Kishon Vijay Abraham I
Reviewed-by: Shawn Lin
Tested-by: Heiko Stuebner
---
Changes in v3:
- Add collected tags
Changes
On rk3399 we'd like to be able to properly set corecfg registers in the
Arasan SDHCI component. Specify the syscon to enable that.
Signed-off-by: Douglas Anderson
Tested-by: Heiko Stuebner
---
Changes in v3:
- Add collected tags
Changes in v2: None
arch/arm64/boot/dts/rockchip/rk3399
s series, since
performance is still good but signal integrity problems are less
prevelant at 150 MHz.
[1]: https://arasan.com/wp-content/media/eMMC-5-1-Total-Solution_Rev-1-3.pdf
Signed-off-by: Douglas Anderson
Acked-by: Kishon Vijay Abraham I
---
Changes in v3:
- Use phy_init / phy_exit (Heiko)
r
SoCs. Note that a specific compatible string for rk3399 is already in
use and so we add that to the table to match rk3399.
[1]: https://arasan.com/wp-content/media/eMMC-5-1-Total-Solution_Rev-1-3.pdf
Signed-off-by: Douglas Anderson
Reviewed-by: Heiko Stuebner
Reviewed-by: Shawn Lin
Tested-
the idea
is the same.
[1]: https://arasan.com/wp-content/media/eMMC-5-1-Total-Solution_Rev-1-3.pdf
Signed-off-by: Douglas Anderson
Acked-by: Kishon Vijay Abraham I
Acked-by: Rob Herring
Reviewed-by: Heiko Stuebner
---
Changes in v3:
- Add collected tags
Changes in v2:
- List out clocks and cloc
Previous changes in this series allowed exposing the card clock from the
rk3399 SDHCI device and allowed consuming the card clock in the rk3399
eMMC PHY. Hook things up in the main rk3399 dtsi file.
Signed-off-by: Douglas Anderson
Tested-by: Heiko Stuebner
---
Changes in v3:
- Add collected
wn)
Brian Norris (2):
phy: rockchip-emmc: configure default output tap delay
phy: rockchip-emmc: reindent the register definitions
Douglas Anderson (11):
phy: rockchip-emmc: Increase lock time allowance
mmc: sdhci-of-arasan: Always power the PHY off/on when clock changes
Documentation: m
s the PHY a good chance to query our clock.
Signed-off-by: Douglas Anderson
Reviewed-by: Heiko Stuebner
Tested-by: Heiko Stuebner
---
Changes in v3:
- Add dependency on COMMON_CLK (actually in v2.1) (Guenter Roeck)
- Add collected tags
Changes in v2: None
drivers/mmc/host/Kconfig
nd will cause problems if picked without that change.
Signed-off-by: Douglas Anderson
Reviewed-by: Shawn Lin
Tested-by: Heiko Stuebner
---
Changes in v3:
- Add collected tags
Changes in v2: None
drivers/mmc/host/sdhci-of-arasan.c | 23 ---
1 file changed, 8 insertions(+), 1
ck was set to at least
50 MHz before, though this reliance wasn't documented anywhere.
This change will be even more useful in future changes where we actually
need to be able to wait for a DLL lock at slower clock speeds.
Signed-off-by: Douglas Anderson
Acked-by: Kishon Vijay Abraham I
Rev
's bump up to 4
(approx 90 degree phase?). If we need to configure this any further
(e.g., based on board or speed factors), we may need to consider a
device tree representation.
Suggested-by: Shawn Lin
Signed-off-by: Brian Norris
Signed-off-by: Douglas Anderson
Acked-by: Kishon Vijay Abrah
s the PHY a good chance to query our clock.
Signed-off-by: Douglas Anderson
---
Note: just sending the one quick fix as v2.1. If further spins are
needed I'll send out a full v3.
Changes in v2.1:
- Add dependency on COMMON_CLK (Guenter Roeck)
Changes in v2: None
drivers/mmc/ho
ctually route from rk3288 back to rk3288. Presumably
on rk3399 this is simply not needed since the pins don't appear to exist
there.
Signed-off-by: Douglas Anderson
---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 10 ++
1 file changed, 10 insertions(+)
diff --git a/arch/arm64/boot/dt
ck was set to at least
50 MHz before, though this reliance wasn't documented anywhere.
This change will be even more useful in future changes where we actually
need to be able to wait for a DLL lock at slower clock speeds.
Signed-off-by: Douglas Anderson
---
Changes in v2:
- Indicate
et the corecfg also include a reference to the syscon.
[1]: https://arasan.com/wp-content/media/eMMC-5-1-Total-Solution_Rev-1-3.pdf
Signed-off-by: Douglas Anderson
Acked-by: Rob Herring
---
Changes in v2:
- Clean up description of rk3399 PHY (Shawn)
- Add Rob Herring's Ack.
.../devicetree/
On rk3399 we'd like to be able to properly set corecfg registers in the
Arasan SDHCI component. Specify the syscon to enable that.
Signed-off-by: Douglas Anderson
---
Changes in v2: None
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/
s series, since
performance is still good but signal integrity problems are less
prevelant at 150 MHz.
[1]: https://arasan.com/wp-content/media/eMMC-5-1-Total-Solution_Rev-1-3.pdf
Signed-off-by: Douglas Anderson
---
Changes in v2:
- Warn if we're more than 15 MHz from ideal rate (Shawn)
- Mo
xport the SDHCI card clock using a standard device tree mechanism
so that the PHY can get access to it and query the card clock frequency.
Signed-off-by: Douglas Anderson
Acked-by: Rob Herring
---
Changes in v2:
- Adjust commit message wording (Rob)
- Add Rob Herring's Ack.
Documentation/
Previous changes in this series allowed exposing the card clock from the
rk3399 SDHCI device and allowed consuming the card clock in the rk3399
eMMC PHY. Hook things up in the main rk3399 dtsi file.
Signed-off-by: Douglas Anderson
---
Changes in v2: None
arch/arm64/boot/dts/rockchip/rk3399
the idea
is the same.
[1]: https://arasan.com/wp-content/media/eMMC-5-1-Total-Solution_Rev-1-3.pdf
Signed-off-by: Douglas Anderson
---
Changes in v2:
- List out clocks and clock names (Rob)
Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt | 9 +
1 file changed, 9 insertions(
There's no reason to store the return value of rockchip_emmc_phy_power()
in a variable nor to check it. Just return it.
Signed-off-by: Douglas Anderson
---
Changes in v2:
- Move code cleanup before set phyctrl_frqsel based on card clock (Shawn)
drivers/phy/phy-rockchip-emmc.c
s the PHY a good chance to query our clock.
Signed-off-by: Douglas Anderson
---
Changes in v2: None
drivers/mmc/host/sdhci-of-arasan.c | 125 -
1 file changed, 122 insertions(+), 3 deletions(-)
diff --git a/drivers/mmc/host/sdhci-of-arasan.c
b/drivers/mmc
r
SoCs. Note that a specific compatible string for rk3399 is already in
use and so we add that to the table to match rk3399.
[1]: https://arasan.com/wp-content/media/eMMC-5-1-Total-Solution_Rev-1-3.pdf
Signed-off-by: Douglas Anderson
---
Changes in v2:
- Reorder includes (Shawn)
drivers
nd will cause problems if picked without that change.
Signed-off-by: Douglas Anderson
---
Changes in v2: None
drivers/mmc/host/sdhci-of-arasan.c | 23 ---
1 file changed, 8 insertions(+), 15 deletions(-)
diff --git a/drivers/mmc/host/sdhci-of-arasan.c
b/drivers/
Shawn)
- Fix typo USB => SDHCI (Shawn)
Douglas Anderson (11):
phy: rockchip-emmc: Increase lock time allowance
mmc: sdhci-of-arasan: Always power the PHY off/on when clock changes
Documentation: mmc: sdhci-of-arasan: Add soc-ctl-syscon for corecfg
regs
mmc: sdhci-of-arasan: Properly
701 - 800 of 997 matches
Mail list logo