From: "Pavel Machek" <pavel@ucw.cz>
To: Biju Das <biju.das.jz@bp.renesas.com>
Cc: cip-dev@lists.cip-project.org,
Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
Pavel Machek <pavel@denx.de>,
Chris Paterson <chris.paterson2@renesas.com>,
Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [cip-dev] [PATCH 4.19.y-cip 1/2] ASoC: rsnd: fixup SSI clock during suspend/resume modes
Date: Mon, 20 Jul 2020 22:59:15 +0200 [thread overview]
Message-ID: <20200720205915.GA9879@amd> (raw)
In-Reply-To: <1595267543-32854-1-git-send-email-biju.das.jz@bp.renesas.com>
[-- Attachment #1.1: Type: text/plain, Size: 1950 bytes --]
Hi!
> commit 624d1a7cd8991e33dad96ab4629a52c412540e65 upstream.
>
> Prepare <-> Cleanup functions pair has balanced calls.
> But in case of suspend mode no call to rsnd_soc_dai_shutdown()
> function, so cleanup isn't called. OTOH during resume mode
> function rsnd_soc_dai_prepare() is called, but calling
> rsnd_ssi_prepare() is skipped (rsnd_status_update() returns zero,
> bacause was not cleanup before).
> We need to call rsnd_ssi_prepare(), because it enables SSI clocks
> by calling rsnd_ssi_master_clk_start().
>
> This patch allows to call prepare/cleanup functions always.
Ok, this is "interesting". It has something to do with rsnd_dai_call()
macro.
You really should not be programming drivers in preprocessor like
this.
OTOH patch is simple enough, and only affects "your" code, so ... I'll
apply it if there are no other comments.
> #define __rsnd_mod_shift_hw_params 28 /* always called */
> #define __rsnd_mod_shift_pointer 28 /* always called */
> +#define __rsnd_mod_shift_prepare 28 /* always called */
> +#define __rsnd_mod_shift_cleanup 28 /* always called */
>
> #define __rsnd_mod_add_probe 0
> #define __rsnd_mod_add_remove 0
> -#define __rsnd_mod_add_prepare 1
> -#define __rsnd_mod_add_cleanup -1
> +#define __rsnd_mod_add_prepare 0
> +#define __rsnd_mod_add_cleanup 0
> #define __rsnd_mod_add_init 1
> #define __rsnd_mod_add_quit -1
> #define __rsnd_mod_add_start 1
> @@ -365,7 +365,7 @@ struct rsnd_mod {
> #define __rsnd_mod_call_probe 0
> #define __rsnd_mod_call_remove 0
> #define __rsnd_mod_call_prepare 0
> -#define __rsnd_mod_call_cleanup 1
> +#define __rsnd_mod_call_cleanup 0
> #define __rsnd_mod_call_init 0
> #define __rsnd_mod_call_quit 1
> #define __rsnd_mod_call_start 0
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
[-- Attachment #2: Type: text/plain, Size: 419 bytes --]
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#4940): https://lists.cip-project.org/g/cip-dev/message/4940
Mute This Topic: https://lists.cip-project.org/mt/75687530/4520388
Group Owner: cip-dev+owner@lists.cip-project.org
Unsubscribe: https://lists.cip-project.org/g/cip-dev/leave/8129055/727948398/xyzzy [cip-dev@archiver.kernel.org]
-=-=-=-=-=-=-=-=-=-=-=-
prev parent reply other threads:[~2020-07-20 20:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-20 17:52 [cip-dev] [PATCH 4.19.y-cip 1/2] ASoC: rsnd: fixup SSI clock during suspend/resume modes Biju Das
2020-07-20 17:52 ` [cip-dev] [PATCH 4.19.y-cip 2/2] arm64: defconfig: Enable additional support for Renesas platforms Biju Das
2020-07-20 21:00 ` Pavel Machek
2020-07-21 0:43 ` Nobuhiro Iwamatsu
2020-07-21 7:00 ` Biju Das
2020-07-21 13:42 ` Pavel Machek
2020-07-21 13:50 ` Biju Das
2020-07-20 20:59 ` Pavel Machek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200720205915.GA9879@amd \
--to=pavel@ucw.cz \
--cc=biju.das.jz@bp.renesas.com \
--cc=chris.paterson2@renesas.com \
--cc=cip-dev@lists.cip-project.org \
--cc=nobuhiro1.iwamatsu@toshiba.co.jp \
--cc=pavel@denx.de \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox