| .. | .. |
|---|
| 306 | 306 | uint8_t *vpd, csum; |
|---|
| 307 | 307 | const struct t4_vpd_hdr *v; |
|---|
| 308 | 308 | /* To get around compilation warning from strstrip */ |
|---|
| 309 | | - char *s; |
|---|
| 309 | + char __always_unused *s; |
|---|
| 310 | 310 | |
|---|
| 311 | 311 | if (csio_is_valid_vpd(hw)) |
|---|
| 312 | 312 | return 0; |
|---|
| .. | .. |
|---|
| 793 | 793 | goto found; |
|---|
| 794 | 794 | } |
|---|
| 795 | 795 | |
|---|
| 796 | | - /* Decode Flash part size. The code below looks repetative with |
|---|
| 796 | + /* Decode Flash part size. The code below looks repetitive with |
|---|
| 797 | 797 | * 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 |
|---|
| 800 | 800 | * Manufacturer ID is in the returned result. After that each |
|---|
| 801 | 801 | * Manufacturer ~could~ encode things completely differently. |
|---|
| 802 | 802 | * Note, all Flash parts must have 64KB sectors. |
|---|
| .. | .. |
|---|
| 983 | 983 | waiting -= 50; |
|---|
| 984 | 984 | |
|---|
| 985 | 985 | /* |
|---|
| 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 |
|---|
| 988 | 988 | * timeout ... and then retry if we haven't exhausted |
|---|
| 989 | 989 | * our retries ... |
|---|
| 990 | 990 | */ |
|---|
| .. | .. |
|---|
| 1738 | 1738 | * Convert Common Code Forward Error Control settings into the |
|---|
| 1739 | 1739 | * Firmware's API. If the current Requested FEC has "Automatic" |
|---|
| 1740 | 1740 | * (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 |
|---|
| 1742 | 1742 | * the Transceiver Module EPROM FEC parameters. Otherwise we |
|---|
| 1743 | 1743 | * use whatever is in the current Requested FEC settings. |
|---|
| 1744 | 1744 | */ |
|---|
| .. | .. |
|---|
| 2834 | 2834 | } |
|---|
| 2835 | 2835 | |
|---|
| 2836 | 2836 | /* |
|---|
| 2837 | | - * csio_hws_initializing - Initialiazing state |
|---|
| 2837 | + * csio_hws_initializing - Initializing state |
|---|
| 2838 | 2838 | * @hw - HW module |
|---|
| 2839 | 2839 | * @evt - Event |
|---|
| 2840 | 2840 | * |
|---|
| .. | .. |
|---|
| 2939 | 2939 | case CSIO_HWE_FW_DLOAD: |
|---|
| 2940 | 2940 | csio_set_state(&hw->sm, csio_hws_resetting); |
|---|
| 2941 | 2941 | /* Download firmware */ |
|---|
| 2942 | | - /* Fall through */ |
|---|
| 2942 | + fallthrough; |
|---|
| 2943 | 2943 | |
|---|
| 2944 | 2944 | case CSIO_HWE_HBA_RESET: |
|---|
| 2945 | 2945 | csio_set_state(&hw->sm, csio_hws_resetting); |
|---|
| .. | .. |
|---|
| 3049 | 3049 | if (!csio_is_hw_master(hw)) |
|---|
| 3050 | 3050 | break; |
|---|
| 3051 | 3051 | /* |
|---|
| 3052 | | - * The BYE should have alerady been issued, so we cant |
|---|
| 3052 | + * The BYE should have already been issued, so we can't |
|---|
| 3053 | 3053 | * use the mailbox interface. Hence we use the PL_RST |
|---|
| 3054 | 3054 | * register directly. |
|---|
| 3055 | 3055 | */ |
|---|
| .. | .. |
|---|
| 3104 | 3104 | * |
|---|
| 3105 | 3105 | * A table driven interrupt handler that applies a set of masks to an |
|---|
| 3106 | 3106 | * 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 |
|---|
| 3108 | 3108 | * optionally emitting a warning or alert message. The table is terminated |
|---|
| 3109 | 3109 | * by an entry specifying mask 0. Returns the number of fatal interrupt |
|---|
| 3110 | 3110 | * conditions. |
|---|
| .. | .. |
|---|
| 4219 | 4219 | * @hw: Pointer to HW module. |
|---|
| 4220 | 4220 | * |
|---|
| 4221 | 4221 | * 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 |
|---|
| 4223 | 4223 | * the ready state, if there were no errors during init. |
|---|
| 4224 | 4224 | */ |
|---|
| 4225 | 4225 | int |
|---|