aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJoe Eykholt <jeykholt@cisco.com>2009-10-21 19:27:17 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-12-04 13:00:28 -0500
commit1b69bc062c2a4c8f3e15ac69f487afec3aa8d774 (patch)
tree26a8773af2534a5fe1965d1752dbe784ede53186 /drivers
parent4347fa66878e079766258bc0d077c350cb31a799 (diff)
[SCSI] libfc: lport: fix minor documentation errors
Fix minor errors. A debug message said an RLIR was received instead of ECHO. "Expected" was misspelled in several places. Fix a type cast from u32 to __be32. Rob, Some of these may have been also taken care of in your other doc cleanup patch. Feel free to fold them in. Signed-off-by: Joe Eykholt <jeykholt@cisco.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/libfc/fc_lport.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index bd2f77197447..eefe87d8efb3 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -329,7 +329,7 @@ static void fc_lport_add_fc4_type(struct fc_lport *lport, enum fc_fh_type type)
329 * @sp: current sequence in the RLIR exchange 329 * @sp: current sequence in the RLIR exchange
330 * @fp: RLIR request frame 330 * @fp: RLIR request frame
331 * 331 *
332 * Locking Note: The lport lock is exected to be held before calling 332 * Locking Note: The lport lock is expected to be held before calling
333 * this function. 333 * this function.
334 */ 334 */
335static void fc_lport_recv_rlir_req(struct fc_seq *sp, struct fc_frame *fp, 335static void fc_lport_recv_rlir_req(struct fc_seq *sp, struct fc_frame *fp,
@@ -348,7 +348,7 @@ static void fc_lport_recv_rlir_req(struct fc_seq *sp, struct fc_frame *fp,
348 * @sp: current sequence in the ECHO exchange 348 * @sp: current sequence in the ECHO exchange
349 * @fp: ECHO request frame 349 * @fp: ECHO request frame
350 * 350 *
351 * Locking Note: The lport lock is exected to be held before calling 351 * Locking Note: The lport lock is expected to be held before calling
352 * this function. 352 * this function.
353 */ 353 */
354static void fc_lport_recv_echo_req(struct fc_seq *sp, struct fc_frame *in_fp, 354static void fc_lport_recv_echo_req(struct fc_seq *sp, struct fc_frame *in_fp,
@@ -361,7 +361,7 @@ static void fc_lport_recv_echo_req(struct fc_seq *sp, struct fc_frame *in_fp,
361 void *dp; 361 void *dp;
362 u32 f_ctl; 362 u32 f_ctl;
363 363
364 FC_LPORT_DBG(lport, "Received RLIR request while in state %s\n", 364 FC_LPORT_DBG(lport, "Received ECHO request while in state %s\n",
365 fc_lport_state(lport)); 365 fc_lport_state(lport));
366 366
367 len = fr_len(in_fp) - sizeof(struct fc_frame_header); 367 len = fr_len(in_fp) - sizeof(struct fc_frame_header);
@@ -374,7 +374,7 @@ static void fc_lport_recv_echo_req(struct fc_seq *sp, struct fc_frame *in_fp,
374 if (fp) { 374 if (fp) {
375 dp = fc_frame_payload_get(fp, len); 375 dp = fc_frame_payload_get(fp, len);
376 memcpy(dp, pp, len); 376 memcpy(dp, pp, len);
377 *((u32 *)dp) = htonl(ELS_LS_ACC << 24); 377 *((__be32 *)dp) = htonl(ELS_LS_ACC << 24);
378 sp = lport->tt.seq_start_next(sp); 378 sp = lport->tt.seq_start_next(sp);
379 f_ctl = FC_FC_EX_CTX | FC_FC_LAST_SEQ | FC_FC_END_SEQ; 379 f_ctl = FC_FC_EX_CTX | FC_FC_LAST_SEQ | FC_FC_END_SEQ;
380 fc_fill_fc_hdr(fp, FC_RCTL_ELS_REP, ep->did, ep->sid, 380 fc_fill_fc_hdr(fp, FC_RCTL_ELS_REP, ep->did, ep->sid,
@@ -385,12 +385,12 @@ static void fc_lport_recv_echo_req(struct fc_seq *sp, struct fc_frame *in_fp,
385} 385}
386 386
387/** 387/**
388 * fc_lport_recv_echo_req() - Handle received Request Node ID data request 388 * fc_lport_recv_rnid_req() - Handle received Request Node ID data request
389 * @lport: Fibre Channel local port recieving the RNID 389 * @sp: The sequence in the RNID exchange
390 * @sp: current sequence in the RNID exchange 390 * @fp: The RNID request frame
391 * @fp: RNID request frame 391 * @lport: The local port recieving the RNID
392 * 392 *
393 * Locking Note: The lport lock is exected to be held before calling 393 * Locking Note: The lport lock is expected to be held before calling
394 * this function. 394 * this function.
395 */ 395 */
396static void fc_lport_recv_rnid_req(struct fc_seq *sp, struct fc_frame *in_fp, 396static void fc_lport_recv_rnid_req(struct fc_seq *sp, struct fc_frame *in_fp,
@@ -667,7 +667,7 @@ static void fc_lport_enter_ready(struct fc_lport *lport)
667 * Accept it with the common service parameters indicating our N port. 667 * Accept it with the common service parameters indicating our N port.
668 * Set up to do a PLOGI if we have the higher-number WWPN. 668 * Set up to do a PLOGI if we have the higher-number WWPN.
669 * 669 *
670 * Locking Note: The lport lock is exected to be held before calling 670 * Locking Note: The lport lock is expected to be held before calling
671 * this function. 671 * this function.
672 */ 672 */
673static void fc_lport_recv_flogi_req(struct fc_seq *sp_in, 673static void fc_lport_recv_flogi_req(struct fc_seq *sp_in,