diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-06 20:48:34 -0400 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-08-06 20:48:34 -0400 | 
| commit | bced13738405b62c8203df9c103d4ba63d747872 (patch) | |
| tree | 566795dc7493591182668a94855487dff034a2b3 /drivers/message/fusion/mptbase.c | |
| parent | 21f16289270447673a7263ccc0b22d562fb01ecb (diff) | |
| parent | 2b053729a84b6aac197df51b8729bc9fec743bff (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6: (32 commits)
  [SCSI] aacraid: prevent panic on adapter resource failure
  [SCSI] aha152x: use data accessors and !use_sg cleanup
  [SCSI] aha152x: Fix check_condition code-path
  [SCSI] aha152x: Clean Reset path
  [SCSI] aha152x: preliminary fixes and some comments
  [SCSI] aha152x: use bounce buffer
  [SCSI] aha152x: fix debug mode symbol conflict
  [SCSI] sd: disentangle barriers in SCSI
  [SCSI] lpfc : scsi command accessor fix for 8.2.2
  [SCSI] qlogicpti: Some cosmetic changes
  [SCSI] lpfc 8.2.2 : Change version number to 8.2.2
  [SCSI] lpfc 8.2.2 : Style cleanups
  [SCSI] lpfc 8.2.2 : Miscellaneous Bug Fixes
  [SCSI] lpfc 8.2.2 : Miscellaneous management and logging mods
  [SCSI] lpfc 8.2.2 : Rework the lpfc_printf_log() macro
  [SCSI] lpfc 8.2.2 : Attribute and Parameter splits for vport and physical port
  [SCSI] lpfc 8.2.2 : Fix locking around HBA's port_list
  [SCSI] lpfc 8.2.2 : Error messages and debugfs updates
  [SCSI] initialize shost_data to zero
  [SCSI] mptsas: add SMP passthrough support via bsg
  ...
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
| -rw-r--r-- | drivers/message/fusion/mptbase.c | 17 | 
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index e866dacde7e5..414c109f4cf5 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c  | |||
| @@ -88,7 +88,9 @@ module_param(mpt_channel_mapping, int, 0); | |||
| 88 | MODULE_PARM_DESC(mpt_channel_mapping, " Mapping id's to channels (default=0)"); | 88 | MODULE_PARM_DESC(mpt_channel_mapping, " Mapping id's to channels (default=0)"); | 
| 89 | 89 | ||
| 90 | static int mpt_debug_level; | 90 | static int mpt_debug_level; | 
| 91 | module_param(mpt_debug_level, int, 0); | 91 | static int mpt_set_debug_level(const char *val, struct kernel_param *kp); | 
| 92 | module_param_call(mpt_debug_level, mpt_set_debug_level, param_get_int, | ||
| 93 | &mpt_debug_level, 0600); | ||
| 92 | MODULE_PARM_DESC(mpt_debug_level, " debug level - refer to mptdebug.h - (default=0)"); | 94 | MODULE_PARM_DESC(mpt_debug_level, " debug level - refer to mptdebug.h - (default=0)"); | 
| 93 | 95 | ||
| 94 | #ifdef MFCNT | 96 | #ifdef MFCNT | 
| @@ -220,6 +222,19 @@ pci_enable_io_access(struct pci_dev *pdev) | |||
| 220 | pci_write_config_word(pdev, PCI_COMMAND, command_reg); | 222 | pci_write_config_word(pdev, PCI_COMMAND, command_reg); | 
| 221 | } | 223 | } | 
| 222 | 224 | ||
| 225 | static int mpt_set_debug_level(const char *val, struct kernel_param *kp) | ||
| 226 | { | ||
| 227 | int ret = param_set_int(val, kp); | ||
| 228 | MPT_ADAPTER *ioc; | ||
| 229 | |||
| 230 | if (ret) | ||
| 231 | return ret; | ||
| 232 | |||
| 233 | list_for_each_entry(ioc, &ioc_list, list) | ||
| 234 | ioc->debug_level = mpt_debug_level; | ||
| 235 | return 0; | ||
| 236 | } | ||
| 237 | |||
| 223 | /* | 238 | /* | 
| 224 | * Process turbo (context) reply... | 239 | * Process turbo (context) reply... | 
| 225 | */ | 240 | */ | 
