All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
To: <u-boot@lists.denx.de>
Subject: Re: [PATCH v4 12/14] dfu_mtd: Ignore non-implemented lock device failure
Date: Fri, 28 May 2021 10:50:04 +0200	[thread overview]
Message-ID: <f7748f43-b7f0-5fb4-cae3-584e866de908@foss.st.com> (raw)
In-Reply-To: <CADg8p96zcn8wz1yBVdOYk_sVOrW2TcD18fepsvz-qQZ_xuBxew@mail.gmail.com>


On 5/19/21 8:07 AM, Sughosh Ganu wrote:
> On Wed, 19 May 2021 at 11:16, Masami Hiramatsu <masami.hiramatsu@linaro.org>
> wrote:
>
>> Ignore the non-implemented lock device failure on writing mtd
>> via DFU. Without this fix, DFU write shows an error on such device
>> even if it succeeded, because dfu->write_medium returns -EOPNOTSUPP.
>>
>> Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
>> Cc: Lukasz Majewski <lukma@denx.de>
>> ---
>>   drivers/dfu/dfu_mtd.c |    2 ++
>>   1 file changed, 2 insertions(+)
>>
> A patch has already been submitted for this[1].
>
> Patrick, can you please apply this in your tree and send it as part of the
> next PR. Thanks.


Ok, I take the patch in my next PR


>
> -sughosh
>
> [1] - https://lists.denx.de/pipermail/u-boot/2021-March/443896.html
>
>
>
>> diff --git a/drivers/dfu/dfu_mtd.c b/drivers/dfu/dfu_mtd.c
>> index ca67585a7e..e58302c32d 100644
>> --- a/drivers/dfu/dfu_mtd.c
>> +++ b/drivers/dfu/dfu_mtd.c
>> @@ -152,6 +152,8 @@ static int mtd_block_op(enum dfu_op op, struct
>> dfu_entity *dfu,
>>                  ret = mtd_lock(mtd, lock_ofs, lock_len);
>>                  if (ret && ret != -EOPNOTSUPP)
>>                          printf("MTD device lock failed\n");
>> +               if (ret == -EOPNOTSUPP)
>> +                       ret = 0;
>>          }
>>          return ret;
>>   }
>>
>>

  parent reply	other threads:[~2021-05-28  8:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-19  5:44 [PATCH v4 00/14] arm64: synquacer: Add SynQuacer/DeveloperBox support Masami Hiramatsu
2021-05-19  5:44 ` [PATCH v4 01/14] ata: ahci-pci: Use scsi_ops to initialize ops Masami Hiramatsu
2021-05-19  5:44 ` [PATCH v4 02/14] dm: pci: Skip setting VGA bridge bits if parent device is the host bus Masami Hiramatsu
2021-05-19  5:44 ` [PATCH v4 03/14] efi: Fix to use null handle to create new handle for efi_fmp_raw Masami Hiramatsu
2021-05-19  5:45 ` [PATCH v4 04/14] gpio: Introduce CONFIG_GPIO_EXTRA_HEADER to cleanup #ifdefs Masami Hiramatsu
2021-05-19  5:45 ` [PATCH v4 05/14] pci: synquacer: Add SynQuacer ECAM based PCIe driver Masami Hiramatsu
2021-05-19  5:45 ` [PATCH v4 06/14] mmc: synquacer: Add SynQuacer F_SDH30 SDHCI driver Masami Hiramatsu
2021-05-19  5:45 ` [PATCH v4 07/14] spi: synquacer: Add HSSPI SPI controller driver for SynQuacer Masami Hiramatsu
2021-05-19  5:45 ` [PATCH v4 08/14] net: synquacer: Add netsec driver Masami Hiramatsu
2021-05-19  5:46 ` [PATCH v4 09/14] i2c: synquacer: SNI Synquacer I2C controller Masami Hiramatsu
2021-05-19  5:46 ` [PATCH v4 10/14] ARM: dts: synquacer: Add device trees for DeveloperBox Masami Hiramatsu
2021-05-19  5:46 ` [PATCH v4 11/14] board: synquacer: Add DeveloperBox 96boards EE support Masami Hiramatsu
2021-05-19  5:46 ` [PATCH v4 12/14] dfu_mtd: Ignore non-implemented lock device failure Masami Hiramatsu
2021-05-19  6:07   ` Sughosh Ganu
2021-05-19  6:34     ` Masami Hiramatsu
2021-05-28  8:50     ` Patrick DELAUNAY [this message]
2021-05-19  5:46 ` [PATCH v4 13/14] doc: qemu: arm64: Fix the documentation of capsule update Masami Hiramatsu
2021-05-19  5:46 ` [PATCH v4 14/14] configs: synquacer: Enable EFI capsule update support Masami Hiramatsu
2021-05-23  8:07 ` [PATCH v4 00/14] arm64: synquacer: Add SynQuacer/DeveloperBox support Ilias Apalodimas
2021-05-24  0:54   ` Masami Hiramatsu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7748f43-b7f0-5fb4-cae3-584e866de908@foss.st.com \
    --to=patrick.delaunay@foss.st.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.