devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Cezary Rojewski <cezary.rojewski@intel.com>
To: Oder Chiou <oder_chiou@realtek.com>
Cc: "perex@perex.cz" <perex@perex.cz>,
	"linux-sound@vger.kernel.org" <linux-sound@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"Flove(HsinFu)" <flove@realtek.com>,
	"Shuming [范書銘]" <shumingf@realtek.com>,
	"Jack Yu" <jack.yu@realtek.com>,
	"Derek [方德義]" <derek.fang@realtek.com>,
	"'Krzysztof Kozlowski'" <krzk@kernel.org>,
	"broonie@kernel.org" <broonie@kernel.org>,
	"lgirdwood@gmail.com" <lgirdwood@gmail.com>,
	"robh@kernel.org" <robh@kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>
Subject: Re: [PATCH v8 1/2] ASoC: rt5575: Add the codec driver for the ALC5575
Date: Wed, 10 Dec 2025 10:14:38 +0100	[thread overview]
Message-ID: <2710181f-a58e-4b0c-a7e8-6fbfbbc51ab3@intel.com> (raw)
In-Reply-To: <2630b1f8751b4aa3adc995f7d24144ea@realtek.com>

On 2025-12-10 6:26 AM, Oder Chiou wrote:
>> -----Original Message-----
>> From: Krzysztof Kozlowski <krzk@kernel.org>
>> Sent: Tuesday, December 9, 2025 2:08 PM
>> To: Oder Chiou <oder_chiou@realtek.com>; cezary.rojewski@intel.com;
>> broonie@kernel.org; lgirdwood@gmail.com; robh@kernel.org;
>> krzk+dt@kernel.org; conor+dt@kernel.org
>> Cc: perex@perex.cz; linux-sound@vger.kernel.org; devicetree@vger.kernel.org;
>> alsa-devel@alsa-project.org; Flove(HsinFu) <flove@realtek.com>; Shuming [范
>> 書銘] <shumingf@realtek.com>; Jack Yu <jack.yu@realtek.com>; Derek [方德
>> 義] <derek.fang@realtek.com>
>> Subject: Re: [PATCH v8 1/2] ASoC: rt5575: Add the codec driver for the
>> ALC5575

...

>> Ah, so for that reason you created that singleton, exported it and you
>> wait for it? Singletons are pretty no-go anyway, how do you handle to
>> codecs in the system? Fragile design.
> 
> The code will be implemented in the top of the i2c_probe() as following.
> 
> if (dev_type == RT5575_WITHOUT_FLASH) {
> 	if (IS_ENABLED(CONFIG_SND_SOC_RT5575_SPI)) {
> 		if (!rt5575_spi) {
> 			dev_err(dev, "Wait SPI driver ready\n");
> 			return -EPROBE_DEFER;
> 		}
> 	} else {
> 		dev_err(dev, "This dev type should enable CONFIG_SND_SOC_RT5575_SPI\n");
> 		return -ENODEV;
> 	}
> }

The idea is to get rid of 'rt5575_spi' global. Removing 
'rt5575_spi_ready' was just one of the steps to improve the flow. 
Removal of 'rt5575_spi' is the next one.

  reply	other threads:[~2025-12-10  9:14 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-01 10:59 [PATCH v8 0/2] ASoC: rt5575: Add the codec driver for the ALC5575 Oder Chiou
2025-12-01 10:59 ` [PATCH v8 1/2] " Oder Chiou
2025-12-08  6:05   ` Krzysztof Kozlowski
2025-12-08  7:29     ` Oder Chiou
2025-12-08  8:01       ` Krzysztof Kozlowski
2025-12-08  9:16         ` Oder Chiou
2025-12-09  6:07           ` Krzysztof Kozlowski
2025-12-10  5:26             ` Oder Chiou
2025-12-10  9:14               ` Cezary Rojewski [this message]
2025-12-08 20:05   ` Cezary Rojewski
2025-12-09  5:35     ` Oder Chiou
2025-12-10  9:22       ` Cezary Rojewski
2025-12-01 10:59 ` [PATCH v8 2/2] ASoC: dt-bindings: realtek,rt5575: add bindings for ALC5575 Oder Chiou
2025-12-05  8:31   ` Krzysztof Kozlowski
2025-12-05  8:31     ` Krzysztof Kozlowski
2025-12-08  5:55       ` Oder Chiou
2025-12-08  5:55     ` Oder Chiou
2025-12-08  6:02       ` Krzysztof Kozlowski
2025-12-08  6:03         ` Krzysztof Kozlowski

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=2710181f-a58e-4b0c-a7e8-6fbfbbc51ab3@intel.com \
    --to=cezary.rojewski@intel.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=derek.fang@realtek.com \
    --cc=devicetree@vger.kernel.org \
    --cc=flove@realtek.com \
    --cc=jack.yu@realtek.com \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=oder_chiou@realtek.com \
    --cc=perex@perex.cz \
    --cc=robh@kernel.org \
    --cc=shumingf@realtek.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;
as well as URLs for NNTP newsgroup(s).