From: Simon Arlott <simon@fire.lp0.eu>
To: Trent Piepho <xyzzy@speakeasy.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux DVB <linux-dvb@linuxtv.org>
Subject: Re: [linux-dvb] [PATCH] dvb-core: Handle failures to create devices
Date: Sun, 06 May 2007 23:58:28 +0100 [thread overview]
Message-ID: <463E5D94.10200@simon.arlott.org.uk> (raw)
In-Reply-To: <Pine.LNX.4.58.0705061404170.32689@shell2.speakeasy.net>
On 06/05/07 23:50, Trent Piepho wrote:
> I've tested this and can confirm it works. dvb_class will be set too late
> without the change to subsys_initcall.
>
> On Tue, 1 May 2007, Simon Arlott wrote:
>> dvb-core is not started early enough when device drivers that use dvb are
>> compiled in so device_register_device fails (silently) since dvb_class is
>
> ^dvb_register_device
>
>> NULL, this runs dvb_init using subsys_initcall instead of module_init.
>>
>> dvb_register_device will now check the return value of class_device_create.
>> All the printks had missing level prefixes so I've fixed these too.
>
> Probably better to make this a separate patch, since it's not related.
>
>> - printk ("%s: could get find free device id...\n", __FUNCTION__);
>> + printk(KERN_ERR "%s: could get find free device id...\n", __FUNCTION__);
>
> "couldn't find free device id"
>
> If it's ok with you, I'll import your patch as two seperate patches with
> the spelling errors fixed?
That's fine with me.
>> + dprintk(KERN_DEBUG "DVB: register adapter%d/%s%d @ minor: %i (0x%02x)\n",
>> adap->num, dnames[type], id, nums2minor(adap->num, type, id),
>> nums2minor(adap->num, type, id));
>
> The dvb-core dvbdev_debug parameter does nothing but turn on this one
> single dprintk. I'm tempted to just delete it.
Just always output that information, or remove it? (I have it enabled,
although I'm not sure if there's any point).
--
Simon Arlott
prev parent reply other threads:[~2007-05-06 22:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-01 17:12 [PATCH] dvb-core: Handle failures to create devices Simon Arlott
2007-05-01 17:14 ` Simon Arlott
2007-05-01 21:21 ` [linux-dvb] " Trent Piepho
2007-05-01 21:33 ` Simon Arlott
2007-05-06 22:50 ` Trent Piepho
2007-05-06 22:58 ` Simon Arlott [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=463E5D94.10200@simon.arlott.org.uk \
--to=simon@fire.lp0.eu \
--cc=linux-dvb@linuxtv.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xyzzy@speakeasy.org \
/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