mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
Raw NAND fixes:
* Placate "$VARIABLE is used uninitialized" warnings * omap2: Add missing dependency on GPMC * qcom: Handle ret from parse with codeword_fixup -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEE9HuaYnbmDhq/XIDIJWrqGEe9VoQFAmNyBYUACgkQJWrqGEe9 VoRoAQf/R0n6rzsehjzwRlX1c2q6tFrBE7b1SNYw7zpjr4LfV8yoym/L/YfXVh50 a4OjlPhT+3/IJcy59jztgHH2ILvZmfDEm8NpJbO1LLci+Wa9U7tQPYOHstMUOcSn SCDsR852+Mt1bC7NrFWFOxuBKpleCrb+NujKuBERd3CeCULquFMpqZvFgNPou6UN mVPYZFSpLH35sQcxOchkaFk+0ZZeN6R5ojhXOxpNIoYoeiJ5GevSbCgR0W5ODsHw vePAId1iDV7jOdBFXpHeKQ8O1KcCFVO8oDpI/lB+QYksfo+p4JI8R0VsQq0qs4Uq fpR5JCy20Uoi8yncET1LcLlKezHXGw== =s730 -----END PGP SIGNATURE----- Merge tag 'mtd/fixes-for-6.1-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux Pull mtd fixes from Miquel Raynal: - Placate "$VARIABLE is used uninitialized" warnings - omap2: Add missing dependency on GPMC - qcom: Handle ret from parse with codeword_fixup * tag 'mtd/fixes-for-6.1-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: mtd: onenand: omap2: add dependency on GPMC mtd: rawnand: placate "$VARIABLE is used uninitialized" warnings mtd: rawnand: qcom: handle ret from parse with codeword_fixup
This commit is contained in:
commit
9584987fe7
|
|
@ -26,6 +26,7 @@ config MTD_ONENAND_OMAP2
|
|||
tristate "OneNAND on OMAP2/OMAP3 support"
|
||||
depends on ARCH_OMAP2 || ARCH_OMAP3 || (COMPILE_TEST && ARM)
|
||||
depends on OF || COMPILE_TEST
|
||||
depends on OMAP_GPMC
|
||||
help
|
||||
Support for a OneNAND flash device connected to an OMAP2/OMAP3 SoC
|
||||
via the GPMC memory controller.
|
||||
|
|
|
|||
|
|
@ -5834,7 +5834,7 @@ nand_match_ecc_req(struct nand_chip *chip,
|
|||
int req_step = requirements->step_size;
|
||||
int req_strength = requirements->strength;
|
||||
int req_corr, step_size, strength, nsteps, ecc_bytes, ecc_bytes_total;
|
||||
int best_step, best_strength, best_ecc_bytes;
|
||||
int best_step = 0, best_strength = 0, best_ecc_bytes = 0;
|
||||
int best_ecc_bytes_total = INT_MAX;
|
||||
int i, j;
|
||||
|
||||
|
|
@ -5915,7 +5915,7 @@ nand_maximize_ecc(struct nand_chip *chip,
|
|||
int step_size, strength, nsteps, ecc_bytes, corr;
|
||||
int best_corr = 0;
|
||||
int best_step = 0;
|
||||
int best_strength, best_ecc_bytes;
|
||||
int best_strength = 0, best_ecc_bytes = 0;
|
||||
int i, j;
|
||||
|
||||
for (i = 0; i < caps->nstepinfos; i++) {
|
||||
|
|
|
|||
|
|
@ -3167,16 +3167,18 @@ static int qcom_nand_host_init_and_register(struct qcom_nand_controller *nandc,
|
|||
|
||||
ret = mtd_device_parse_register(mtd, probes, NULL, NULL, 0);
|
||||
if (ret)
|
||||
nand_cleanup(chip);
|
||||
goto err;
|
||||
|
||||
if (nandc->props->use_codeword_fixup) {
|
||||
ret = qcom_nand_host_parse_boot_partitions(nandc, host, dn);
|
||||
if (ret) {
|
||||
nand_cleanup(chip);
|
||||
return ret;
|
||||
}
|
||||
if (ret)
|
||||
goto err;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
err:
|
||||
nand_cleanup(chip);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user