All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] ASoC: sh: remove discriminatory terms
@ 2020-07-13  5:07 Kuninori Morimoto
  2020-07-13  5:08 ` [PATCH 1/3] ASoC: rsnd: don't use discriminatory terms for function names Kuninori Morimoto
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Kuninori Morimoto @ 2020-07-13  5:07 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA


rsnd / fsi are using discriminatory terms.
This patch-set removes it as much as possible.
But, because DMA related API function name, it still exists.
I hope all these are removed someday.

Kuninori Morimoto (3):
  ASoC: rsnd: don't use discriminatory terms for function names
  ASoC: rsnd: don't use discriminatory terms for comment
  ASoC: fsi: don't use discriminatory terms for comment

 sound/soc/sh/fsi.c       |  4 ++--
 sound/soc/sh/rcar/core.c |  4 ++--
 sound/soc/sh/rcar/rsnd.h |  2 +-
 sound/soc/sh/rcar/ssi.c  | 28 ++++++++++++++--------------
 sound/soc/sh/rcar/ssiu.c |  6 +++---
 5 files changed, 22 insertions(+), 22 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 1/3] ASoC: rsnd: don't use discriminatory terms for function names
  2020-07-13  5:07 [PATCH 0/3] ASoC: sh: remove discriminatory terms Kuninori Morimoto
@ 2020-07-13  5:08 ` Kuninori Morimoto
  2020-07-13 16:44   ` Hector Martin 'marcan'
  2020-07-13  5:08 ` [PATCH 2/3] ASoC: rsnd: don't use discriminatory terms for comment Kuninori Morimoto
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Kuninori Morimoto @ 2020-07-13  5:08 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

rsnd is using discriminatory terms for function names.
This patch change it to "follower"

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/sh/rcar/rsnd.h |  2 +-
 sound/soc/sh/rcar/ssi.c  | 28 ++++++++++++++--------------
 sound/soc/sh/rcar/ssiu.c |  6 +++---
 3 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h
index d47608ff5fac..2b5a096dc330 100644
--- a/sound/soc/sh/rcar/rsnd.h
+++ b/sound/soc/sh/rcar/rsnd.h
@@ -775,7 +775,7 @@ int rsnd_ssi_probe(struct rsnd_priv *priv);
 void rsnd_ssi_remove(struct rsnd_priv *priv);
 struct rsnd_mod *rsnd_ssi_mod_get(struct rsnd_priv *priv, int id);
 int rsnd_ssi_use_busif(struct rsnd_dai_stream *io);
-u32 rsnd_ssi_multi_slaves_runtime(struct rsnd_dai_stream *io);
+u32 rsnd_ssi_multi_followers_runtime(struct rsnd_dai_stream *io);
 
 #define rsnd_ssi_is_pin_sharing(io)	\
 	__rsnd_ssi_is_pin_sharing(rsnd_io_to_mod_ssi(io))
diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c
index 47d5ddb526f2..6333f40fb566 100644
--- a/sound/soc/sh/rcar/ssi.c
+++ b/sound/soc/sh/rcar/ssi.c
@@ -111,8 +111,8 @@ struct rsnd_ssi {
 #define rsnd_ssi_nr(priv) ((priv)->ssi_nr)
 #define rsnd_mod_to_ssi(_mod) container_of((_mod), struct rsnd_ssi, mod)
 #define rsnd_ssi_is_parent(ssi, io) ((ssi) == rsnd_io_to_mod_ssip(io))
-#define rsnd_ssi_is_multi_slave(mod, io) \
-	(rsnd_ssi_multi_slaves(io) & (1 << rsnd_mod_id(mod)))
+#define rsnd_ssi_is_multi_follower(mod, io)\
+	(rsnd_ssi_multi_followers(io) & (1 << rsnd_mod_id(mod)))
 #define rsnd_ssi_is_run_mods(mod, io) \
 	(rsnd_ssi_run_mods(io) & (1 << rsnd_mod_id(mod)))
 #define rsnd_ssi_can_output_clk(mod) (!__rsnd_ssi_is_pin_sharing(mod))
@@ -165,7 +165,7 @@ static void rsnd_ssi_status_check(struct rsnd_mod *mod,
 	dev_warn(dev, "%s status check failed\n", rsnd_mod_name(mod));
 }
 
-static u32 rsnd_ssi_multi_slaves(struct rsnd_dai_stream *io)
+static u32 rsnd_ssi_multi_followers(struct rsnd_dai_stream *io)
 {
 	struct rsnd_mod *mod;
 	enum rsnd_mod_type types[] = {
@@ -193,7 +193,7 @@ static u32 rsnd_ssi_run_mods(struct rsnd_dai_stream *io)
 	struct rsnd_mod *ssi_parent_mod = rsnd_io_to_mod_ssip(io);
 	u32 mods;
 
-	mods = rsnd_ssi_multi_slaves_runtime(io) |
+	mods = rsnd_ssi_multi_followers_runtime(io) |
 		1 << rsnd_mod_id(ssi_mod);
 
 	if (ssi_parent_mod)
@@ -202,10 +202,10 @@ static u32 rsnd_ssi_run_mods(struct rsnd_dai_stream *io)
 	return mods;
 }
 
-u32 rsnd_ssi_multi_slaves_runtime(struct rsnd_dai_stream *io)
+u32 rsnd_ssi_multi_followers_runtime(struct rsnd_dai_stream *io)
 {
 	if (rsnd_runtime_is_multi_ssi(io))
-		return rsnd_ssi_multi_slaves(io);
+		return rsnd_ssi_multi_followers(io);
 
 	return 0;
 }
@@ -283,7 +283,7 @@ static int rsnd_ssi_master_clk_start(struct rsnd_mod *mod,
 	if (!rsnd_ssi_can_output_clk(mod))
 		return 0;
 
-	if (rsnd_ssi_is_multi_slave(mod, io))
+	if (rsnd_ssi_is_multi_follower(mod, io))
 		return 0;
 
 	if (rsnd_runtime_is_tdm_split(io))
@@ -626,7 +626,7 @@ static int rsnd_ssi_start(struct rsnd_mod *mod,
 	 * EN will be set via SSIU :: SSI_CONTROL
 	 * if Multi channel mode
 	 */
-	if (rsnd_ssi_multi_slaves_runtime(io))
+	if (rsnd_ssi_multi_followers_runtime(io))
 		return 0;
 
 	/*
@@ -675,7 +675,7 @@ static int rsnd_ssi_stop(struct rsnd_mod *mod,
 	/* In multi-SSI mode, stop is performed by setting ssi0129 in
 	 * SSI_CONTROL to 0 (in rsnd_ssio_stop_gen2). Do nothing here.
 	 */
-	if (rsnd_ssi_multi_slaves_runtime(io))
+	if (rsnd_ssi_multi_followers_runtime(io))
 		return 0;
 
 	/*
@@ -888,7 +888,7 @@ static void rsnd_ssi_parent_attach(struct rsnd_mod *mod,
 	if (!rsnd_rdai_is_clk_master(rdai))
 		return;
 
-	if (rsnd_ssi_is_multi_slave(mod, io))
+	if (rsnd_ssi_is_multi_follower(mod, io))
 		return;
 
 	switch (rsnd_mod_id(mod)) {
@@ -930,9 +930,9 @@ static int rsnd_ssi_common_probe(struct rsnd_mod *mod,
 
 	/*
 	 * SSIP/SSIU/IRQ are not needed on
-	 * SSI Multi slaves
+	 * SSI Multi followers
 	 */
-	if (rsnd_ssi_is_multi_slave(mod, io))
+	if (rsnd_ssi_is_multi_follower(mod, io))
 		return 0;
 
 	/*
@@ -1091,9 +1091,9 @@ static int rsnd_ssi_dma_probe(struct rsnd_mod *mod,
 
 	/*
 	 * SSIP/SSIU/IRQ/DMA are not needed on
-	 * SSI Multi slaves
+	 * SSI Multi followers
 	 */
-	if (rsnd_ssi_is_multi_slave(mod, io))
+	if (rsnd_ssi_is_multi_follower(mod, io))
 		return 0;
 
 	ret = rsnd_ssi_common_probe(mod, io, priv);
diff --git a/sound/soc/sh/rcar/ssiu.c b/sound/soc/sh/rcar/ssiu.c
index 9c7c3e7539c9..7565d0fc16f6 100644
--- a/sound/soc/sh/rcar/ssiu.c
+++ b/sound/soc/sh/rcar/ssiu.c
@@ -60,7 +60,7 @@ static int rsnd_ssiu_init(struct rsnd_mod *mod,
 			  struct rsnd_priv *priv)
 {
 	struct rsnd_dai *rdai = rsnd_io_to_rdai(io);
-	u32 ssis = rsnd_ssi_multi_slaves_runtime(io);
+	u32 ssis = rsnd_ssi_multi_followers_runtime(io);
 	int use_busif = rsnd_ssi_use_busif(io);
 	int id = rsnd_mod_id(mod);
 	int is_clk_master = rsnd_rdai_is_clk_master(rdai);
@@ -246,7 +246,7 @@ static int rsnd_ssiu_start_gen2(struct rsnd_mod *mod,
 
 	rsnd_mod_bset(mod, SSI_CTRL, 1 << (busif * 4), 1 << (busif * 4));
 
-	if (rsnd_ssi_multi_slaves_runtime(io))
+	if (rsnd_ssi_multi_followers_runtime(io))
 		rsnd_mod_write(mod, SSI_CONTROL, 0x1);
 
 	return 0;
@@ -267,7 +267,7 @@ static int rsnd_ssiu_stop_gen2(struct rsnd_mod *mod,
 	if (--ssiu->usrcnt)
 		return 0;
 
-	if (rsnd_ssi_multi_slaves_runtime(io))
+	if (rsnd_ssi_multi_followers_runtime(io))
 		rsnd_mod_write(mod, SSI_CONTROL, 0);
 
 	return 0;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/3] ASoC: rsnd: don't use discriminatory terms for comment
  2020-07-13  5:07 [PATCH 0/3] ASoC: sh: remove discriminatory terms Kuninori Morimoto
  2020-07-13  5:08 ` [PATCH 1/3] ASoC: rsnd: don't use discriminatory terms for function names Kuninori Morimoto
@ 2020-07-13  5:08 ` Kuninori Morimoto
  2020-07-13  5:08 ` [PATCH 3/3] ASoC: fsi: " Kuninori Morimoto
  2020-07-14 16:39 ` [PATCH 0/3] ASoC: sh: remove discriminatory terms Mark Brown
  3 siblings, 0 replies; 8+ messages in thread
From: Kuninori Morimoto @ 2020-07-13  5:08 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

rsnd is using discriminatory terms for comment.
This patch removes it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/sh/rcar/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 983dece107ab..6e670b3e92a0 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -759,13 +759,13 @@ static int rsnd_soc_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 {
 	struct rsnd_dai *rdai = rsnd_dai_to_rdai(dai);
 
-	/* set master/slave audio interface */
+	/* set clock master for audio interface */
 	switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
 	case SND_SOC_DAIFMT_CBM_CFM:
 		rdai->clk_master = 0;
 		break;
 	case SND_SOC_DAIFMT_CBS_CFS:
-		rdai->clk_master = 1; /* codec is slave, cpu is master */
+		rdai->clk_master = 1; /* cpu is master */
 		break;
 	default:
 		return -EINVAL;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/3] ASoC: fsi: don't use discriminatory terms for comment
  2020-07-13  5:07 [PATCH 0/3] ASoC: sh: remove discriminatory terms Kuninori Morimoto
  2020-07-13  5:08 ` [PATCH 1/3] ASoC: rsnd: don't use discriminatory terms for function names Kuninori Morimoto
  2020-07-13  5:08 ` [PATCH 2/3] ASoC: rsnd: don't use discriminatory terms for comment Kuninori Morimoto
@ 2020-07-13  5:08 ` Kuninori Morimoto
  2020-07-14 16:39 ` [PATCH 0/3] ASoC: sh: remove discriminatory terms Mark Brown
  3 siblings, 0 replies; 8+ messages in thread
From: Kuninori Morimoto @ 2020-07-13  5:08 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA


From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

fsi is using discriminatory terms for comment.
This patch removes it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/sh/fsi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index 6d523d194ba1..3c574792231b 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -1632,12 +1632,12 @@ static int fsi_dai_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
 	struct fsi_priv *fsi = fsi_get_priv_frm_dai(dai);
 	int ret;
 
-	/* set master/slave audio interface */
+	/* set clock master audio interface */
 	switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
 	case SND_SOC_DAIFMT_CBM_CFM:
 		break;
 	case SND_SOC_DAIFMT_CBS_CFS:
-		fsi->clk_master = 1; /* codec is slave, cpu is master */
+		fsi->clk_master = 1; /* cpu is master */
 		break;
 	default:
 		return -EINVAL;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/3] ASoC: rsnd: don't use discriminatory terms for function names
  2020-07-13  5:08 ` [PATCH 1/3] ASoC: rsnd: don't use discriminatory terms for function names Kuninori Morimoto
@ 2020-07-13 16:44   ` Hector Martin 'marcan'
  2020-07-13 17:16     ` Mark Brown
  0 siblings, 1 reply; 8+ messages in thread
From: Hector Martin 'marcan' @ 2020-07-13 16:44 UTC (permalink / raw)
  To: Kuninori Morimoto, Mark Brown; +Cc: Linux-ALSA

On 13/07/2020 14.08, Kuninori Morimoto wrote:
> -u32 rsnd_ssi_multi_slaves_runtime(struct rsnd_dai_stream *io);
> +u32 rsnd_ssi_multi_followers_runtime(struct rsnd_dai_stream *io);

I don't have full context here, but AIUI this is about bundling 
different links together? If so, primary/secondary or main/secondary 
might work better than leader/follower, in my opinion. The latter 
implies more of a "one device follows another one" scenario, like for 
clocks.

Just my 2c. Ditching the horribly ambiguous master/slave terminology is 
a good chance to pick the replacement that best describes the situation :-)

-- 
Hector Martin "marcan" (marcan@marcan.st)
Public Key: https://mrcn.st/pub

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/3] ASoC: rsnd: don't use discriminatory terms for function names
  2020-07-13 16:44   ` Hector Martin 'marcan'
@ 2020-07-13 17:16     ` Mark Brown
  2020-07-13 23:13       ` Kuninori Morimoto
  0 siblings, 1 reply; 8+ messages in thread
From: Mark Brown @ 2020-07-13 17:16 UTC (permalink / raw)
  To: Hector Martin 'marcan'; +Cc: Linux-ALSA, Kuninori Morimoto

[-- Attachment #1: Type: text/plain, Size: 575 bytes --]

On Tue, Jul 14, 2020 at 01:44:40AM +0900, Hector Martin 'marcan' wrote:
> On 13/07/2020 14.08, Kuninori Morimoto wrote:

> > -u32 rsnd_ssi_multi_slaves_runtime(struct rsnd_dai_stream *io);
> > +u32 rsnd_ssi_multi_followers_runtime(struct rsnd_dai_stream *io);

> I don't have full context here, but AIUI this is about bundling different
> links together? If so, primary/secondary or main/secondary might work better
> than leader/follower, in my opinion. The latter implies more of a "one
> device follows another one" scenario, like for clocks.

That does make sense to me.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/3] ASoC: rsnd: don't use discriminatory terms for function names
  2020-07-13 17:16     ` Mark Brown
@ 2020-07-13 23:13       ` Kuninori Morimoto
  0 siblings, 0 replies; 8+ messages in thread
From: Kuninori Morimoto @ 2020-07-13 23:13 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA, Hector Martin 'marcan'


Hi Hector, Mark

> > > -u32 rsnd_ssi_multi_slaves_runtime(struct rsnd_dai_stream *io);
> > > +u32 rsnd_ssi_multi_followers_runtime(struct rsnd_dai_stream *io);
> 
> > I don't have full context here, but AIUI this is about bundling different
> > links together? If so, primary/secondary or main/secondary might work better
> > than leader/follower, in my opinion. The latter implies more of a "one
> > device follows another one" scenario, like for clocks.
> 
> That does make sense to me.

Thank you for your advice.
I will use "secondary" in v2

Thank you for your help !!

Best regards
---
Kuninori Morimoto

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 0/3] ASoC: sh: remove discriminatory terms
  2020-07-13  5:07 [PATCH 0/3] ASoC: sh: remove discriminatory terms Kuninori Morimoto
                   ` (2 preceding siblings ...)
  2020-07-13  5:08 ` [PATCH 3/3] ASoC: fsi: " Kuninori Morimoto
@ 2020-07-14 16:39 ` Mark Brown
  3 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2020-07-14 16:39 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: Linux-ALSA

On 13 Jul 2020 14:07:43 +0900, Kuninori Morimoto wrote:
> rsnd / fsi are using discriminatory terms.
> This patch-set removes it as much as possible.
> But, because DMA related API function name, it still exists.
> I hope all these are removed someday.
> 
> Kuninori Morimoto (3):
>   ASoC: rsnd: don't use discriminatory terms for function names
>   ASoC: rsnd: don't use discriminatory terms for comment
>   ASoC: fsi: don't use discriminatory terms for comment
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/3] ASoC: rsnd: don't use discriminatory terms for function names
      commit: 25b384b8eabb65bc6546dc2e98e93816dd734a52
[2/3] ASoC: rsnd: don't use discriminatory terms for comment
      commit: f7c7a24b7d0c94f7f0fdaac08c25772e152bfed1
[3/3] ASoC: fsi: don't use discriminatory terms for comment
      commit: cf01245db89922e4ec2404aaf527ca3d567c4e5e

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-07-14 16:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-13  5:07 [PATCH 0/3] ASoC: sh: remove discriminatory terms Kuninori Morimoto
2020-07-13  5:08 ` [PATCH 1/3] ASoC: rsnd: don't use discriminatory terms for function names Kuninori Morimoto
2020-07-13 16:44   ` Hector Martin 'marcan'
2020-07-13 17:16     ` Mark Brown
2020-07-13 23:13       ` Kuninori Morimoto
2020-07-13  5:08 ` [PATCH 2/3] ASoC: rsnd: don't use discriminatory terms for comment Kuninori Morimoto
2020-07-13  5:08 ` [PATCH 3/3] ASoC: fsi: " Kuninori Morimoto
2020-07-14 16:39 ` [PATCH 0/3] ASoC: sh: remove discriminatory terms Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.