From: Wolfram Sang <wsa+rene...@sang-engineering.com>
Move the one debug macro to the generic wlan header.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/staging/ks7010/ks7010_config.c | 1 -
drivers/staging/ks7010/ks7010_sdio.c | 1 -
drivers/st
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
We have sane defaults, so we don't need to bail out if there is no
config file. Note that the config file should go away completely in
favour of configuration mechanisms already upstream.
Signed-off-by: Wolfram Sang <wsa+ren
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
No need for an open coded one.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/staging/ks7010/Makefile | 2 +-
drivers/staging/ks7010/ks7010_sdio.c | 9 +
drivers/staging/ks7010/ks_deb
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
Use proper type for size_t.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/staging/ks7010/ks7010_config.c | 2 +-
drivers/staging/ks7010/ks7010_sdio.c | 2 +-
2 files changed, 2 insertions(+),
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
The loop variable was defined but not really used. Fix this.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/staging/ks7010/ks_hostif.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --g
> > 1. The SDHI/MMC clocks now run much slower than before. Perhaps this is
> > intentional, and a consequence of finding the best way to drive the SD
> > card at the target frequency?
>
> I don't think is generally a problem. Probably even saves a little
> power.
If you insert an
> > That seems like a bug in the clock driver. If it doesn't have
> > independent dividers for each clock client then it shouldn't allow any
> > client to change the frequency.
So, we need MSTP clocks which do not use CLK_SET_RATE_PARENT on r8a7740.
Probably the best way is to use the
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
Create the "sd" clock and connect the SDHI MSTP clocks to it. Those
shouldn't be connect to HP directly, because they shouldn't be allowed
to change the rate of the HP clock.
Signed-off-by: Wolfram Sang <wsa+rene...@s
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
Create a virtual "sd" clock to feed the MSTP clocks for the SDHI cores.
MSTP clocks can change the rate of their parents which is undesired for
a generic clock as HP. So, add this static "sd" clock where the MSTP
Here is a less intrusive approach of handling the r8a7740 flaw when handling
SDHI clocks. Let me know what you think of it.
Not tested due to no hw!
Thanks,
Wolfram
Wolfram Sang (2):
clk: renesas: r8a7740: add an "sd" clock
ARM: shmobile: r8a7740: add "sd" clock a
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
The wrong values come from an old datasheet. Fix them.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
arch/arm/boot/dts/r8a7790.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/a
On Fri, Apr 15, 2016 at 10:41:57PM +0200, Wolfram Sang wrote:
> > > That seems like a bug in the clock driver. If it doesn't have
> > > independent dividers for each clock client then it shouldn't allow any
> > > client to change the frequency.
>
> So, we
> Whether we want a clock to influence its parent is policy, not hardware
> description. So IMHO it doesn't belong in DT.
Yeah, I agree to that.
> IMHO it's more worthwhile to convert r8a7740 to use the CPG/MSSR driver.
> There it can be handled easily by adding a flag to the mssr_mod_clk
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
Looking at the backlogs, I am not the only one who missed that the above
functions do not read u32 from one register, but create a virtual u32
from reading to adjacent u16 registers (which depending on 'bus_shift'
can be up to 8 byte
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
BIT() makes it easier to match the bits to the datasheet. This is
especially important here, since some variants have different names in
their datasheets (like with Renesas R-Car).
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engine
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
Now that reading CTL_STATUS is consistent, we can remove CTL_STATUS2 and
document how this is handled internally.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/mmc/host/tmio_mmc.h | 3 ++-
1 fil
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
This bit has a different meaning in SDHI and original TMIO. Document
that and use the proper naming.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/mmc/host/sh_mobile_sdhi.c | 3 ++-
drivers/mmc/hos
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
To prevent confusion, use the virtual u32 CTL_STATUS in card_busy() the
same way as in other parts of this driver.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/mmc/host/tmio_mmc.h | 3 +--
driv
complex and easier to work with.
Tested on Renesas R-Car Gen2 and Gen3. It is on top of my not-yet applied
series "[PATCH 0/6] mmc: tmio/sdhi: clean up cruft". A complete branch is here:
git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/sdhi-uhs
Wolfram
Wolfr
> Hence I think it should be handled in the driver.
I knew it ;)
If we change the MSTP driver, we should do it in a generic way. MSTP
clocks which should/should not change the parent's clock rate can be
anywhere. My best bet so far would be encoding this in DT, because all
the heuristics I
> Can you please give more detail about this r8a7740 issue? Just
> "r8a7740 flaw" does not make me understand.
Ah, sorry. This RFC series was merely meant as a "right direction?"
series for Geert, thus the short CC list. The full series will have
better documentation.
The flaw is: On r8a7740,
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
I have two SDIO WLAN cards which specify being SDIO Rev. 1.1 cards but
their FUNCE tuple reports the smaller size of a Rev 1.0 card. So,
enforce 1.0 on these cards to avoid reading the not present registers.
They are not really used anyh
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
I have some more additions planned for this driver, so I'd like to get
notified of other changes and coordinate them. Drop Ian as maintainer
because he hasn't been involved in development for a while. Thanks for
all the initial work, of
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
Tested on a Salvator-X board with a Spectec SDW-823 WLAN card.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/mmc/host/sh_mobile_sdhi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --g
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
Since the watchdog framework centrializes the IOCTL interfaces of device
drivers now, SETPRETIMEOUT and GETPRETIMEOUT need to be added in the
common code.
Signed-off-by: Robin Gong <b38...@freescale.com>
Signed-off-by: Wolfram Sa
From: Vladimir Zapolskiy <vladimir_zapols...@mentor.com>
Panic watchdog pretimeout governor, on watchdog pretimeout event the
kernel shall panic.
Signed-off-by: Vladimir Zapolskiy <vladimir_zapols...@mentor.com>
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
From: Vladimir Zapolskiy <vladimir_zapols...@mentor.com>
Noop watchdog pretimeout governor, only an informational message is
added to the kernel log buffer.
Signed-off-by: Vladimir Zapolskiy <vladimir_zapols...@mentor.com>
Signed-off-by: Wolfram Sang <wsa+rene...@sang-
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
Give devices which do not have hardware support for pretimeout at least a
software version of it.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/watchdog/softdog.c | 20 +++-
1 file
we want to introduce select/poll support
only for pretimeouts?
Other ideas?
Thanks,
Wolfram
Vladimir Zapolskiy (1):
watchdog: pretimeout: add userspace notifier pretimeout governor
Wolfram Sang (1):
watchdog: dev: add helper for creating uevent on dev
drivers/watchdog/Kconfig
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
The change adds a simple watchdog pretimeout framework infrastructure,
its purpose is to allow users to select a desired handling of watchdog
pretimeout events, which may be generated by a watchdog driver.
By design every watchdog pret
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
Mechanisms like pretimeout governors may want to notify userspace via
uevents. Add a helper because all the needed data is private to the
watchdog device. To allow calling it in atomic contexts, put actual
signalling to a workqueue.
From: Vladimir Zapolskiy <vladimir_zapols...@mentor.com>
Userspace notifier watchdog pretimeout governor, on watchdog
pretimeout event sends a notification to userspace for further
handling.
Signed-off-by: Vladimir Zapolskiy <vladimir_zapols...@mentor.com>
Signed-off-by: Wolfram Sa
good to go in and we could improve incrementally from here:
Tested-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
Maybe Ulf can have another high-level view on those. I guess he is more
experienced with the tuning stuff?
Thanks,
Wolfram
On Fri, Aug 12, 2016 at 06:40:23PM +0200, Wolfram Sang wrote:
> We also need to revert the dynamic OF change, so we get a consistent
> state again. Otherwise, we might have two devices enabled e.g. after
> pinctrl setup fails.
>
> Signed-off-by: Wolfram Sang <wsa+rene...@sa
> +static int tmio_mmc_execute_tuning(struct mmc_host *mmc, u32 opcode)
> +{
> + struct tmio_mmc_host *host = mmc_priv(mmc);
> + unsigned int num;
> + int i, ret = 0;
> + bool *tap;
> +
> + if (!host->init_tuning || !host->select_tuning)
Check host->prepare_tuning, too?
> +
We also need to revert the dynamic OF change, so we get a consistent
state again. Otherwise, we might have two devices enabled e.g. after
pinctrl setup fails.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/i2c/muxes/i2c-demux-pinctrl.c | 4 +++-
1 file chan
> Wasn't this fixed by
>
> Commit: 869ec056fa8450184423c8076e0a342db127795c
Ooops, yes. Sorry, overlooked this new 'if' after rebasing from rc1 to
rd/master :(
signature.asc
Description: PGP signature
We use the helper function which populates the smp_init pointer only in
case of SMP.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
arch/arm/mach-shmobile/setup-r8a7790.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/setup-r
We use the helper function which populates the smp_init pointer only in
case of SMP.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
arch/arm/mach-shmobile/setup-r8a7791.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/setup-r
platform_can_secondary_boot() is only available for SMP, so guard the smp_init
function with some ifdeffery to allow building without SMP.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
This is the easiest solution, but I wonder if it is the proper one? It might
make
;
> Signed-off-by: Simon Horman <horms+rene...@verge.net.au>
Reviewed-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
signature.asc
Description: PGP signature
On Wed, Jul 20, 2016 at 02:06:24PM +0200, Wolfram Sang wrote:
>
> > Wolfram, Dirk: any comments?
>
> Looks proper.
>
> Reviewed-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
>
> I couldn't really test it, though, since I still have problems with the
>
From: Wolfram Sang <wsa+rene...@sang-engineering.com>
Define the upper limit otherwise the driver cannot utilize max speeds.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 4
1 file changed, 4 insertions(+)
diff
> - reg = <0 0xee10 0 0x200>;
> + reg = <0 0xee10 0 0x384>;
All other r8a779x.dtsi have 0x328 there.
signature.asc
Description: PGP signature
> Wolfram, Dirk: any comments?
Looks proper.
Reviewed-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
I couldn't really test it, though, since I still have problems with the
Gen3 DMA series.
signature.asc
Description: PGP signature
> git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git
> topic/sdhi-gen3-dma
Strange, with this branch and the attached config, the driver fails to
register to the driver core?? Reverting this series, the driver gets
registered (and probed) again.
#
# Automatically generated file;
> Could you kindly share the recent status of the MMC support for RCar3? Esp.
> the eMMC support on the Salvator-X? From time to time I get this question
> from several people ;)
Nothing changed since last time. Meaning that it could work in 4-bit
mode (haven't tested it, though, and am on the
> The first SDHI channel (ee10.sd) doesn't seem to be affected
> by the problem.
Hmm, I sadly don't have any docs about 73a4 and/or its SDHI variants.
I'll ask around.
signature.asc
Description: PGP signature
ing capabilites. But since rebinding was a major motivation for
this series to be factored out of a bigger one:
Tested-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
signature.asc
Description: PGP signature
Making sure we match the actual register name.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/mmc/host/tmio_mmc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
index b20b451a
Halting the kernel on an unsupported stop command seems overkill, report
the error and say what we already did (due to autocmd12) instead.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/mmc/host/tmio_mmc_pio.c | 9 +
1 file changed, 5 insertions
Don't use hardcoded values.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/mmc/host/tmio_mmc.h | 4
drivers/mmc/host/tmio_mmc_pio.c | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mm
. A branch can be found here:
git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git
renesas/topic/sdhi-autocmd12-resp
Thanks and all the best,
Wolfram
Wolfram Sang (4):
mmc: host: tmio: use defines for CTL_STOP_INTERNAL_ACTION values
mmc: host: tmio: fix minor typos in a comment
After we received the dataend interrupt, R1 response register carries
the value from the automatically generated stop command. Report that
info back to the MMC block layer, so we will be notified in case of e.g.
ECC errors which happened during the last transfer.
Signed-off-by: Wolfram Sang <
explicitly. This also removes the overhead if pretimeout
support is not used because it will now be compiled away (saving ~10% on
ARM32).
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
Change since V1:
* use IS_DEFINED as if-conditions, removing the need for #ifdef
I have to
detect logic.
>
> Signed-off-by: Chris Brandt <chris.bra...@renesas.com>
Reviewed-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
signature.asc
Description: PGP signature
andt <chris.bra...@renesas.com>
Reviewed-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
signature.asc
Description: PGP signature
> The issue happened with renesas-devel, i.e. without those patches.
> It was mentioned during last core meeting, so have a look at that log.
No need to. As I said, the behaviour is expected without the patches.
Thanks for the update!
signature.asc
Description: PGP signature
> > Do you already fetch from Ulf's kernel.org tree? He switched away from
> > the Linaro tree for MMC for a while. I only realized when he complained
"since a while" not "for a while", of course.
> Thanks, I had not realised that. I've pulled the kernel.org tree.
So, there is hope for the
> > Do you have the HS200 enablement patches in that branch? They are
> > currently in -next.
>
> I tried mmc/next (but didn't notice anything special there).
> Which patches should I be looking for?
The series starting with 59c21074b582aa ("mmc: sh_mobile_sdhi: simplify
accessing DT data") up
> I have tested with "the new mmc/next" and things seem better.
Good. The issue you saw is expected when you have not the enablement
patches in place.
> I am still of a mind to drop the M3-W patch of this series because unless
> we can control the order that things are merged into Linus's tree
This squash combines commits for Magnus' original driver, several
> "groups" definitions and minor fixes on top to forward-port it to a more
> recent kernel (v4.10)
>
> Signed-off-by: Magnus Damm <d...@opensource.se>
> Signed-off-by: Wolfram Sang <w...@sang-eng
> Using renesas-next without mmc-next I see the problem above on the M3-W.
> Using renesas-next with mmc-next I do not see the problem above.
> Using v4.10-rc2 I also do not see the problem above.
OK. So there is no problem with the code, at least.
> So I believe we should delay the integration
On Thu, Jan 26, 2017 at 09:47:31AM +0100, Simon Horman wrote:
> Explicitly list per-SoC binding for r8a7796. No driver change
> is required as the initialisation sequence is currently the same
> as for the R-Car Gen3 fallback binding.
>
> Signed-off-by: Simon Horman
On Thu, Jan 26, 2017 at 11:01:17AM +0100, Simon Horman wrote:
> On Fri, Jan 13, 2017 at 09:39:28AM +0100, Wolfram Sang wrote:
> > > Sorry for missing these.
> > > I have queued them up for v4.11.
> >
> > Thank you!
>
> On my r8a7796/salvator-x I see
ne...@verge.net.au>
Acked-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
signature.asc
Description: PGP signature
> Thanks, applied patch1 and patch2 for next. Patch3 is for Simon, I
> guess!? (And I can add Rob's ack afterwards).
Can you add my tags as well. They got dropped somehow:
Reviewed-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
signature.asc
Description: PGP signature
Since the driver is now merged into next, we can add the DTS snipplets as well.
Changes from V6:
* rebased to latest renesas/arm64-dt-for-v4.11
* changed critical temp from 90° to 120° which is the state in the latest BSP
Wolfram Sang (2):
arm64: dts: r8a7795: Add R-Car Gen3 thermal support
edubez...@gmail.com>
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
arch/arm64/boot/dts/renesas/r8a7796.dtsi | 58
1 file changed, 58 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi
b/arch/arm64/boot/dts/renes
edubez...@gmail.com>
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
arch/arm64/boot/dts/renesas/r8a7795.dtsi | 58
1 file changed, 58 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi
b/arch/arm64/boot/dts/renes
> It sounds like your suggestion is to just put the HW description in
> the DT bindings, but move the dirty details into the driver.
>
> Keep in DT:
>
> +- clocks: Most controllers only have 1 clock source per channel. However, on
> + some variations of this controller, the internal card
> > Is this clock solely about card detection? So in cases when you have a
> > GPIO card detect, the clock isn't needed?
> >
> > Just trying to understand things a bit better...
>
> According to the hardware manual, enabling the "core" clock but not the
> "cd" clock is not a valid setting. So
> The problem I see is the following logged to the console
> (which makes the console semi-unusable).
>
> sh_mobile_sdhi ee14.sd: timeout waiting for hardware interrupt (CMD13)
Just to make sure: with the HS200 enablement patches present?
signature.asc
Description: PGP signature
Coverity reported (CID 1397992) this self-assignment. I think the code
stays readable even with the assignments removed.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
sound/soc/sh/rcar/core.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sound/soc/sh/rcar/co
Currently, this function cannot fail for the ADG case. Still, let's
apply defensive programming techniques to make sure we fail gracefully
whenever rsnd_mod_init() gets extended with another failure case.
Reported by Coverity (CID 1397893).
Signed-off-by: Wolfram Sang <wsa+rene...@s
is
done. In the callback, we then use a completion to make sure the SD
access has already ended. Then, we proceed as before.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
Changes since V1/RFC:
* removed #ifdef DEBUG
* rebased to latest mmc/next
* did some more perfo
and SD access are in sync (2017-02-17
18:43:28 +0100)
Wolfram Sang (1):
mmc: host: tmio: ensure end of DMA and SD access are in sync
drivers/mmc/host/tmio_mmc.h | 2 +-
drivers/mmc/host/tmio_mmc_dma.c | 58
Introduce a helper function to not only check the error value but also
error bits of a R1 response. Use the helper for the stop command.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
So, here is a first draft of what we talked about recenlty. Let me know what
you
Don't use hardcoded values.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/mmc/host/tmio_mmc.h | 4
drivers/mmc/host/tmio_mmc_pio.c | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mm
Making sure we match the actual register name.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/mmc/host/tmio_mmc.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
index b20b451a
Halting the kernel on an unsupported stop command seems overkill, report
the error and say what we already did (due to autocmd12) instead.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
drivers/mmc/host/tmio_mmc_pio.c | 9 +
1 file changed, 5 insertions
After we received the dataend interrupt, R1 response register carries
the value from the automatically generated stop command. Report that
info back to the MMC block layer, so we will be notified in case of e.g.
ECC errors which happened during the last transfer.
Signed-off-by: Wolfram Sang <
/linux/kernel/git/wsa/linux.git
renesas/topic/sdhi-autocmd12-resp
Thanks and all the best,
Wolfram
[1] http://elinux.org/Tests:SDHI-autocmd12-responses
Wolfram Sang (4):
mmc: host: tmio: use defines for CTL_STOP_INTERNAL_ACTION values
mmc: host: tmio: fix minor typos in a comment
mmc
-07 11:47:26 +0100)
Wolfram Sang (4):
mmc: host: tmio: use defines for CTL_STOP_INTERNAL_ACTION values
mmc: host: tmio: fix minor typos in a comment
mmc: host: tmio: don't BUG on unsupported stop commands
mmc
Shimoda-san, Ulf,
On Tue, Feb 14, 2017 at 10:06:47AM +, Yoshihiro Shimoda wrote:
> Hi,
>
> > From: Wolfram Sang [mailto:wsa+rene...@sang-engineering.com]
> > Sent: Tuesday, February 14, 2017 3:04 AM
> >
> > After we received the dataend interrupt, R1 response
> > -/* Definitions for values the CTRL_STATUS register can take. */
> > +/* Definitions for values the CTL_STATUS register can take */
> > #define TMIO_STAT_CMDRESPENDBIT(0)
> > #define TMIO_STAT_DATAEND BIT(2)
> > #define TMIO_STAT_CARD_REMOVE BIT(3)
>
> Is a similar update for
Hi Ulf,
On Thu, Feb 16, 2017 at 08:57:36AM +0100, Ulf Hansson wrote:
> On 15 February 2017 at 16:02, Wolfram Sang <w...@the-dreams.de> wrote:
> >
> >> > I see. Ulf, do you think it makes sense to extend the condition when to
> >> > call mmc_blk_cmd_recovery(
On Thu, Feb 16, 2017 at 09:28:24AM +0100, Ulf Hansson wrote:
> On 15 February 2017 at 19:05, Wolfram Sang
> <wsa+rene...@sang-engineering.com> wrote:
> > The current code assumes that DMA is finished before SD access end is
> > flagged. Thus, it schedules the 'dma_complete
is
done. In the callback, we then use a completion to make sure the SD
access has already ended. Then, we proceed as before.
Signed-off-by: Wolfram Sang <wsa+rene...@sang-engineering.com>
---
I tried various synchronization approaches and liked this one best.
There are a couple of reasons this
are in sync (2017-02-15
23:17:55 +0100)
Wolfram Sang (1):
mmc: host: tmio: ensure end of DMA and SD access are in sync
drivers/mmc/host/tmio_mmc.h | 2 +-
drivers/mmc/host/tmio_mmc_dma.c | 70
> > #1 and #3 look like they are the same thing (except #3 is enabled on power
> > on reset). The renesas_wdt.c uses the register names from #1.
> > Is the idea that you only use #3 to make sure your systems boots and get
> > into
> > Linux, then from there you use #1 and stop #3 (hence no
> larger. Therefore I would like to ask Morimoto-san and/or Khiem to
> provide or proxy testing of this less accurate formula and feedback if
> it's OK, let me know if there is anything I can do to help out.
We now got the results of Renesas internal testing via internal
channels. So, for this
> So, should sh_mobile_sdhi_remove() be changed to call
> sh_mobile_sdhi_clk_disable()?
Give me a minute, I already did a patch for this :)
signature.asc
Description: PGP signature
On Tue, Jan 17, 2017 at 02:59:39PM -0500, Chris Brandt wrote:
> In the case of a single clock source, you don't need names. However,
> if the controller has 2 clock sources, you need to name them correctly
> so the driver can find the 2nd one.
>
> Signed-off-by: Chris Brandt
> + * Copyright (C) 2016 Renesas Electronics Corporation
> + * Copyright (C) 2016 Jacopo Mondi
In case you need to resend: 2016-17?
> > and then in the code do:
> >
> > struct *cd_clk;
> > cd_clk = devm_clk_get(>dev, "cd");
> > if (cd_clk) {
> > clk_prepare_enable(cd_clk);
> > }
> >
> > (this simple 1-line fix patch is getting a lot more complicated)
>
> Disclaimer: I don't
> The reason is that would then keep me from having to modify the existing
> functions sh_mobile_sdhi_clk_enable/disable.
Why do you prefer this? I may be missing something but a small if-block
per function are not expensive IMO.
> Is anyone going to have an issue if I turn the card-detect
> If we handle them as one, won't we miss card detect events due to the
> card detect clock being disabled while SDHI is idle?
You mean this?
1208 /*
1209 * While using internal tmio hardware logic for card detection, we
need
1210 * to ensure it stays powered for it
Here is a small series with two minor improvements (patches 1+2) and one bigger
change (patch 3) for SDIO handling with TMIO/SDHI. Since RFC, I addressed all
comments (Thanks Simon!) and since it is needed for the WLAN cards, I think it
should go in now.
Wolfram Sang (3):
mmc: host: tmio
tmio_mmc_sdio_irq() is not used as a seperate irq handler anymore, so we
can make it similar to the other irq helper functions, namely:
* only give the host as argument function which is what it really needs
* prefix function name with __
Signed-off-by: Wolfram Sang <wsa+rene...@s
301 - 400 of 1697 matches
Mail list logo