lkml.org 
[lkml]   [2022]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.19 07/21] ata: sata_mv: Fixes expected number of resources now IRQs are gone
    Date
    From: Andrew Lunn <andrew@lunn.ch>

    commit b3b2bec9646eb1d3f43c85f6d0d2211d6f8af42b upstream.

    The commit a1a2b7125e10 ("of/platform: Drop static setup of IRQ
    resource from DT core") stopped IRQ resources being available as
    platform resources. This broke the sanity check for the expected
    number of resources in the Marvell SATA driver which expected two
    resources, the IO memory and the interrupt.

    Change the sanity check to only expect the IO memory.

    Cc: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
    Fixes: a1a2b7125e10 ("of/platform: Drop static setup of IRQ resource from DT core")
    Cc: <stable@vger.kernel.org>
    Signed-off-by: Andrew Lunn <andrew@lunn.ch>
    Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/ata/sata_mv.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/ata/sata_mv.c
    +++ b/drivers/ata/sata_mv.c
    @@ -4057,7 +4057,7 @@ static int mv_platform_probe(struct plat
    /*
    * Simple resource validation ..
    */
    - if (unlikely(pdev->num_resources != 2)) {
    + if (unlikely(pdev->num_resources != 1)) {
    dev_err(&pdev->dev, "invalid number of resources\n");
    return -EINVAL;
    }

    \
     
     \ /
      Last update: 2022-08-09 20:31    [W:3.083 / U:0.104 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site