Skip to contentSkip to conversation

sparc: Implement and wire up vio_hotplug for vio.

PATCH Applied John Paul Adrian Glaubitz 4 participants 11 messages Apr 14, 2016 – May 2, 2016 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 sparc: Implement and wire up vio_hotplug for vio.

---
 arch/sparc/kernel/vio.c | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/sparc/kernel/vio.c +9 -0
index d705560..f6bb857 100644
@@ -45,6 +45,14 @@ static const struct vio_device_id *vio_match_device(
 	return NULL;
 }
 
+static int vio_hotplug(struct device *dev, struct kobj_uevent_env *env)
+{
+	const struct vio_dev *vio_dev = to_vio_dev(dev);
+
+	add_uevent_var(env, "MODALIAS=vio:T%sS%s", vio_dev->type, vio_dev->compat);
+	return 0;
+}
+
 static int vio_bus_match(struct device *dev, struct device_driver *drv)
 {
 	struct vio_dev *vio_dev = to_vio_dev(dev);
@@ -123,6 +131,7 @@ static struct device_attribute vio_dev_attrs[] = {
 static struct bus_type vio_bus_type = {
 	.name		= "vio",
 	.dev_attrs	= vio_dev_attrs,
+	.uevent         = vio_hotplug,
 	.match		= vio_bus_match,
 	.probe		= vio_device_probe,
 	.remove		= vio_device_remove,
Signature · 1 line
2.8.0.rc3
#3 lore raw
In reply to John Paul Adrian Glaubitz
Quoted 6 lines · David Miller

From: John Paul Adrian Glaubitz <[email protected]>
Date: Thu, 14 Apr 2016 20:14:42 +0200

Quoted 1 line

Applied.

Thanks!

However, I normally use my full name for all open source development, e.g. with all three first names. Do you think you could change that with git-rebase && git commit --amend --author?

Thanks,
Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
maintainer
#4 lore raw
In reply to John Paul Adrian Glaubitz

From: John Paul Adrian Glaubitz <[email protected]>
Date: Wed, 27 Apr 2016 23:05:01 +0200

Quoted 6 lines · David Miller
Quoted 5 lines

From: John Paul Adrian Glaubitz <[email protected]>
Date: Thu, 14 Apr 2016 20:14:42 +0200

Quoted 1 line
Quoted 7 lines
Quoted 1 line

Applied.

Thanks!

However, I normally use my full name for all open source development, e.g. with all three first names. Do you think you could change that with git-rebase && git commit --amend --author?

My tree may never be rebased, as people clone and do work against it, therefore any commit made there is permanent.

Please just be careful with patches you submit in the future, thanks.

Sorry.

#5 lore raw
In reply to John Paul Adrian Glaubitz

Hi All,

Quoted 13 lines · David Miller

From: John Paul Adrian Glaubitz <[email protected]>
Date: Wed, 27 Apr 2016 23:05:01 +0200

Quoted 10 lines · David Miller
Quoted 6 lines

From: John Paul Adrian Glaubitz <[email protected]>
Date: Thu, 14 Apr 2016 20:14:42 +0200

Quoted 1 line

Applied.

Thanks!

Quoted 8 lines
Quoted 3 lines

However, I normally use my full name for all open source development, e.g. with all three first names. Do you think you could change that with git-rebase && git commit --amend --author?

My tree may never be rebased, as people clone and do work against it, therefore any commit made there is permanent.

Please just be careful with patches you submit in the future, thanks.

What's odd is that the name in the From: line of the original email is correct.

David, do you use patchwork? If so, it might be that John Paul Adrian's name is incorrect in there. (This has caused Kalle some issues in the past)

If so, one of you needs to fix this for any future submissions.

Thanks,

Signature · 4 lines
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/
#8 lore raw
In reply to John Paul Adrian Glaubitz
Quoted 4 lines · David Miller

My tree may never be rebased, as people clone and do work against it, therefore any commit made there is permanent.

Please just be careful with patches you submit in the future, thanks.

Well, my patches are

so, I think did everything correctly on my side. I don't exactly know my name was cut off, but I guess it's too late now -.-.

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
#9 lore raw
In reply to John Paul Adrian Glaubitz

Hi!

Quoted 4 lines · John Paul Adrian Glaubitz
Quoted 3 lines · David Miller

My tree may never be rebased, as people clone and do work against it, therefore any commit made there is permanent.

Quoted 8 lines
Quoted 1 line

Please just be careful with patches you submit in the future, thanks.

Well, my patches are

so, I think did everything correctly on my side. I don't exactly know my name was cut off, but I guess it's too late now -.-.

I was just wondering: Would it be possible to ask Linus to fix my name when he pulls in the changes from the sparc tree? From what I can see, the current changes are not in Linus' tree yet, so there might be a chance to fix the problem.

Adrian

Signature · 4 lines
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
maintainer
#10 lore raw
In reply to John Paul Adrian Glaubitz

From: John Paul Adrian Glaubitz <[email protected]>
Date: Mon, 2 May 2016 01:13:19 +0200

Quoted 13 lines

Hi!

Quoted 10 lines · John Paul Adrian Glaubitz
Quoted 4 lines · David Miller

My tree may never be rebased, as people clone and do work against it, therefore any commit made there is permanent.

Please just be careful with patches you submit in the future, thanks.

Well, my patches are

Quoted 7 lines
Quoted 2 lines

so, I think did everything correctly on my side. I don't exactly know my name was cut off, but I guess it's too late now -.-.

I was just wondering: Would it be possible to ask Linus to fix my name when he pulls in the changes from the sparc tree? From what I can see, the current changes are not in Linus' tree yet, so there might be a chance to fix the problem.

Doesn't work like that, the commit message is part of the SHA1 ID hash and that cannot change.