login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
6
Re: [PATCH 2/2] - SH/Dreamcast - fix maple bus bugs
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Greg KH <greg@...>
To: Adrian McMenamin <adrian@...>
Cc: Paul Mundt <lethal@...>, LKML <linux-kernel@...>, linux-sh <linux-sh@...>
Subject:
Re: [PATCH 2/2] - SH/Dreamcast - fix maple bus bugs
Date: Wednesday, February 6, 2008 - 7:23 pm
On Wed, Feb 06, 2008 at 11:05:14PM +0000, Adrian McMenamin wrote:
quoted text
> > On Wed, 2008-02-06 at 15:01 -0800, Greg KH wrote: > > On Wed, Feb 06, 2008 at 10:53:51PM +0000, Adrian McMenamin wrote: > > > - dev->function = function; > > > - dev->dev.bus = &maple_bus_type; > > > - dev->dev.parent = &maple_bus; > > > - dev->dev.release = &maple_release_device; > > > - retval = device_register(&dev->dev); > > > - if (retval) { > > > - printk(KERN_INFO > > > - "Maple bus: Attempt to register device (%x, %x) failed.\n", > > > - dev->port, dev->unit); > > > - maple_free_dev(dev); > > > + mdev->function = function; > > > + mdev->dev.release = &maple_release_device; > > > + if (mdev->registered == 0) { > > > + retval = device_register(&mdev->dev); > > > + if (retval) { > > > + printk(KERN_INFO > > > + "Maple bus: Attempt to register device" > > > + " (%x, %x) failed.\n", > > > + mdev->port, mdev->unit); > > > + maple_free_dev(mdev); > > > + mdev = NULL; > > > + return; > > > + } > > > + mdev->registered = 1; > > > } > > > - dev->registered = 1; > > > > I think you are still papering over the real problem here of trying to > > register a device twice. That's something you should never be doing, > > and your bus walking logic must be incorrect... > > > I just left that in as a sanity check. It should never be acted on. I > can remove it if you prefer.
Please do, that way, and real problems will show up with that warning you were getting that started all of this work :) thanks, greg k-h --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/2] - SH/Dreamcast - fix maple bus bugs
, Adrian McMenamin
, (Wed Feb 6, 6:46 pm)
Re: [PATCH 1/2] - SH/Dreamcast - fix maple bus bugs
, Paul Mundt
, (Wed Feb 6, 10:35 pm)
[PATCH 2/2] - SH/Dreamcast - fix maple bus bugs
, Adrian McMenamin
, (Wed Feb 6, 6:53 pm)
Re: [PATCH 2/2] - SH/Dreamcast - fix maple bus bugs
, Greg KH
, (Wed Feb 6, 7:01 pm)
Re: [PATCH 2/2] - SH/Dreamcast - fix maple bus bugs
, Adrian McMenamin
, (Wed Feb 6, 7:05 pm)
Re: [PATCH 2/2] - SH/Dreamcast - fix maple bus bugs
, Greg KH
, (Wed Feb 6, 7:23 pm)
[PATCH] - SH/Dreamcast - additional patch to maple.h
, Adrian McMenamin
, (Wed Feb 6, 7:59 pm)
Re: [PATCH 2/2] - SH/Dreamcast - fix maple bus bugs
, Adrian McMenamin
, (Wed Feb 6, 7:51 pm)
Re: [PATCH 2/2] - SH/Dreamcast - fix maple bus bugs
, Greg KH
, (Wed Feb 6, 7:59 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 004/196] Chinese: add translation of SubmittingPatches
David Newall
Re: Slow DOWN, please!!!
Andrew Morton
Re: Linux 2.6.21-rc4
git
:
linux-netdev
:
David Miller
[GIT]: Networking
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Dale Farnsworth
Re: [PATCH 01/39] mv643xx_eth: reverse topological sort of functions
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
854 guests
online.
Online users
firewaterdamage
Syndicate