mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Francois Romieu <romieu@fr.zoreil.com>
To: jt@hpl.hp.com
Cc: "David S. Miller" <davem@redhat.com>,
	Jeff Garzik <jgarzik@pobox.com>,
	Linux kernel mailing list <linux-kernel@vger.kernel.org>,
	Stephen Hemminger <shemminger@osdl.org>
Subject: Re: [PATCH 2.6 IrDA] new driver : stir4200
Date: Sat, 14 Feb 2004 13:56:09 +0100	[thread overview]
Message-ID: <20040214135609.A19450@electric-eye.fr.zoreil.com> (raw)
In-Reply-To: <20040214015059.GA25979@bougret.hpl.hp.com>; from jt@bougret.hpl.hp.com on Fri, Feb 13, 2004 at 05:50:59PM -0800

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

Jean Tourrilhes <jt@bougret.hpl.hp.com> :
[...]
> 	After a long maturation, this is time to send you the latest
> version of the stir4200 USB driver. Initially started by Paul Stewart,
> modified by Martin Diehl and me, and later partially rewriten by
> Stephen Hemminger.

Fix + minor change attached.

--
Ueimor

[-- Attachment #2: stir4200-bad-return-status.patch --]
[-- Type: text/plain, Size: 1066 bytes --]


If stir_reset() succeeds, stir_net_open() must not return a success status
code for every failure until irlap_open().


 drivers/net/irda/stir4200.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -puN drivers/net/irda/stir4200.c~stir4200-bad-return-status drivers/net/irda/stir4200.c
--- linux-2.6.3-rc1-mm1/drivers/net/irda/stir4200.c~stir4200-bad-return-status	2004-02-14 13:35:21.000000000 +0100
+++ linux-2.6.3-rc1-mm1-fr/drivers/net/irda/stir4200.c	2004-02-14 13:48:57.000000000 +0100
@@ -913,6 +913,8 @@ static int stir_net_open(struct net_devi
 	if (err)
 		goto err_out1;
 
+	err = -ENOMEM;
+
 	/* Note: Max SIR frame possible is 4273 */
 	stir->tx_data = kmalloc(STIR_FIFO_SIZE, GFP_KERNEL);
 	if (!stir->tx_data) {
@@ -956,7 +958,6 @@ static int stir_net_open(struct net_devi
 	 * Note : will send immediately a speed change...
 	 */
 	sprintf(hwname, "usb#%d", stir->usbdev->devnum);
-	err = -ENOMEM;
 	stir->irlap = irlap_open(netdev, &stir->qos, hwname);
 	if (!stir->irlap) {
 		ERROR("%s(): irlap_open failed\n", __FUNCTION__);

_

[-- Attachment #3: stir4200-late-netif-start-queue.patch --]
[-- Type: text/plain, Size: 828 bytes --]


Defer netif_start_queue() until device opening succeeds.


 drivers/net/irda/stir4200.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/net/irda/stir4200.c~stir4200-late-netif-start-queue drivers/net/irda/stir4200.c
--- linux-2.6.3-rc1-mm1/drivers/net/irda/stir4200.c~stir4200-late-netif-start-queue	2004-02-14 13:35:47.000000000 +0100
+++ linux-2.6.3-rc1-mm1-fr/drivers/net/irda/stir4200.c	2004-02-14 13:36:33.000000000 +0100
@@ -950,8 +950,6 @@ static int stir_net_open(struct net_devi
 		}
 	}
 
-	netif_start_queue(netdev);
-
 	/*
 	 * Now that everything should be initialized properly,
 	 * Open new IrLAP layer instance to take care of us...
@@ -974,6 +972,8 @@ static int stir_net_open(struct net_devi
 		goto err_out4;
 	}
 
+	netif_start_queue(netdev);
+
 	return 0;
 
  err_out4:

_

  parent reply	other threads:[~2004-02-14 13:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-14  1:50 Jean Tourrilhes
2004-02-14  4:21 ` viro
2004-02-14  7:06 ` David S. Miller
2004-02-14 12:56 ` Francois Romieu [this message]
2004-02-14 20:40   ` David S. Miller

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=20040214135609.A19450@electric-eye.fr.zoreil.com \
    --to=romieu@fr.zoreil.com \
    --cc=davem@redhat.com \
    --cc=jgarzik@pobox.com \
    --cc=jt@hpl.hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shemminger@osdl.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®