From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265342AbUEOA1f (ORCPT ); Fri, 14 May 2004 20:27:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265341AbUEOAZI (ORCPT ); Fri, 14 May 2004 20:25:08 -0400 Received: from fw.osdl.org ([65.172.181.6]:48613 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S264822AbUEOAUb (ORCPT ); Fri, 14 May 2004 20:20:31 -0400 Date: Fri, 14 May 2004 17:11:38 -0700 From: "Randy.Dunlap" To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Henrik.Seidel@gmx.de Subject: Re: sysfs warning + spinlock BUG in typhoon radio Message-Id: <20040514171138.0b99bb6c.rddunlap@osdl.org> In-Reply-To: <20040514162919.143c0d6c.akpm@osdl.org> References: <20040514113804.1964105f.rddunlap@osdl.org> <20040514162919.143c0d6c.akpm@osdl.org> Organization: OSDL X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i686-pc-linux-gnu) X-Face: +5V?h'hZQPB9kW Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 14 May 2004 16:29:19 -0700 Andrew Morton wrote: | "Randy.Dunlap" wrote: | > | > Calling initcall 0xc10bc558: typhoon_init+0x0/0x12a() | > Typhoon Radio Card driver v0.1 | > CLASS: registering class device: ID = 'radio2' | > class_hotplug - name = radio2 | > videodev: "Typhoon Radio" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/ | > radio-typhoon: port 0x316. | > radio-typhoon: mute frequency is 87500 kHz. | > eip: c0b946cc | > ------------[ cut here ]------------ | > kernel BUG at include/asm/spinlock.h:120! | | Does this fix? | | | diff -puN drivers/media/radio/radio-typhoon.c~typhoon-locking-fix drivers/media/radio/radio-typhoon.c | --- 25/drivers/media/radio/radio-typhoon.c~typhoon-locking-fix Fri May 14 16:26:46 2004 | +++ 25-akpm/drivers/media/radio/radio-typhoon.c Fri May 14 16:28:29 2004 | @@ -326,7 +326,6 @@ static int __init typhoon_init(void) | return -EINVAL; | } | typhoon_unit.iobase = io; | - init_MUTEX(&typhoon_unit.lock); | | if (mutefreq < 87000 || mutefreq > 108500) { | printk(KERN_ERR "radio-typhoon: You must set a frequency (in kHz) used when muting the card,\n"); | @@ -337,6 +336,7 @@ static int __init typhoon_init(void) | #endif /* MODULE */ | | printk(KERN_INFO BANNER); | + init_MUTEX(&typhoon_unit.lock); | io = typhoon_unit.iobase; | if (!request_region(io, 8, "typhoon")) { | printk(KERN_ERR "radio-typhoon: port 0x%x already in use\n", | | _ Yes, that fixes the spinlock BUG. Thanks. I'll look at the other piece of it later/weekend: || videodev: "Typhoon Radio" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/ since this is still there. -- ~Randy