All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: linux-kernel@vger.kernel.org, ak@linux.intel.com, trenn@suse.de,
	davej@redhat.com
Subject: Re: [PATCH-WIP] convert CPU sysdev class to a real subsytem (needed for CPU modaliases)
Date: Thu, 8 Dec 2011 16:11:45 -0800	[thread overview]
Message-ID: <20111209001145.GB9550@kroah.com> (raw)
In-Reply-To: <1323309517.979.8.camel@mop>

On Thu, Dec 08, 2011 at 02:58:37AM +0100, Kay Sievers wrote:
> This patch is work-in-progress and just posted to coordinate with Andi
> Kleen's current export of CPU modaliases. It boots my x86_64 workstation
> fine, nothing else is tested.
> 
> The CPU subsystem from a sysdev_class to a plain driver-core subsystem
> (currently called 'bus').
> 
> With the CPUs as normal devices, userspace will pick the events up
> properly and udev is able to coldplug the devices during bootup, which
> will allow proper module autoloading based on MODALIAS.
> 
>   $ tree /sys/bus/cpu/
>   /sys/bus/cpu/
>   ├── devices
>   │   ├── cpu0 -> ../../../devices/system/cpu/cpu0
>   │   ├── cpu1 -> ../../../devices/system/cpu/cpu1
>   │   ├── cpu2 -> ../../../devices/system/cpu/cpu2
>   │   └── cpu3 -> ../../../devices/system/cpu/cpu3
>   ...
>   └── uevent
> 
> The needed bits to easily convert the remaining sysdev class users to a
> plain subsystem and plain devices have been added to the driver core.
> Sysdev drivers have never been 'drivers' in the driver-core sense, and
> they can be now ported-over to subsys_interfaces. The end goal is to
> finally remove all of the ugly sysdev hack from the system.
> 
> Greg, I guess we need a bit of your time, to make a plan and get the
> remaining things sorted out. We are planning and fiddling for years
> already here, and we should finally get the stuff out. :)

I agree, I want this to get done finally.

> Greg, I think with the subsys_interfaces we do not need the
> 'multi-driver-binding' anymore, seems we can get away with the
> interfaces only. Classes which need to convert to buses because the
> class interface is not extensible can be easily converted now. The only
> missing piece is the 'glue directory'. We should be able to unify
> classes and buses internally with all that stuff.

Ah, good, I was stalled on this because of the multi-driver-binding
stuff.  If that's not needed, I'll gladly take any patches for this.

So, what do I need to do here?  Your patch looks good at first glance,
the interface logic looks sane, is that all that we really need to do to
the core?

thanks,

greg k-h

  parent reply	other threads:[~2011-12-09  0:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-08  1:58 [PATCH-WIP] convert CPU sysdev class to a real subsytem (needed for CPU modaliases) Kay Sievers
2011-12-08 15:10 ` Andi Kleen
2011-12-09  0:11 ` Greg KH [this message]
2011-12-09  4:20   ` Kay Sievers
2011-12-09 15:25     ` Kay Sievers
2011-12-09 22:34       ` Greg KH
2011-12-14  0:50         ` Kay Sievers
2011-12-14  1:21           ` Greg KH
2011-12-14  2:11             ` Kay Sievers
2011-12-14 22:44               ` Greg KH
2011-12-15  3:09               ` Greg KH
2011-12-20 22:43                 ` Kay Sievers

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=20111209001145.GB9550@kroah.com \
    --to=greg@kroah.com \
    --cc=ak@linux.intel.com \
    --cc=davej@redhat.com \
    --cc=kay.sievers@vrfy.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trenn@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.