forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/scsi/csiostor/csio_hw.c
....@@ -306,7 +306,7 @@
306306 uint8_t *vpd, csum;
307307 const struct t4_vpd_hdr *v;
308308 /* To get around compilation warning from strstrip */
309
- char *s;
309
+ char __always_unused *s;
310310
311311 if (csio_is_valid_vpd(hw))
312312 return 0;
....@@ -793,10 +793,10 @@
793793 goto found;
794794 }
795795
796
- /* Decode Flash part size. The code below looks repetative with
796
+ /* Decode Flash part size. The code below looks repetitive with
797797 * common encodings, but that's not guaranteed in the JEDEC
798
- * specification for the Read JADEC ID command. The only thing that
799
- * we're guaranteed by the JADEC specification is where the
798
+ * specification for the Read JEDEC ID command. The only thing that
799
+ * we're guaranteed by the JEDEC specification is where the
800800 * Manufacturer ID is in the returned result. After that each
801801 * Manufacturer ~could~ encode things completely differently.
802802 * Note, all Flash parts must have 64KB sectors.
....@@ -983,8 +983,8 @@
983983 waiting -= 50;
984984
985985 /*
986
- * If neither Error nor Initialialized are indicated
987
- * by the firmware keep waiting till we exaust our
986
+ * If neither Error nor Initialized are indicated
987
+ * by the firmware keep waiting till we exhaust our
988988 * timeout ... and then retry if we haven't exhausted
989989 * our retries ...
990990 */
....@@ -1738,7 +1738,7 @@
17381738 * Convert Common Code Forward Error Control settings into the
17391739 * Firmware's API. If the current Requested FEC has "Automatic"
17401740 * (IEEE 802.3) specified, then we use whatever the Firmware
1741
- * sent us as part of it's IEEE 802.3-based interpratation of
1741
+ * sent us as part of it's IEEE 802.3-based interpretation of
17421742 * the Transceiver Module EPROM FEC parameters. Otherwise we
17431743 * use whatever is in the current Requested FEC settings.
17441744 */
....@@ -2834,7 +2834,7 @@
28342834 }
28352835
28362836 /*
2837
- * csio_hws_initializing - Initialiazing state
2837
+ * csio_hws_initializing - Initializing state
28382838 * @hw - HW module
28392839 * @evt - Event
28402840 *
....@@ -2939,7 +2939,7 @@
29392939 case CSIO_HWE_FW_DLOAD:
29402940 csio_set_state(&hw->sm, csio_hws_resetting);
29412941 /* Download firmware */
2942
- /* Fall through */
2942
+ fallthrough;
29432943
29442944 case CSIO_HWE_HBA_RESET:
29452945 csio_set_state(&hw->sm, csio_hws_resetting);
....@@ -3049,7 +3049,7 @@
30493049 if (!csio_is_hw_master(hw))
30503050 break;
30513051 /*
3052
- * The BYE should have alerady been issued, so we cant
3052
+ * The BYE should have already been issued, so we can't
30533053 * use the mailbox interface. Hence we use the PL_RST
30543054 * register directly.
30553055 */
....@@ -3104,7 +3104,7 @@
31043104 *
31053105 * A table driven interrupt handler that applies a set of masks to an
31063106 * interrupt status word and performs the corresponding actions if the
3107
- * interrupts described by the mask have occured. The actions include
3107
+ * interrupts described by the mask have occurred. The actions include
31083108 * optionally emitting a warning or alert message. The table is terminated
31093109 * by an entry specifying mask 0. Returns the number of fatal interrupt
31103110 * conditions.
....@@ -4219,7 +4219,7 @@
42194219 * @hw: Pointer to HW module.
42204220 *
42214221 * It is assumed that the initialization is a synchronous operation.
4222
- * So when we return afer posting the event, the HW SM should be in
4222
+ * So when we return after posting the event, the HW SM should be in
42234223 * the ready state, if there were no errors during init.
42244224 */
42254225 int