Skip to content

Commit e845bcc

Browse files
committed
Merge tag 'riscv-soc-fixes-for-v6.9-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux into arm/fixes
RISC-V SoC driver fixes for v6.9-rc6 firmware: Two changes for misleading printouts from the auto update driver, one for an erroneous success message and the other to make it clear addresses are in hex. cache: Samuel's fix for the ccache driver left an unused variable, so he sent a follow up patch to silence that complaint. Signed-off-by: Conor Dooley <[email protected]> * tag 'riscv-soc-fixes-for-v6.9-rc6' of https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux: firmware: microchip: clarify that sizes and addresses are in hex firmware: microchip: don't unconditionally print validation success cache: sifive_ccache: Silence unused variable warning Link: https://lore.kernel.org/r/20240427-unflawed-humorless-690472f9c5a0@spud Signed-off-by: Arnd Bergmann <[email protected]>
2 parents daa1bd4 + 3aa20d1 commit e845bcc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

drivers/cache/sifive_ccache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static int __init sifive_ccache_init(void)
290290
struct device_node *np;
291291
struct resource res;
292292
const struct of_device_id *match;
293-
unsigned long quirks;
293+
unsigned long quirks __maybe_unused;
294294
int rc;
295295

296296
np = of_find_matching_node_and_match(NULL, sifive_ccache_ids, &match);

drivers/firmware/microchip/mpfs-auto-update.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,12 @@ static int mpfs_auto_update_verify_image(struct fw_upload *fw_uploader)
206206
if (ret | response->resp_status) {
207207
dev_warn(priv->dev, "Verification of Upgrade Image failed!\n");
208208
ret = ret ? ret : -EBADMSG;
209+
goto free_message;
209210
}
210211

211212
dev_info(priv->dev, "Verification of Upgrade Image passed!\n");
212213

214+
free_message:
213215
devm_kfree(priv->dev, message);
214216
free_response:
215217
devm_kfree(priv->dev, response);
@@ -265,7 +267,7 @@ static int mpfs_auto_update_set_image_address(struct mpfs_auto_update_priv *priv
265267
AUTO_UPDATE_DIRECTORY_WIDTH);
266268
memset(buffer + AUTO_UPDATE_BLANK_DIRECTORY, 0x0, AUTO_UPDATE_DIRECTORY_WIDTH);
267269

268-
dev_info(priv->dev, "Writing the image address (%x) to the flash directory (%llx)\n",
270+
dev_info(priv->dev, "Writing the image address (0x%x) to the flash directory (0x%llx)\n",
269271
image_address, directory_address);
270272

271273
ret = mtd_write(priv->flash, 0x0, erase_size, &bytes_written, (u_char *)buffer);
@@ -313,7 +315,7 @@ static int mpfs_auto_update_write_bitstream(struct fw_upload *fw_uploader, const
313315
erase.len = round_up(size, (size_t)priv->flash->erasesize);
314316
erase.addr = image_address;
315317

316-
dev_info(priv->dev, "Erasing the flash at address (%x)\n", image_address);
318+
dev_info(priv->dev, "Erasing the flash at address (0x%x)\n", image_address);
317319
ret = mtd_erase(priv->flash, &erase);
318320
if (ret)
319321
goto out;
@@ -323,7 +325,7 @@ static int mpfs_auto_update_write_bitstream(struct fw_upload *fw_uploader, const
323325
* will do all of that itself - including verifying that the bitstream
324326
* is valid.
325327
*/
326-
dev_info(priv->dev, "Writing the image to the flash at address (%x)\n", image_address);
328+
dev_info(priv->dev, "Writing the image to the flash at address (0x%x)\n", image_address);
327329
ret = mtd_write(priv->flash, (loff_t)image_address, size, &bytes_written, data);
328330
if (ret)
329331
goto out;

0 commit comments

Comments
 (0)