Commit 083645ba authored by Lee Jones's avatar Lee Jones Committed by Martin K. Petersen

scsi: pm8001: Fix a bunch of kerneldoc issues

Provide lots of missing descriptions, remove some superfluous ones
(probably due to docrot) and demote one header which does not provide many
descriptions, and the ones it does provide are incorrect.

Fixes the following W=1 kernel build warning(s):

 drivers/scsi/pm8001/pm8001_hwi.c:339: warning: Function parameter or member 'number' not described in 'update_inbnd_queue_table'
 drivers/scsi/pm8001/pm8001_hwi.c:360: warning: Function parameter or member 'number' not described in 'update_outbnd_queue_table'
 drivers/scsi/pm8001/pm8001_hwi.c:480: warning: Function parameter or member 'interval' not described in 'mpi_set_open_retry_interval_reg'
 drivers/scsi/pm8001/pm8001_hwi.c:1238: warning: Function parameter or member 'int_vec_idx' not described in 'pm8001_chip_msix_interrupt_enable'
 drivers/scsi/pm8001/pm8001_hwi.c:1256: warning: Function parameter or member 'int_vec_idx' not described in 'pm8001_chip_msix_interrupt_disable'
 drivers/scsi/pm8001/pm8001_hwi.c:1270: warning: Function parameter or member 'vec' not described in 'pm8001_chip_interrupt_enable'
 drivers/scsi/pm8001/pm8001_hwi.c:1284: warning: Function parameter or member 'vec' not described in 'pm8001_chip_interrupt_disable'
 drivers/scsi/pm8001/pm8001_hwi.c:4508: warning: Excess function parameter 'num' description in 'pm8001_chip_phy_start_req'
 drivers/scsi/pm8001/pm8001_hwi.c:4544: warning: Excess function parameter 'num' description in 'pm8001_chip_phy_stop_req'
 drivers/scsi/pm8001/pm8001_hwi.c:4564: warning: Function parameter or member 'pm8001_ha' not described in 'pm8001_chip_reg_dev_req'
 drivers/scsi/pm8001/pm8001_hwi.c:4564: warning: Function parameter or member 'pm8001_dev' not described in 'pm8001_chip_reg_dev_req'
 drivers/scsi/pm8001/pm8001_hwi.c:4564: warning: Function parameter or member 'flag' not described in 'pm8001_chip_reg_dev_req'
 drivers/scsi/pm8001/pm8001_hwi.c:4624: warning: Function parameter or member 'pm8001_ha' not described in 'pm8001_chip_dereg_dev_req'
 drivers/scsi/pm8001/pm8001_hwi.c:4624: warning: Function parameter or member 'device_id' not described in 'pm8001_chip_dereg_dev_req'
 drivers/scsi/pm8001/pm8001_hwi.c:4650: warning: Function parameter or member 'phyId' not described in 'pm8001_chip_phy_ctl_req'
 drivers/scsi/pm8001/pm8001_hwi.c:4650: warning: Function parameter or member 'phy_op' not described in 'pm8001_chip_phy_ctl_req'
 drivers/scsi/pm8001/pm8001_hwi.c:4650: warning: Excess function parameter 'num' description in 'pm8001_chip_phy_ctl_req'
 drivers/scsi/pm8001/pm8001_hwi.c:4650: warning: Excess function parameter 'phy_id' description in 'pm8001_chip_phy_ctl_req'
 drivers/scsi/pm8001/pm8001_hwi.c:4687: warning: Function parameter or member 'vec' not described in 'pm8001_chip_isr'
 drivers/scsi/pm8001/pm8001_hwi.c:4687: warning: Excess function parameter 'irq' description in 'pm8001_chip_isr'
 drivers/scsi/pm8001/pm8001_hwi.c:4687: warning: Excess function parameter 'stat' description in 'pm8001_chip_isr'
 drivers/scsi/pm8001/pm8001_hwi.c:4727: warning: Function parameter or member 'pm8001_ha' not described in 'pm8001_chip_abort_task'
 drivers/scsi/pm8001/pm8001_hwi.c:4727: warning: Function parameter or member 'pm8001_dev' not described in 'pm8001_chip_abort_task'
 drivers/scsi/pm8001/pm8001_hwi.c:4727: warning: Function parameter or member 'task_tag' not described in 'pm8001_chip_abort_task'
 drivers/scsi/pm8001/pm8001_hwi.c:4727: warning: Function parameter or member 'cmd_tag' not described in 'pm8001_chip_abort_task'
 drivers/scsi/pm8001/pm8001_hwi.c:4727: warning: Excess function parameter 'task' description in 'pm8001_chip_abort_task'
 drivers/scsi/pm8001/pm8001_hwi.c:4966: warning: Function parameter or member 'tag' not described in 'pm8001_chip_fw_flash_update_build'

