All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: Jayamohan Kalickal <jayamohank@serverengines.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [PATCH 1/1] be2iscsi: Adding support for various Async messages from chip
Date: Wed, 25 Nov 2009 19:00:49 -0600	[thread overview]
Message-ID: <4B0DD341.1020600@cs.wisc.edu> (raw)
In-Reply-To: <20091124201120.GA24578@serverengines.com>

Jayamohan Kallickal wrote:
>    This patch allows for future addition of various async messages
> from the chip. This ensures that the driver won't hit a BUG_ON if
> the Firmware used is newer than inbox driver and so is using
> latest async messages.
> 
> The patch was built on the latest tree at
> git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6.git
> 
> Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com>
> ---
>  drivers/scsi/be2iscsi/be_cmds.c |   14 +++++++++-----
>  1 files changed, 9 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/scsi/be2iscsi/be_cmds.c b/drivers/scsi/be2iscsi/be_cmds.c
> index 698a527..bbd3632 100644
> --- a/drivers/scsi/be2iscsi/be_cmds.c
> +++ b/drivers/scsi/be2iscsi/be_cmds.c
> @@ -135,11 +135,15 @@ int beiscsi_process_mcc(struct beiscsi_hba *phba)
>  	while ((compl = be_mcc_compl_get(phba))) {
>  		if (compl->flags & CQE_FLAGS_ASYNC_MASK) {
>  			/* Interpret flags as an async trailer */
> -			BUG_ON(!is_link_state_evt(compl->flags));
> -
> -			/* Interpret compl as a async link evt */
> -			beiscsi_async_link_state_process(phba,
> -				(struct be_async_event_link_state *) compl);
> +			if(is_link_state_evt(compl->flags))
> +				/* Interpret compl as a async link evt */
> +				beiscsi_async_link_state_process(phba,
> +				   (struct be_async_event_link_state *) compl);
> +			else
> +				SE_DEBUG(DBG_LVL_1,
> +					 " Unsupported Async Event, flags"
> +					 " = 0x%08x \n", compl->flags);
> +				
>  		} else if (compl->flags & CQE_FLAGS_COMPLETED_MASK) {
>  				status = be_mcc_compl_process(ctrl, compl);
>  				atomic_dec(&phba->ctrl.mcc_obj.q.used);

Patch looks fine. It just adds some whitespace on a line. When you send 
your patches you might want to run it through git-am --whitespace=fix 
before sending to make sure they are all fixed.

Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>

      reply	other threads:[~2009-11-26  1:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-24 20:11 [PATCH 1/1] be2iscsi: Adding support for various Async messages from chip Jayamohan Kallickal
2009-11-26  1:00 ` Mike Christie [this message]

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=4B0DD341.1020600@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=jayamohank@serverengines.com \
    --cc=linux-scsi@vger.kernel.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 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.