Commit 7292a8b0 authored by Lee Jones's avatar Lee Jones Committed by Martin K. Petersen

scsi: isci: port: Fix a bunch of kernel-doc issues

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

 drivers/scsi/isci/port.c:130: warning: Function parameter or member 'iport' not described in 'sci_port_get_properties'
 drivers/scsi/isci/port.c:130: warning: Function parameter or member 'prop' not described in 'sci_port_get_properties'
 drivers/scsi/isci/port.c:130: warning: Excess function parameter 'port' description in 'sci_port_get_properties'
 drivers/scsi/isci/port.c:130: warning: Excess function parameter 'properties' description in 'sci_port_get_properties'
 drivers/scsi/isci/port.c:243: warning: Function parameter or member 'isci_phy' not described in 'isci_port_link_down'
 drivers/scsi/isci/port.c:243: warning: Function parameter or member 'isci_port' not described in 'isci_port_link_down'
 drivers/scsi/isci/port.c:243: warning: Excess function parameter 'phy' description in 'isci_port_link_down'
 drivers/scsi/isci/port.c:243: warning: Excess function parameter 'port' description in 'isci_port_link_down'
 drivers/scsi/isci/port.c:318: warning: Function parameter or member 'isci_port' not described in 'isci_port_hard_reset_complete'
 drivers/scsi/isci/port.c:318: warning: Excess function parameter 'port' description in 'isci_port_hard_reset_complete'
 drivers/scsi/isci/port.c:398: warning: Cannot understand  *
 drivers/scsi/isci/port.c:544: warning: Function parameter or member 'iport' not described in 'sci_port_construct_dummy_rnc'
 drivers/scsi/isci/port.c:544: warning: Excess function parameter 'sci_port' description in 'sci_port_construct_dummy_rnc'
 drivers/scsi/isci/port.c:692: warning: Function parameter or member 'iport' not described in 'sci_port_general_link_up_handler'
 drivers/scsi/isci/port.c:692: warning: Function parameter or member 'iphy' not described in 'sci_port_general_link_up_handler'
 drivers/scsi/isci/port.c:692: warning: Excess function parameter 'sci_port' description in 'sci_port_general_link_up_handler'
 drivers/scsi/isci/port.c:692: warning: Excess function parameter 'sci_phy' description in 'sci_port_general_link_up_handler'
 drivers/scsi/isci/port.c:719: warning: wrong kernel-doc identifier on line:
 drivers/scsi/isci/port.c:756: warning: Function parameter or member 'iport' not described in 'sci_port_link_detected'
 drivers/scsi/isci/port.c:756: warning: Function parameter or member 'iphy' not described in 'sci_port_link_detected'
 drivers/scsi/isci/port.c:756: warning: expecting prototype for if the(). Prototype was for sci_port_link_detected() instead
 drivers/scsi/isci/port.c:821: warning: wrong kernel-doc identifier on line:
 drivers/scsi/isci/port.c:885: warning: Function parameter or member 'iport' not described in 'sci_port_post_dummy_request'
 drivers/scsi/isci/port.c:885: warning: Excess function parameter 'sci_port' description in 'sci_port_post_dummy_request'
 drivers/scsi/isci/port.c:909: warning: Function parameter or member 'iport' not described in 'sci_port_abort_dummy_request'
 drivers/scsi/isci/port.c:909: warning: expecting prototype for This will alow the hardware to(). Prototype was for sci_port_abort_dummy_request() instead
 drivers/scsi/isci/port.c:926: warning: Cannot understand  *
 drivers/scsi/isci/port.c:1017: warning: Cannot understand  *
 drivers/scsi/isci/port.c:1199: warning: Function parameter or member 'iport' not described in 'sci_port_add_phy'
 drivers/scsi/isci/port.c:1199: warning: Function parameter or member 'iphy' not described in 'sci_port_add_phy'
 drivers/scsi/isci/port.c:1199: warning: Excess function parameter 'sci_port' description in 'sci_port_add_phy'
 drivers/scsi/isci/port.c:1199: warning: Excess function parameter 'sci_phy' description in 'sci_port_add_phy'
 drivers/scsi/isci/port.c:1270: warning: Function parameter or member 'iport' not described in 'sci_port_remove_phy'
 drivers/scsi/isci/port.c:1270: warning: Function parameter or member 'iphy' not described in 'sci_port_remove_phy'
 drivers/scsi/isci/port.c:1270: warning: Excess function parameter 'sci_port' description in 'sci_port_remove_phy'
 drivers/scsi/isci/port.c:1270: warning: Excess function parameter 'sci_phy' description in 'sci_port_remove_phy'

