From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Jing Huang <huangj@Brocade.COM>
Cc: Christoph Hellwig <hch@infradead.org>,
Krishna Gudipati <kgudipat@Brocade.com>,
linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
Ramkumar Vadivelu <rvadivel@Brocade.COM>,
Vinodh Ravindran <vravindr@Brocade.COM>
Subject: RE: [PATCH 2/5] bfa: Brocade BFA FC SCSI driver submission
Date: Wed, 28 Jan 2009 17:44:22 +0000 [thread overview]
Message-ID: <1233164662.3236.93.camel@localhost.localdomain> (raw)
In-Reply-To: <4C94DE2070B172459E4F1EE14BD2364E027534DA@HQ-EXCH-5.corp.brocade.com>
On Tue, 2009-01-27 at 15:07 -0800, Jing Huang wrote:
>
> > -----Original Message-----
> > From: Christoph Hellwig [mailto:hch@infradead.org]
> > Sent: Tuesday, January 27, 2009 2:16 PM
> > To: Jing Huang
> > Cc: James.Bottomley@HansenPartnership.com; Krishna Gudipati; linux-
> > kernel@vger.kernel.org; linux-scsi@vger.kernel.org; Ramkumar Vadivelu;
> > Vinodh Ravindran
> > Subject: Re: [PATCH 2/5] bfa: Brocade BFA FC SCSI driver submission
> >
> > On Tue, Jan 27, 2009 at 10:54:07AM -0800, Jing Huang wrote:
> > > +/**
> > > + * Generic HAL callback element.
> > > + */
> > > +struct bfa_cb_qe_s {
> > > + struct bfa_q_s qe;
> > > + bfa_cb_cbfn_t cbfn;
> > > + bfa_boolean_t once;
> > > + u32 rsvd;
> > > + void *cbarg;
> > > +};
> > > +
> > > +#define bfa_cb_queue(__bfa, __hcb_qe, __cbfn, __cbarg) do {
> \
> > > + (__hcb_qe)->cbfn = (__cbfn);
> \
> > > + (__hcb_qe)->cbarg = (__cbarg);
> \
> > > + bfa_q_enq(&(__bfa)->comp_q, (__hcb_qe));
> \
> > > +} while (0)
> >
> > Please stop here, weird HALs and own list management routines are not
> > things we put into the tree. (except for gregs junk subdirectory..)
> >
> > Please rewrite this into a proper Linux driver.
>
>
> Thanks Christoph for the code review,
>
> I will clean up all the HAL references and also replace our own list
> management code with standard linux implementation.
This might take a while. I can offer to put this driver in the staging
tree while you work on it if that would be helpful?
The way the staging tree works is that drivers are held in a separate
area (drivers/staging) in the linux kernel while they're being worked
on. The driver can be installed by users while it's in the staging tree
(so made use of) but it will taint the kernel with a warning that it's
not of linux kernel quality yet. Once we get an acceptable driver in
drivers/staging, I'll move it across to drivers/scsi and remove the
taint.
James
next prev parent reply other threads:[~2009-01-28 17:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-27 18:54 [PATCH 2/5] bfa: Brocade BFA FC SCSI driver submission Jing Huang
2009-01-27 22:16 ` Christoph Hellwig
2009-01-27 23:07 ` Jing Huang
2009-01-28 17:44 ` James Bottomley [this message]
2009-01-28 18:02 ` Jing Huang
2009-01-31 3:32 ` Greg KH
2009-02-01 19:03 ` Jing Huang
2009-02-04 22:46 ` Greg KH
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=1233164662.3236.93.camel@localhost.localdomain \
--to=james.bottomley@hansenpartnership.com \
--cc=hch@infradead.org \
--cc=huangj@Brocade.COM \
--cc=kgudipat@Brocade.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=rvadivel@Brocade.COM \
--cc=vravindr@Brocade.COM \
/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