Re: [PATCH v3] cmd: sf/nand: Print and return failure when 0 length is passed

2023-06-02 Thread Jagan Teki
On Fri, Jun 2, 2023 at 12:03 PM Marek Vasut wrote: > > On 6/2/23 08:28, Jagan Teki wrote: > > On Tue, May 30, 2023 at 7:07 PM Marek Vasut wrote: > >> > >> On 5/30/23 14:23, Michal Simek wrote: > >>> > >>> > >>> On 5/16/23 13:52, Ashok Reddy Soma wrote: > For sf commands, when '0' length is

Re: [PATCH v3] cmd: sf/nand: Print and return failure when 0 length is passed

2023-06-02 Thread Marek Vasut
On 6/2/23 08:28, Jagan Teki wrote: On Tue, May 30, 2023 at 7:07 PM Marek Vasut wrote: On 5/30/23 14:23, Michal Simek wrote: On 5/16/23 13:52, Ashok Reddy Soma wrote: For sf commands, when '0' length is passed for erase, update, write or read, there might be undesired results. Ideally '0'

Re: [PATCH v3] cmd: sf/nand: Print and return failure when 0 length is passed

2023-06-02 Thread Jagan Teki
On Tue, May 30, 2023 at 7:07 PM Marek Vasut wrote: > > On 5/30/23 14:23, Michal Simek wrote: > > > > > > On 5/16/23 13:52, Ashok Reddy Soma wrote: > >> For sf commands, when '0' length is passed for erase, update, write or > >> read, there might be undesired results. Ideally '0' length means > >>

Re: [PATCH v3] cmd: sf/nand: Print and return failure when 0 length is passed

2023-06-01 Thread Tom Rini
On Tue, May 16, 2023 at 05:52:36AM -0600, Ashok Reddy Soma wrote: > For sf commands, when '0' length is passed for erase, update, write or > read, there might be undesired results. Ideally '0' length means nothing to > do. > > So print 'ERROR: Invalid size 0' and return cmd failure when length

Re: [PATCH v3] cmd: sf/nand: Print and return failure when 0 length is passed

2023-05-30 Thread Marek Vasut
On 5/30/23 14:23, Michal Simek wrote: On 5/16/23 13:52, Ashok Reddy Soma wrote: For sf commands, when '0' length is passed for erase, update, write or read, there might be undesired results. Ideally '0' length means nothing to do. So print 'ERROR: Invalid size 0' and return cmd failure

Re: [PATCH v3] cmd: sf/nand: Print and return failure when 0 length is passed

2023-05-30 Thread Michal Simek
On 5/16/23 13:52, Ashok Reddy Soma wrote: For sf commands, when '0' length is passed for erase, update, write or read, there might be undesired results. Ideally '0' length means nothing to do. So print 'ERROR: Invalid size 0' and return cmd failure when length '0' is passed to sf commands.

[PATCH v3] cmd: sf/nand: Print and return failure when 0 length is passed

2023-05-16 Thread Ashok Reddy Soma
For sf commands, when '0' length is passed for erase, update, write or read, there might be undesired results. Ideally '0' length means nothing to do. So print 'ERROR: Invalid size 0' and return cmd failure when length '0' is passed to sf commands. Same thing applies for nand commands also.