powerpc/eeh: fix comment for wait_state()
authorWei Yang <weiyang@linux.vnet.ibm.com>
Mon, 27 Apr 2015 01:25:10 +0000 (09:25 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 May 2015 04:00:07 +0000 (14:00 +1000)
To retrieve the PCI slot state, EEH driver would set a timeout for that.
While current comment is not aligned to what the code does.

This patch fixes those comments according to the code.

Signed-off-by: Wei Yang <weiyang@linux.vnet.ibm.com>
Acked-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_driver.c
arch/powerpc/platforms/powernv/eeh-powernv.c
arch/powerpc/platforms/pseries/eeh_pseries.c

index 24768ff3cb7308345248ada7a70f60421c7aea46..89eb4bc34d3a8934a0a15c4d2c428f373e5eb0ba 100644 (file)
@@ -660,7 +660,7 @@ static void eeh_handle_normal_event(struct eeh_pe *pe)
        eeh_pe_dev_traverse(pe, eeh_report_error, &result);
 
        /* Get the current PCI slot state. This can take a long time,
-        * sometimes over 3 seconds for certain systems.
+        * sometimes over 300 seconds for certain systems.
         */
        rc = eeh_ops->wait_state(pe, MAX_WAIT_FOR_RECOVERY*1000);
        if (rc < 0 || rc == EEH_STATE_NOT_SUPPORT) {
index ce738ab3d5a9f6b93dbcc4b10201f68624fce15e..d0254710595d476224405f96225e4aa2f2c3973e 100644 (file)
@@ -979,7 +979,7 @@ static int pnv_eeh_reset(struct eeh_pe *pe, int option)
 /**
  * pnv_eeh_wait_state - Wait for PE state
  * @pe: EEH PE
- * @max_wait: maximal period in microsecond
+ * @max_wait: maximal period in millisecond
  *
  * Wait for the state of associated PE. It might take some time
  * to retrieve the PE's state.
index 2039397cc75d5f6230dc91c945fc7a79dc0ecc68..1ba55d0bb449ddd79cbe6a644a265d09c730a1a5 100644 (file)
@@ -519,7 +519,7 @@ static int pseries_eeh_reset(struct eeh_pe *pe, int option)
 /**
  * pseries_eeh_wait_state - Wait for PE state
  * @pe: EEH PE
- * @max_wait: maximal period in microsecond
+ * @max_wait: maximal period in millisecond
  *
  * Wait for the state of associated PE. It might take some time
  * to retrieve the PE's state.