| .. | .. |
|---|
| 210 | 210 | * @hw: pointer to the HW structure. |
|---|
| 211 | 211 | * @module_pointer: module pointer location in words from the NVM beginning |
|---|
| 212 | 212 | * @offset: offset in words from module start |
|---|
| 213 | | - * @words: number of words to write |
|---|
| 214 | | - * @data: buffer with words to write to the Shadow RAM |
|---|
| 213 | + * @words: number of words to read |
|---|
| 214 | + * @data: buffer with words to read to the Shadow RAM |
|---|
| 215 | 215 | * @last_command: tells the AdminQ that this is the last command |
|---|
| 216 | 216 | * |
|---|
| 217 | | - * Writes a 16 bit words buffer to the Shadow RAM using the admin command. |
|---|
| 217 | + * Reads a 16 bit words buffer to the Shadow RAM using the admin command. |
|---|
| 218 | 218 | **/ |
|---|
| 219 | 219 | static i40e_status i40e_read_nvm_aq(struct i40e_hw *hw, |
|---|
| 220 | 220 | u8 module_pointer, u32 offset, |
|---|
| .. | .. |
|---|
| 234 | 234 | */ |
|---|
| 235 | 235 | if ((offset + words) > hw->nvm.sr_size) |
|---|
| 236 | 236 | i40e_debug(hw, I40E_DEBUG_NVM, |
|---|
| 237 | | - "NVM write error: offset %d beyond Shadow RAM limit %d\n", |
|---|
| 237 | + "NVM read error: offset %d beyond Shadow RAM limit %d\n", |
|---|
| 238 | 238 | (offset + words), hw->nvm.sr_size); |
|---|
| 239 | 239 | else if (words > I40E_SR_SECTOR_SIZE_IN_WORDS) |
|---|
| 240 | | - /* We can write only up to 4KB (one sector), in one AQ write */ |
|---|
| 240 | + /* We can read only up to 4KB (one sector), in one AQ write */ |
|---|
| 241 | 241 | i40e_debug(hw, I40E_DEBUG_NVM, |
|---|
| 242 | | - "NVM write fail error: tried to write %d words, limit is %d.\n", |
|---|
| 242 | + "NVM read fail error: tried to read %d words, limit is %d.\n", |
|---|
| 243 | 243 | words, I40E_SR_SECTOR_SIZE_IN_WORDS); |
|---|
| 244 | 244 | else if (((offset + (words - 1)) / I40E_SR_SECTOR_SIZE_IN_WORDS) |
|---|
| 245 | 245 | != (offset / I40E_SR_SECTOR_SIZE_IN_WORDS)) |
|---|
| 246 | | - /* A single write cannot spread over two sectors */ |
|---|
| 246 | + /* A single read cannot spread over two sectors */ |
|---|
| 247 | 247 | i40e_debug(hw, I40E_DEBUG_NVM, |
|---|
| 248 | | - "NVM write error: cannot spread over two sectors in a single write offset=%d words=%d\n", |
|---|
| 248 | + "NVM read error: cannot spread over two sectors in a single read offset=%d words=%d\n", |
|---|
| 249 | 249 | offset, words); |
|---|
| 250 | 250 | else |
|---|
| 251 | 251 | ret_code = i40e_aq_read_nvm(hw, module_pointer, |
|---|