[mkp: fixed typo alow->allow]

Link: https://lore.kernel.org/r/20210317091230.2912389-29-lee.jones@linaro.org
Cc: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: linux-scsi@vger.kernel.org
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent a8604e44
...@@ -115,9 +115,9 @@ static u32 sci_port_get_phys(struct isci_port *iport) ...@@ -115,9 +115,9 @@ static u32 sci_port_get_phys(struct isci_port *iport)
/** /**
* sci_port_get_properties() - This method simply returns the properties * sci_port_get_properties() - This method simply returns the properties
* regarding the port, such as: physical index, protocols, sas address, etc. * regarding the port, such as: physical index, protocols, sas address, etc.
* @port: this parameter specifies the port for which to retrieve the physical * @iport: this parameter specifies the port for which to retrieve the physical
* index. * index.
* @properties: This parameter specifies the properties structure into which to * @prop: This parameter specifies the properties structure into which to
* copy the requested information. * copy the requested information.
* *
* Indicate if the user specified a valid port. SCI_SUCCESS This value is * Indicate if the user specified a valid port. SCI_SUCCESS This value is
...@@ -233,8 +233,8 @@ static void isci_port_link_up(struct isci_host *isci_host, ...@@ -233,8 +233,8 @@ static void isci_port_link_up(struct isci_host *isci_host,
* isci_port_link_down() - This function is called by the sci core when a link * isci_port_link_down() - This function is called by the sci core when a link
* becomes inactive. * becomes inactive.
* @isci_host: This parameter specifies the isci host object. * @isci_host: This parameter specifies the isci host object.
* @phy: This parameter specifies the isci phy with the active link. * @isci_phy: This parameter specifies the isci phy with the active link.
* @port: This parameter specifies the isci port with the active link. * @isci_port: This parameter specifies the isci port with the active link.
* *
*/ */
static void isci_port_link_down(struct isci_host *isci_host, static void isci_port_link_down(struct isci_host *isci_host,
...@@ -308,7 +308,7 @@ static void port_state_machine_change(struct isci_port *iport, ...@@ -308,7 +308,7 @@ static void port_state_machine_change(struct isci_port *iport,
/** /**
* isci_port_hard_reset_complete() - This function is called by the sci core * isci_port_hard_reset_complete() - This function is called by the sci core
* when the hard reset complete notification has been received. * when the hard reset complete notification has been received.
* @port: This parameter specifies the sci port with the active link. * @isci_port: This parameter specifies the sci port with the active link.
* @completion_status: This parameter specifies the core status for the reset * @completion_status: This parameter specifies the core status for the reset
* process. * process.
* *
...@@ -395,9 +395,10 @@ bool sci_port_is_valid_phy_assignment(struct isci_port *iport, u32 phy_index) ...@@ -395,9 +395,10 @@ bool sci_port_is_valid_phy_assignment(struct isci_port *iport, u32 phy_index)
} }
/** /**
* * sci_port_is_phy_mask_valid()
* @sci_port: This is the port object for which to determine if the phy mask * @iport: This is the port object for which to determine if the phy mask
* can be supported. * can be supported.
* @phy_mask: Phy mask belonging to this port
* *
* This method will return a true value if the port's phy mask can be supported * This method will return a true value if the port's phy mask can be supported
* by the SCU. The following is a list of valid PHY mask configurations for * by the SCU. The following is a list of valid PHY mask configurations for
...@@ -533,7 +534,7 @@ void sci_port_get_attached_sas_address(struct isci_port *iport, struct sci_sas_a ...@@ -533,7 +534,7 @@ void sci_port_get_attached_sas_address(struct isci_port *iport, struct sci_sas_a
/** /**
* sci_port_construct_dummy_rnc() - create dummy rnc for si workaround * sci_port_construct_dummy_rnc() - create dummy rnc for si workaround
* *
* @sci_port: logical port on which we need to create the remote node context * @iport: logical port on which we need to create the remote node context
* @rni: remote node index for this remote node context. * @rni: remote node index for this remote node context.
* *
* This routine will construct a dummy remote node context data structure * This routine will construct a dummy remote node context data structure
...@@ -677,8 +678,8 @@ static void sci_port_invalid_link_up(struct isci_port *iport, struct isci_phy *i ...@@ -677,8 +678,8 @@ static void sci_port_invalid_link_up(struct isci_port *iport, struct isci_phy *i
/** /**
* sci_port_general_link_up_handler - phy can be assigned to port? * sci_port_general_link_up_handler - phy can be assigned to port?
* @sci_port: sci_port object for which has a phy that has gone link up. * @iport: sci_port object for which has a phy that has gone link up.
* @sci_phy: This is the struct isci_phy object that has gone link up. * @iphy: This is the struct isci_phy object that has gone link up.
* @flags: PF_RESUME, PF_NOTIFY to sci_port_activate_phy * @flags: PF_RESUME, PF_NOTIFY to sci_port_activate_phy
* *
* Determine if this phy can be assigned to this port . If the phy is * Determine if this phy can be assigned to this port . If the phy is
...@@ -716,10 +717,11 @@ static void sci_port_general_link_up_handler(struct isci_port *iport, ...@@ -716,10 +717,11 @@ static void sci_port_general_link_up_handler(struct isci_port *iport,
/** /**
* sci_port_is_wide()
* This method returns false if the port only has a single phy object assigned. * This method returns false if the port only has a single phy object assigned.
* If there are no phys or more than one phy then the method will return * If there are no phys or more than one phy then the method will return
* true. * true.
* @sci_port: The port for which the wide port condition is to be checked. * @iport: The port for which the wide port condition is to be checked.
* *
* bool true Is returned if this is a wide ported port. false Is returned if * bool true Is returned if this is a wide ported port. false Is returned if
* this is a narrow port. * this is a narrow port.
...@@ -739,12 +741,13 @@ static bool sci_port_is_wide(struct isci_port *iport) ...@@ -739,12 +741,13 @@ static bool sci_port_is_wide(struct isci_port *iport)
} }
/** /**
* sci_port_link_detected()
* This method is called by the PHY object when the link is detected. if the * This method is called by the PHY object when the link is detected. if the
* port wants the PHY to continue on to the link up state then the port * port wants the PHY to continue on to the link up state then the port
* layer must return true. If the port object returns false the phy object * layer must return true. If the port object returns false the phy object
* must halt its attempt to go link up. * must halt its attempt to go link up.
* @sci_port: The port associated with the phy object. * @iport: The port associated with the phy object.
* @sci_phy: The phy object that is trying to go link up. * @iphy: The phy object that is trying to go link up.
* *
* true if the phy object can continue to the link up condition. true Is * true if the phy object can continue to the link up condition. true Is
* returned if this phy can continue to the ready state. false Is returned if * returned if this phy can continue to the ready state. false Is returned if
...@@ -817,10 +820,8 @@ static void port_timeout(struct timer_list *t) ...@@ -817,10 +820,8 @@ static void port_timeout(struct timer_list *t)
/* --------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------- */
/** /*
* This function updates the hardwares VIIT entry for this port. * This function updates the hardwares VIIT entry for this port.
*
*
*/ */
static void sci_port_update_viit_entry(struct isci_port *iport) static void sci_port_update_viit_entry(struct isci_port *iport)
{ {
...@@ -874,7 +875,7 @@ static void sci_port_suspend_port_task_scheduler(struct isci_port *iport) ...@@ -874,7 +875,7 @@ static void sci_port_suspend_port_task_scheduler(struct isci_port *iport)
/** /**
* sci_port_post_dummy_request() - post dummy/workaround request * sci_port_post_dummy_request() - post dummy/workaround request
* @sci_port: port to post task * @iport: port to post task
* *
* Prevent the hardware scheduler from posting new requests to the front * Prevent the hardware scheduler from posting new requests to the front
* of the scheduler queue causing a starvation problem for currently * of the scheduler queue causing a starvation problem for currently
...@@ -899,10 +900,11 @@ static void sci_port_post_dummy_request(struct isci_port *iport) ...@@ -899,10 +900,11 @@ static void sci_port_post_dummy_request(struct isci_port *iport)
} }
/** /**
* This routine will abort the dummy request. This will alow the hardware to * sci_port_abort_dummy_request()
* This routine will abort the dummy request. This will allow the hardware to
* power down parts of the silicon to save power. * power down parts of the silicon to save power.
* *
* @sci_port: The port on which the task must be aborted. * @iport: The port on which the task must be aborted.
* *
*/ */
static void sci_port_abort_dummy_request(struct isci_port *iport) static void sci_port_abort_dummy_request(struct isci_port *iport)
...@@ -923,8 +925,8 @@ static void sci_port_abort_dummy_request(struct isci_port *iport) ...@@ -923,8 +925,8 @@ static void sci_port_abort_dummy_request(struct isci_port *iport)
} }
/** /**
* * sci_port_resume_port_task_scheduler()
* @sci_port: This is the struct isci_port object to resume. * @iport: This is the struct isci_port object to resume.
* *
* This method will resume the port task scheduler for this port object. none * This method will resume the port task scheduler for this port object. none
*/ */
...@@ -1014,8 +1016,8 @@ static void sci_port_invalidate_dummy_remote_node(struct isci_port *iport) ...@@ -1014,8 +1016,8 @@ static void sci_port_invalidate_dummy_remote_node(struct isci_port *iport)
} }
/** /**
* * sci_port_ready_substate_operational_exit()
* @object: This is the object which is cast to a struct isci_port object. * @sm: This is the object which is cast to a struct isci_port object.
* *
* This method will perform the actions required by the struct isci_port on * This method will perform the actions required by the struct isci_port on
* exiting the SCI_PORT_SUB_OPERATIONAL. This function reports * exiting the SCI_PORT_SUB_OPERATIONAL. This function reports
...@@ -1186,9 +1188,9 @@ static enum sci_status sci_port_hard_reset(struct isci_port *iport, u32 timeout) ...@@ -1186,9 +1188,9 @@ static enum sci_status sci_port_hard_reset(struct isci_port *iport, u32 timeout)
} }
/** /**
* sci_port_add_phy() - * sci_port_add_phy()
* @sci_port: This parameter specifies the port in which the phy will be added. * @iport: This parameter specifies the port in which the phy will be added.
* @sci_phy: This parameter is the phy which is to be added to the port. * @iphy: This parameter is the phy which is to be added to the port.
* *
* This method will add a PHY to the selected port. This method returns an * This method will add a PHY to the selected port. This method returns an
* enum sci_status. SCI_SUCCESS the phy has been added to the port. Any other * enum sci_status. SCI_SUCCESS the phy has been added to the port. Any other
...@@ -1257,9 +1259,9 @@ enum sci_status sci_port_add_phy(struct isci_port *iport, ...@@ -1257,9 +1259,9 @@ enum sci_status sci_port_add_phy(struct isci_port *iport,
} }
/** /**
* sci_port_remove_phy() - * sci_port_remove_phy()
* @sci_port: This parameter specifies the port in which the phy will be added. * @iport: This parameter specifies the port in which the phy will be added.
* @sci_phy: This parameter is the phy which is to be added to the port. * @iphy: This parameter is the phy which is to be added to the port.
* *
* This method will remove the PHY from the selected PORT. This method returns * This method will remove the PHY from the selected PORT. This method returns
* an enum sci_status. SCI_SUCCESS the phy has been removed from the port. Any * an enum sci_status. SCI_SUCCESS the phy has been removed from the port. Any
......
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