All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6] pSeries_pci.c replace pci_find_device with pci_get_device
@ 2004-10-08 17:39 ` Hanna Linder
  0 siblings, 0 replies; 12+ messages in thread
From: Hanna Linder @ 2004-10-08 17:39 UTC (permalink / raw)
  To: lkml, kernel-janitors; +Cc: paulus, anton, greg, hannal

As pci_find_device is going away I've replaced it with pci_get_device.
If someone with a PPC64 system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pSeries_pci.c linux-2.6.9-rc3-mm3patch3/arch/ppc64/kernel/pSeries_pci.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pSeries_pci.c	2004-10-07 15:54:30.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch3/arch/ppc64/kernel/pSeries_pci.c	2004-10-08 10:24:00.064501400 -0700
@@ -646,7 +646,7 @@ void __init pSeries_final_fixup(void)
 
 	check_s7a();
 
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+	for_each_pci_dev(dev) {
 		pci_read_irq_line(dev);
 		if (s7a_workaround) {
 			if (dev->irq > 16) {


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [KJ] [PATCH 2.6] pSeries_pci.c replace pci_find_device with
@ 2004-10-08 17:39 ` Hanna Linder
  0 siblings, 0 replies; 12+ messages in thread
From: Hanna Linder @ 2004-10-08 17:39 UTC (permalink / raw)
  To: lkml, kernel-janitors; +Cc: paulus, anton, greg, hannal