Link: https://lore.kernel.org/r/20200721164148.2617584-17-lee.jones@linaro.org
Cc: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 0683550b
...@@ -333,6 +333,7 @@ static void update_main_config_table(struct pm8001_hba_info *pm8001_ha) ...@@ -333,6 +333,7 @@ static void update_main_config_table(struct pm8001_hba_info *pm8001_ha)
/** /**
* update_inbnd_queue_table - update the inbound queue table to the HBA. * update_inbnd_queue_table - update the inbound queue table to the HBA.
* @pm8001_ha: our hba card information * @pm8001_ha: our hba card information
* @number: entry in the queue
*/ */
static void update_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha, static void update_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha,
int number) int number)
...@@ -354,6 +355,7 @@ static void update_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha, ...@@ -354,6 +355,7 @@ static void update_inbnd_queue_table(struct pm8001_hba_info *pm8001_ha,
/** /**
* update_outbnd_queue_table - update the outbound queue table to the HBA. * update_outbnd_queue_table - update the outbound queue table to the HBA.
* @pm8001_ha: our hba card information * @pm8001_ha: our hba card information
* @number: entry in the queue
*/ */
static void update_outbnd_queue_table(struct pm8001_hba_info *pm8001_ha, static void update_outbnd_queue_table(struct pm8001_hba_info *pm8001_ha,
int number) int number)
...@@ -473,7 +475,7 @@ static void mpi_set_phys_g3_with_ssc(struct pm8001_hba_info *pm8001_ha, ...@@ -473,7 +475,7 @@ static void mpi_set_phys_g3_with_ssc(struct pm8001_hba_info *pm8001_ha,
/** /**
* mpi_set_open_retry_interval_reg * mpi_set_open_retry_interval_reg
* @pm8001_ha: our hba card information * @pm8001_ha: our hba card information
* @interval - interval time for each OPEN_REJECT (RETRY). The units are in 1us. * @interval: interval time for each OPEN_REJECT (RETRY). The units are in 1us.
*/ */
static void mpi_set_open_retry_interval_reg(struct pm8001_hba_info *pm8001_ha, static void mpi_set_open_retry_interval_reg(struct pm8001_hba_info *pm8001_ha,
u32 interval) u32 interval)
...@@ -1231,6 +1233,7 @@ pm8001_chip_intx_interrupt_disable(struct pm8001_hba_info *pm8001_ha) ...@@ -1231,6 +1233,7 @@ pm8001_chip_intx_interrupt_disable(struct pm8001_hba_info *pm8001_ha)
/** /**
* pm8001_chip_msix_interrupt_enable - enable PM8001 chip interrupt * pm8001_chip_msix_interrupt_enable - enable PM8001 chip interrupt
* @pm8001_ha: our hba card information * @pm8001_ha: our hba card information
* @int_vec_idx: interrupt number to enable
*/ */
static void static void
pm8001_chip_msix_interrupt_enable(struct pm8001_hba_info *pm8001_ha, pm8001_chip_msix_interrupt_enable(struct pm8001_hba_info *pm8001_ha,
...@@ -1249,6 +1252,7 @@ pm8001_chip_msix_interrupt_enable(struct pm8001_hba_info *pm8001_ha, ...@@ -1249,6 +1252,7 @@ pm8001_chip_msix_interrupt_enable(struct pm8001_hba_info *pm8001_ha,
/** /**
* pm8001_chip_msix_interrupt_disable - disable PM8001 chip interrupt * pm8001_chip_msix_interrupt_disable - disable PM8001 chip interrupt
* @pm8001_ha: our hba card information * @pm8001_ha: our hba card information
* @int_vec_idx: interrupt number to disable
*/ */
static void static void
pm8001_chip_msix_interrupt_disable(struct pm8001_hba_info *pm8001_ha, pm8001_chip_msix_interrupt_disable(struct pm8001_hba_info *pm8001_ha,
...@@ -1264,6 +1268,7 @@ pm8001_chip_msix_interrupt_disable(struct pm8001_hba_info *pm8001_ha, ...@@ -1264,6 +1268,7 @@ pm8001_chip_msix_interrupt_disable(struct pm8001_hba_info *pm8001_ha,
/** /**
* pm8001_chip_interrupt_enable - enable PM8001 chip interrupt * pm8001_chip_interrupt_enable - enable PM8001 chip interrupt
* @pm8001_ha: our hba card information * @pm8001_ha: our hba card information
* @vec: unused
*/ */
static void static void
pm8001_chip_interrupt_enable(struct pm8001_hba_info *pm8001_ha, u8 vec) pm8001_chip_interrupt_enable(struct pm8001_hba_info *pm8001_ha, u8 vec)
...@@ -1278,6 +1283,7 @@ pm8001_chip_interrupt_enable(struct pm8001_hba_info *pm8001_ha, u8 vec) ...@@ -1278,6 +1283,7 @@ pm8001_chip_interrupt_enable(struct pm8001_hba_info *pm8001_ha, u8 vec)
/** /**
* pm8001_chip_intx_interrupt_disable- disable PM8001 chip interrupt * pm8001_chip_intx_interrupt_disable- disable PM8001 chip interrupt
* @pm8001_ha: our hba card information * @pm8001_ha: our hba card information
* @vec: unused
*/ */
static void static void
pm8001_chip_interrupt_disable(struct pm8001_hba_info *pm8001_ha, u8 vec) pm8001_chip_interrupt_disable(struct pm8001_hba_info *pm8001_ha, u8 vec)
...@@ -4500,7 +4506,6 @@ static int pm8001_chip_sata_req(struct pm8001_hba_info *pm8001_ha, ...@@ -4500,7 +4506,6 @@ static int pm8001_chip_sata_req(struct pm8001_hba_info *pm8001_ha,
/** /**
* pm8001_chip_phy_start_req - start phy via PHY_START COMMAND * pm8001_chip_phy_start_req - start phy via PHY_START COMMAND
* @pm8001_ha: our hba card information. * @pm8001_ha: our hba card information.
* @num: the inbound queue number
* @phy_id: the phy id which we wanted to start up. * @phy_id: the phy id which we wanted to start up.
*/ */
static int static int
...@@ -4536,7 +4541,6 @@ pm8001_chip_phy_start_req(struct pm8001_hba_info *pm8001_ha, u8 phy_id) ...@@ -4536,7 +4541,6 @@ pm8001_chip_phy_start_req(struct pm8001_hba_info *pm8001_ha, u8 phy_id)
/** /**
* pm8001_chip_phy_stop_req - start phy via PHY_STOP COMMAND * pm8001_chip_phy_stop_req - start phy via PHY_STOP COMMAND
* @pm8001_ha: our hba card information. * @pm8001_ha: our hba card information.
* @num: the inbound queue number
* @phy_id: the phy id which we wanted to start up. * @phy_id: the phy id which we wanted to start up.
*/ */
static int pm8001_chip_phy_stop_req(struct pm8001_hba_info *pm8001_ha, static int pm8001_chip_phy_stop_req(struct pm8001_hba_info *pm8001_ha,
...@@ -4556,7 +4560,7 @@ static int pm8001_chip_phy_stop_req(struct pm8001_hba_info *pm8001_ha, ...@@ -4556,7 +4560,7 @@ static int pm8001_chip_phy_stop_req(struct pm8001_hba_info *pm8001_ha,
return ret; return ret;
} }
/** /*
* see comments on pm8001_mpi_reg_resp. * see comments on pm8001_mpi_reg_resp.
*/ */
static int pm8001_chip_reg_dev_req(struct pm8001_hba_info *pm8001_ha, static int pm8001_chip_reg_dev_req(struct pm8001_hba_info *pm8001_ha,
...@@ -4616,7 +4620,7 @@ static int pm8001_chip_reg_dev_req(struct pm8001_hba_info *pm8001_ha, ...@@ -4616,7 +4620,7 @@ static int pm8001_chip_reg_dev_req(struct pm8001_hba_info *pm8001_ha,
return rc; return rc;
} }
/** /*
* see comments on pm8001_mpi_reg_resp. * see comments on pm8001_mpi_reg_resp.
*/ */
int pm8001_chip_dereg_dev_req(struct pm8001_hba_info *pm8001_ha, int pm8001_chip_dereg_dev_req(struct pm8001_hba_info *pm8001_ha,
...@@ -4641,7 +4645,6 @@ int pm8001_chip_dereg_dev_req(struct pm8001_hba_info *pm8001_ha, ...@@ -4641,7 +4645,6 @@ int pm8001_chip_dereg_dev_req(struct pm8001_hba_info *pm8001_ha,
/** /**
* pm8001_chip_phy_ctl_req - support the local phy operation * pm8001_chip_phy_ctl_req - support the local phy operation
* @pm8001_ha: our hba card information. * @pm8001_ha: our hba card information.
* @num: the inbound queue number
* @phy_id: the phy id which we wanted to operate * @phy_id: the phy id which we wanted to operate
* @phy_op: * @phy_op:
*/ */
...@@ -4679,7 +4682,6 @@ static u32 pm8001_chip_is_our_interrupt(struct pm8001_hba_info *pm8001_ha) ...@@ -4679,7 +4682,6 @@ static u32 pm8001_chip_is_our_interrupt(struct pm8001_hba_info *pm8001_ha)
/** /**
* pm8001_chip_isr - PM8001 isr handler. * pm8001_chip_isr - PM8001 isr handler.
* @pm8001_ha: our hba card information. * @pm8001_ha: our hba card information.
* @irq: irq number.
* @stat: stat. * @stat: stat.
*/ */
static irqreturn_t static irqreturn_t
...@@ -4717,10 +4719,8 @@ static int send_task_abort(struct pm8001_hba_info *pm8001_ha, u32 opc, ...@@ -4717,10 +4719,8 @@ static int send_task_abort(struct pm8001_hba_info *pm8001_ha, u32 opc,
return ret; return ret;
} }
/** /*
* pm8001_chip_abort_task - SAS abort task when error or exception happened. * pm8001_chip_abort_task - SAS abort task when error or exception happened.
* @task: the task we wanted to aborted.
* @flag: the abort flag.
*/ */
int pm8001_chip_abort_task(struct pm8001_hba_info *pm8001_ha, int pm8001_chip_abort_task(struct pm8001_hba_info *pm8001_ha,
struct pm8001_device *pm8001_dev, u8 flag, u32 task_tag, u32 cmd_tag) struct pm8001_device *pm8001_dev, u8 flag, u32 task_tag, u32 cmd_tag)
...@@ -4959,6 +4959,7 @@ int pm8001_chip_set_nvmd_req(struct pm8001_hba_info *pm8001_ha, ...@@ -4959,6 +4959,7 @@ int pm8001_chip_set_nvmd_req(struct pm8001_hba_info *pm8001_ha,
* pm8001_chip_fw_flash_update_build - support the firmware update operation * pm8001_chip_fw_flash_update_build - support the firmware update operation
* @pm8001_ha: our hba card information. * @pm8001_ha: our hba card information.
* @fw_flash_updata_info: firmware flash update param * @fw_flash_updata_info: firmware flash update param
* @tag: Tag to apply to the payload
*/ */
int int
pm8001_chip_fw_flash_update_build(struct pm8001_hba_info *pm8001_ha, pm8001_chip_fw_flash_update_build(struct pm8001_hba_info *pm8001_ha,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment