From: Takashi Iwai <tiwai@suse.de>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: joakim.zhang@cixtech.com, lgirdwood@gmail.com,
broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, perex@perex.cz, tiwai@suse.com,
linux-sound@vger.kernel.org, devicetree@vger.kernel.org,
cix-kernel-upstream@cixtech.com
Subject: Re: [PATCH V1 3/3] ALSA: hda: add CIX IPBLOQ HDA controller support
Date: Fri, 31 Oct 2025 10:57:59 +0100 [thread overview]
Message-ID: <87v7jvjsuw.wl-tiwai@suse.de> (raw)
In-Reply-To: <20251031-wise-cassowary-of-foundation-a2a094@kuoka>
On Fri, 31 Oct 2025 10:05:01 +0100,
Krzysztof Kozlowski wrote:
>
> On Thu, Oct 30, 2025 at 07:09:28PM +0800, joakim.zhang@cixtech.com wrote:
> > From: Joakim Zhang <joakim.zhang@cixtech.com>
> > + if (err) {
> > + dev_err(chip->card->dev,
> > + "unable to request IRQ %d, disabling device\n",
>
> Why are you requesting resources outside of probe, in work item? You
> cannot handle here deferred probe.
>
> How is it supposed to work? How deferred probe would work?
The deferred probe is used for snd-hda-intel as it may require either
the vga_switcheroo binding or the firmware loading before the actual
probe.
OTOH, in this driver case, *_hda_init() call might be better as the
part of the probe callback. Though, we may still need some deferred
work for probing and configuring the codecs, i.e. azx_probe_codecs()
and azx_codec_configure() calls where explicit module bindings are
involved.
I guess snd-hda-tegra does like snd-hda-intel just because it followed
the code flow of snd-hda-intel. But it doesn't mean that a new driver
should follow the same, too. Doing the initialization in the probe
callback would be much easier to handle the errors, for example.
thanks,
Takashi
next prev parent reply other threads:[~2025-10-31 9:58 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-30 11:09 [PATCH V1 0/3] ALSA: hda: add CIX IPBLOQ HDA controller support joakim.zhang
2025-10-30 11:09 ` [PATCH V1 1/3] dt-bindings: sound: add binding for CIX IPBLOQ HDA controller joakim.zhang
2025-10-31 8:58 ` Krzysztof Kozlowski
2025-10-31 9:28 ` Krzysztof Kozlowski
2025-10-31 14:57 ` Conor Dooley
2025-11-03 10:36 ` Joakim Zhang
2025-10-30 11:09 ` [PATCH V1 2/3] ALSA: hda: add bus callback for address translation joakim.zhang
2025-10-31 11:28 ` Takashi Iwai
2025-11-03 11:30 ` Joakim Zhang
2025-11-27 9:44 ` Joakim Zhang
2025-11-28 17:22 ` Takashi Iwai
2025-12-01 8:14 ` Joakim Zhang
2025-12-01 8:41 ` Takashi Iwai
2025-12-01 10:58 ` Joakim Zhang
2025-10-30 11:09 ` [PATCH V1 3/3] ALSA: hda: add CIX IPBLOQ HDA controller support joakim.zhang
2025-10-31 9:05 ` Krzysztof Kozlowski
2025-10-31 9:57 ` Takashi Iwai [this message]
2025-11-03 10:43 ` Joakim Zhang
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=87v7jvjsuw.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=broonie@kernel.org \
--cc=cix-kernel-upstream@cixtech.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=joakim.zhang@cixtech.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=robh@kernel.org \
--cc=tiwai@suse.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