[-- Attachment #1: Type: text/plain, Size: 815 bytes --]

As pci_find_device is going away I've replaced it with pci_get_device.
If someone with a PPC64 system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pSeries_pci.c linux-2.6.9-rc3-mm3patch3/arch/ppc64/kernel/pSeries_pci.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pSeries_pci.c	2004-10-07 15:54:30.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch3/arch/ppc64/kernel/pSeries_pci.c	2004-10-08 10:24:00.064501400 -0700
@@ -646,7 +646,7 @@ void __init pSeries_final_fixup(void)
 
 	check_s7a();
 
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+	for_each_pci_dev(dev) {
 		pci_read_irq_line(dev);
 		if (s7a_workaround) {
 			if (dev->irq > 16) {


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 2.6] pSeries_pci.c replace pci_find_device with pci_get_device
  2004-10-08 17:39 ` [KJ] [PATCH 2.6] pSeries_pci.c replace pci_find_device with Hanna Linder
@ 2004-10-08 17:40 ` Hanna Linder
  -1 siblings, 0 replies; 12+ messages in thread
From: Hanna Linder @ 2004-10-08 17:40 UTC (permalink / raw)
  To: lkml; +Cc: kernel-janitors, greg, hannal, paulus, anton


As pci_find_device is going away I've replaced it with pci_get_device.
If someone with a PPC64 system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pSeries_pci.c linux-2.6.9-rc3-mm3patch3/arch/ppc64/kernel/pSeries_pci.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pSeries_pci.c	2004-10-07 15:54:30.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch3/arch/ppc64/kernel/pSeries_pci.c	2004-10-08 10:24:00.064501400 -0700
@@ -646,7 +646,7 @@ void __init pSeries_final_fixup(void)
 
 	check_s7a();
 
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+	for_each_pci_dev(dev) {
 		pci_read_irq_line(dev);
 		if (s7a_workaround) {
 			if (dev->irq > 16) {


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [KJ] [PATCH 2.6] pSeries_pci.c replace pci_find_device with
@ 2004-10-08 17:40 ` Hanna Linder
  0 siblings, 0 replies; 12+ messages in thread
From: Hanna Linder @ 2004-10-08 17:40 UTC (permalink / raw)
  To: lkml; +Cc: kernel-janitors, greg, hannal, paulus, anton

[-- Attachment #1: Type: text/plain, Size: 816 bytes --]


As pci_find_device is going away I've replaced it with pci_get_device.
If someone with a PPC64 system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pSeries_pci.c linux-2.6.9-rc3-mm3patch3/arch/ppc64/kernel/pSeries_pci.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pSeries_pci.c	2004-10-07 15:54:30.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch3/arch/ppc64/kernel/pSeries_pci.c	2004-10-08 10:24:00.064501400 -0700
@@ -646,7 +646,7 @@ void __init pSeries_final_fixup(void)
 
 	check_s7a();
 
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+	for_each_pci_dev(dev) {
 		pci_read_irq_line(dev);
 		if (s7a_workaround) {
 			if (dev->irq > 16) {


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 2.6] iSeries_pci.c replace pci_find_device with pci_get_device
  2004-10-08 17:40 ` [KJ] [PATCH 2.6] pSeries_pci.c replace pci_find_device with Hanna Linder
@ 2004-10-08 17:51   ` Hanna Linder
  -1 siblings, 0 replies; 12+ messages in thread
From: Hanna Linder @ 2004-10-08 17:51 UTC (permalink / raw)
  To: lkml; +Cc: Hanna Linder, kernel-janitors, greg, paulus, anton


As pci_find_device is going away I've replaced it with pci_get_device and pci_dev_put.
If someone with a PPC64 system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

---




diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/iSeries_pci.c linux-2.6.9-rc3-mm3patch/arch/ppc64/kernel/iSeries_pci.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/iSeries_pci.c	2004-09-29 20:05:52.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch/arch/ppc64/kernel/iSeries_pci.c	2004-10-08 10:20:56.576395832 -0700
@@ -216,8 +216,7 @@ void __init iSeries_pci_final_fixup(void
 	mf_displaySrc(0xC9000100);
 
 	printk("pcibios_final_fixup\n");
-	while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev))
-			!= NULL) {
+	for_each_pci_dev(pdev) {
 		node = find_Device_Node(pdev->bus->number, pdev->devfn);
 		printk("pci dev %p (%x.%x), node %p\n", pdev,
 		       pdev->bus->number, pdev->devfn, node);


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [KJ] [PATCH 2.6] iSeries_pci.c replace pci_find_device with
@ 2004-10-08 17:51   ` Hanna Linder
  0 siblings, 0 replies; 12+ messages in thread
From: Hanna Linder @ 2004-10-08 17:51 UTC (permalink / raw)
  To: lkml; +Cc: Hanna Linder, kernel-janitors, greg, paulus, anton

[-- Attachment #1: Type: text/plain, Size: 972 bytes --]


As pci_find_device is going away I've replaced it with pci_get_device and pci_dev_put.
If someone with a PPC64 system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

---




diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/iSeries_pci.c linux-2.6.9-rc3-mm3patch/arch/ppc64/kernel/iSeries_pci.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/iSeries_pci.c	2004-09-29 20:05:52.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch/arch/ppc64/kernel/iSeries_pci.c	2004-10-08 10:20:56.576395832 -0700
@@ -216,8 +216,7 @@ void __init iSeries_pci_final_fixup(void
 	mf_displaySrc(0xC9000100);
 
 	printk("pcibios_final_fixup\n");
-	while ((pdev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, pdev))
-			!= NULL) {
+	for_each_pci_dev(pdev) {
 		node = find_Device_Node(pdev->bus->number, pdev->devfn);
 		printk("pci dev %p (%x.%x), node %p\n", pdev,
 		       pdev->bus->number, pdev->devfn, node);


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 12+ messages in thread

* character device interface to existing socket interface.
  2004-10-08 17:39 ` [KJ] [PATCH 2.6] pSeries_pci.c replace pci_find_device with Hanna Linder
  (?)
@ 2004-10-08 18:13 ` shankar krishnamurthy
  2004-10-08 19:17   ` Neil Horman
  -1 siblings, 1 reply; 12+ messages in thread
From: shankar krishnamurthy @ 2004-10-08 18:13 UTC (permalink / raw)
  To: lkml

I am looking for help in writing character 
device interface for existing socket interface.

Planning to write as kernel module. Kernel 2.4.20. 
It will be a simple pass through to the socket. I mean
it sits above socket and whatever user gives, the 
driver passes it to socket and vice versa. In that
sense its pass-through or a psuedo driver.

When user creates the device, he gives already 
connected socket to device driver. Once device
gets created, user closes the socket!

My hunch is that this looks so common that somebody
would have already written or have some pointer to it.

Somebody may wonder why one needs this ...but for
we can take it as *application specific* requirement.

Please let me know if you know anything about it.


		
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: character device interface to existing socket interface.
  2004-10-08 18:13 ` character device interface to existing socket interface shankar krishnamurthy
@ 2004-10-08 19:17   ` Neil Horman
  0 siblings, 0 replies; 12+ messages in thread
From: Neil Horman @ 2004-10-08 19:17 UTC (permalink / raw)
  To: shankar krishnamurthy; +Cc: lkml

shankar krishnamurthy wrote:
> I am looking for help in writing character 
> device interface for existing socket interface.
> 
> Planning to write as kernel module. Kernel 2.4.20. 
> It will be a simple pass through to the socket. I mean
> it sits above socket and whatever user gives, the 
> driver passes it to socket and vice versa. In that
> sense its pass-through or a psuedo driver.
> 
> When user creates the device, he gives already 
> connected socket to device driver. Once device
> gets created, user closes the socket!
> 
> My hunch is that this looks so common that somebody
> would have already written or have some pointer to it.
> 
> Somebody may wonder why one needs this ...but for
> we can take it as *application specific* requirement.
> 
> Please let me know if you know anything about it.
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail 
> -
> 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/
Something pretty close has already been done in the driver for 
/dev/inet/[tcp|udp|icmp|etc].
Neil

-- 
/***************************************************
  *Neil Horman
  *Software Engineer
  *Red Hat, Inc.
  *nhorman@redhat.com
  *gpg keyid: 1024D / 0x92A74FA1
  *http://pgp.mit.edu
  ***************************************************/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 2.6] pmac_pci.c replace pci_find_device with pci_get_device
  2004-10-08 17:51   ` [KJ] [PATCH 2.6] iSeries_pci.c replace pci_find_device with Hanna Linder
@ 2004-10-08 20:13     ` Hanna Linder
  -1 siblings, 0 replies; 12+ messages in thread
From: Hanna Linder @ 2004-10-08 20:13 UTC (permalink / raw)
  To: lkml; +Cc: Hanna Linder, kernel-janitors, greg, paulus, anton



As pci_find_device is going away I've replaced it with pci_get_device and pci_dev_put.
If someone with a PPC64 system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pmac_pci.c linux-2.6.9-rc3-mm3patch/arch/ppc64/kernel/pmac_pci.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pmac_pci.c	2004-10-07 15:54:29.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch/arch/ppc64/kernel/pmac_pci.c	2004-10-08 10:42:47.000000000 -0700
@@ -669,7 +669,7 @@ void __init pmac_pcibios_fixup(void)
 {
 	struct pci_dev *dev = NULL;
 
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL)
+	for_each_pci_dev(dev)
 		pci_read_irq_line(dev);
 
 	pci_fix_bus_sysdata();


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [KJ] [PATCH 2.6] pmac_pci.c replace pci_find_device with
@ 2004-10-08 20:13     ` Hanna Linder
  0 siblings, 0 replies; 12+ messages in thread
From: Hanna Linder @ 2004-10-08 20:13 UTC (permalink / raw)
  To: lkml; +Cc: Hanna Linder, kernel-janitors, greg, paulus, anton

[-- Attachment #1: Type: text/plain, Size: 807 bytes --]



As pci_find_device is going away I've replaced it with pci_get_device and pci_dev_put.
If someone with a PPC64 system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pmac_pci.c linux-2.6.9-rc3-mm3patch/arch/ppc64/kernel/pmac_pci.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/pmac_pci.c	2004-10-07 15:54:29.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch/arch/ppc64/kernel/pmac_pci.c	2004-10-08 10:42:47.000000000 -0700
@@ -669,7 +669,7 @@ void __init pmac_pcibios_fixup(void)
 {
 	struct pci_dev *dev = NULL;
 
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL)
+	for_each_pci_dev(dev)
 		pci_read_irq_line(dev);
 
 	pci_fix_bus_sysdata();


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 2.6] u3_iommu.c replace pci_find_device with pci_get_device
  2004-10-08 17:51   ` [KJ] [PATCH 2.6] iSeries_pci.c replace pci_find_device with Hanna Linder
@ 2004-10-08 20:17     ` Hanna Linder
  -1 siblings, 0 replies; 12+ messages in thread
From: Hanna Linder @ 2004-10-08 20:17 UTC (permalink / raw)
  To: lkml; +Cc: Hanna Linder, kernel-janitors, greg, paulus, anton


As pci_find_device is going away I've replaced it with pci_get_device and pci_dev_put.
If someone with a PPC64 system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/u3_iommu.c linux-2.6.9-rc3-mm3patch2/arch/ppc64/kernel/u3_iommu.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/u3_iommu.c	2004-09-29 20:05:52.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch2/arch/ppc64/kernel/u3_iommu.c	2004-10-08 13:10:06.883314632 -0700
@@ -290,7 +290,7 @@ void iommu_setup_u3(void)
 	/* We only have one iommu table on the mac for now, which makes
 	 * things simple. Setup all PCI devices to point to this table
 	 */
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+	for_each_pci_dev(dev) {
 		/* We must use pci_device_to_OF_node() to make sure that
 		 * we get the real "final" pointer to the device in the
 		 * pci_dev sysdata and not the temporary PHB one



^ permalink raw reply	[flat|nested] 12+ messages in thread

* [KJ] [PATCH 2.6] u3_iommu.c replace pci_find_device with
@ 2004-10-08 20:17     ` Hanna Linder
  0 siblings, 0 replies; 12+ messages in thread
From: Hanna Linder @ 2004-10-08 20:17 UTC (permalink / raw)
  To: lkml; +Cc: Hanna Linder, kernel-janitors, greg, paulus, anton

[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]


As pci_find_device is going away I've replaced it with pci_get_device and pci_dev_put.
If someone with a PPC64 system could test it I would appreciate it.

Thanks.

Hanna Linder
IBM Linux Technology Center

Signed-off-by: Hanna Linder <hannal@us.ibm.com>

---
diff -Nrup linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/u3_iommu.c linux-2.6.9-rc3-mm3patch2/arch/ppc64/kernel/u3_iommu.c
--- linux-2.6.9-rc3-mm3cln/arch/ppc64/kernel/u3_iommu.c	2004-09-29 20:05:52.000000000 -0700
+++ linux-2.6.9-rc3-mm3patch2/arch/ppc64/kernel/u3_iommu.c	2004-10-08 13:10:06.883314632 -0700
@@ -290,7 +290,7 @@ void iommu_setup_u3(void)
 	/* We only have one iommu table on the mac for now, which makes
 	 * things simple. Setup all PCI devices to point to this table
 	 */
-	while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
+	for_each_pci_dev(dev) {
 		/* We must use pci_device_to_OF_node() to make sure that
 		 * we get the real "final" pointer to the device in the
 		 * pci_dev sysdata and not the temporary PHB one



[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-10-08 20:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-08 17:39 [PATCH 2.6] pSeries_pci.c replace pci_find_device with pci_get_device Hanna Linder
2004-10-08 17:39 ` [KJ] [PATCH 2.6] pSeries_pci.c replace pci_find_device with Hanna Linder
2004-10-08 18:13 ` character device interface to existing socket interface shankar krishnamurthy
2004-10-08 19:17   ` Neil Horman
2004-10-08 17:40 [PATCH 2.6] pSeries_pci.c replace pci_find_device with pci_get_device Hanna Linder
2004-10-08 17:40 ` [KJ] [PATCH 2.6] pSeries_pci.c replace pci_find_device with Hanna Linder
2004-10-08 17:51 ` [PATCH 2.6] iSeries_pci.c replace pci_find_device with pci_get_device Hanna Linder
2004-10-08 17:51   ` [KJ] [PATCH 2.6] iSeries_pci.c replace pci_find_device with Hanna Linder
2004-10-08 20:13   ` [PATCH 2.6] pmac_pci.c replace pci_find_device with pci_get_device Hanna Linder
2004-10-08 20:13     ` [KJ] [PATCH 2.6] pmac_pci.c replace pci_find_device with Hanna Linder
2004-10-08 20:17   ` [PATCH 2.6] u3_iommu.c replace pci_find_device with pci_get_device Hanna Linder
2004-10-08 20:17     ` [KJ] [PATCH 2.6] u3_iommu.c replace pci_find_device with Hanna Linder

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.