From: Adam Belay <ambx1@neo.rr.com>
To: "Ruslan U. Zakirov" <cubic@wildrose.miee.ru>
Cc: LKML <linux-kernel@vger.kernel.org>, Jaroslav Kysela <perex@perex.cz>
Subject: Re: [2.5.58][PnP] Some small points.
Date: Fri, 17 Jan 2003 11:18:38 +0000 [thread overview]
Message-ID: <20030117111838.GB26108@neo.rr.com> (raw)
In-Reply-To: <1884972299.20030115181611@wr.miee.ru>
Hi Ruslan,
Thanks for pointing these out. I appreciate your help.
On Wed, Jan 15, 2003 at 06:16:11PM +0300, Ruslan U. Zakirov wrote:
> Hello All.
> 1) __pnp_remove_device(dev) call twice. First time in
> pnpc_remove_device(dev). I think it's wrong.
>
Agreed, I'll apply your patch here.
> _______________________________
> 2) We've forgot to unreg driver on module unload in opl3sa2 driver.
> --- sound/isa/opl3sa2.c~ 2003-01-15 17:45:25.000000000 +0300
> +++ sound/isa/opl3sa2.c 2003-01-15 17:47:00.000000000 +0300
> @@ -881,6 +881,9 @@
>
> for (idx = 0; idx < SNDRV_CARDS; idx++)
> snd_card_free(snd_opl3sa2_cards[idx]);
> +#ifdef CONFIG_PNP
> + pnpc_unregister_driver(&opl3sa2_pnpc_driver);
> +#endif
> }
>
Yep, it should unregister it there.
> module_init(alsa_card_opl3sa2_init)
> _________________________________
> 3) Queston: Why we do free in this way?
> static int snd_opl3sa2_free(opl3sa2_t *chip)
> {
> #ifdef CONFIG_PNP
> chip->dev = NULL; -> Here. Why NULL? Who realy free resources and how?
The structure that chip->dev points to is freed by the pnp layer on the release call.
Is this what you were asking or are you talking about something else?
> #endif
> #ifdef CONFIG_PM
> if (chip->pm_dev)
> pm_unregister(chip->pm_dev);
> #endif
> if (chip->irq >= 0)
> free_irq(chip->irq, (void *)chip);
> if (chip->res_port) {
> release_resource(chip->res_port);
> kfree_nocheck(chip->res_port);
> }
> snd_magic_kfree(chip);
> return 0;
> }
> _______________________________________
> 4) Have we got ALSA driver that work absolutly and use PnP layer in
> right ways?
I believe Jaroslav is working on that now. Jaroslav, if you would like me to
convert ALSA drivers please let me know.
Regards,
Adam
next prev parent reply other threads:[~2003-01-17 16:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-15 15:16 Ruslan U. Zakirov
2003-01-17 11:18 ` Adam Belay [this message]
2003-01-17 17:16 ` Ruslan U. Zakirov
2003-01-18 21:23 ` Jaroslav Kysela
2003-01-19 0:34 ` Ruslan U. Zakirov
2003-01-21 10:52 ` Jaroslav Kysela
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=20030117111838.GB26108@neo.rr.com \
--to=ambx1@neo.rr.com \
--cc=cubic@wildrose.miee.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
/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
all inboxes | Powered by JetHome®