Skip to content

Commit ef5bef3

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (37 commits) [SCSI] zfcp: fix double dbf id usage [SCSI] zfcp: wait on SCSI work to be finished before proceeding with init dev [SCSI] zfcp: fix erp list usage without using locks [SCSI] zfcp: prevent fc_remote_port_delete calls for unregistered rport [SCSI] zfcp: fix deadlock caused by shared work queue tasks [SCSI] zfcp: put threshold data in hba trace [SCSI] zfcp: Simplify zfcp data structures [SCSI] zfcp: Simplify get_adapter_by_busid [SCSI] zfcp: remove all typedefs and replace them with standards [SCSI] zfcp: attach and release SAN nameserver port on demand [SCSI] zfcp: remove unused references, declarations and flags [SCSI] zfcp: Update message with input from review [SCSI] zfcp: add queue_full sysfs attribute [SCSI] scsi_dh: suppress comparison warning [SCSI] scsi_dh: add Dell product information into rdac device handler [SCSI] qla2xxx: remove the unused SCSI_QLOGIC_FC_FIRMWARE option [SCSI] qla2xxx: fix printk format warnings [SCSI] qla2xxx: Update version number to 8.02.01-k8. [SCSI] qla2xxx: Ignore payload reserved-bits during RSCN processing. [SCSI] qla2xxx: Additional residual-count corrections during UNDERRUN handling. ...
2 parents e26feff + 41bfcf9 commit ef5bef3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2107
-1112
lines changed

Documentation/scsi/scsi_fc_transport.txt

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,42 @@ Other:
436436
was updated to remove all vports for the fc_host as well.
437437

438438

439+
Transport supplied functions
440+
----------------------------
441+
442+
The following functions are supplied by the FC-transport for use by LLDs.
443+
444+
fc_vport_create - create a vport
445+
fc_vport_terminate - detach and remove a vport
446+
447+
Details:
448+
449+
/**
450+
* fc_vport_create - Admin App or LLDD requests creation of a vport
451+
* @shost: scsi host the virtual port is connected to.
452+
* @ids: The world wide names, FC4 port roles, etc for
453+
* the virtual port.
454+
*
455+
* Notes:
456+
* This routine assumes no locks are held on entry.
457+
*/
458+
struct fc_vport *
459+
fc_vport_create(struct Scsi_Host *shost, struct fc_vport_identifiers *ids)
460+
461+
/**
462+
* fc_vport_terminate - Admin App or LLDD requests termination of a vport
463+
* @vport: fc_vport to be terminated
464+
*
465+
* Calls the LLDD vport_delete() function, then deallocates and removes
466+
* the vport from the shost and object tree.
467+
*
468+
* Notes:
469+
* This routine assumes no locks are held on entry.
470+
*/
471+
int
472+
fc_vport_terminate(struct fc_vport *vport)
473+
474+
439475
Credits
440476
=======
441477
The following people have contributed to this document:

drivers/mmc/card/block.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <linux/blkdev.h>
3030
#include <linux/mutex.h>
3131
#include <linux/scatterlist.h>
32+
#include <linux/string_helpers.h>
3233

3334
#include <linux/mmc/card.h>
3435
#include <linux/mmc/host.h>
@@ -532,6 +533,8 @@ static int mmc_blk_probe(struct mmc_card *card)
532533
struct mmc_blk_data *md;
533534
int err;
534535

536+
char cap_str[10];
537+
535538
/*
536539
* Check that the card supports the command class(es) we need.
537540
*/
@@ -546,10 +549,11 @@ static int mmc_blk_probe(struct mmc_card *card)
546549
if (err)
547550
goto out;
548551

549-
printk(KERN_INFO "%s: %s %s %lluKiB %s\n",
552+
string_get_size(get_capacity(md->disk) << 9, STRING_UNITS_2,
553+
cap_str, sizeof(cap_str));
554+
printk(KERN_INFO "%s: %s %s %s %s\n",
550555
md->disk->disk_name, mmc_card_id(card), mmc_card_name(card),
551-
(unsigned long long)(get_capacity(md->disk) >> 1),
552-
md->read_only ? "(ro)" : "");
556+
cap_str, md->read_only ? "(ro)" : "");
553557

554558
mmc_set_drvdata(card, md);
555559
add_disk(md->disk);

0 commit comments

Comments
 (0)