qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 08/12] hw: arm: allwinner-r40: Fix the mmc controller's ty


From: qianfan
Subject: Re: [PATCH v2 08/12] hw: arm: allwinner-r40: Fix the mmc controller's type
Date: Tue, 18 Apr 2023 18:56:46 +0800
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0



在 2023/4/7 3:22, Niek Linnenbank 写道:
Hi Qianfan Zhao,

Is this change really needed as a separate patch?
Looks like it would make sense just to squash it with the original patch 01?
The class type of TYPE_AW_SDHOST_SUN50I_A64 was introduced when patch-07.
Add patch-01 doesn't has that class.

So this is following the previous patch.

Regards,
Niek

On Tue, Mar 28, 2023 at 7:47 AM <qianfanguijin@163.com> wrote:

    From: qianfan Zhao <qianfanguijin@163.com>

    R40 has SAMP_DL_REG register and mmc2 controller has only 8K dma
    buffer.
    Fix it's compatible string.

    Signed-off-by: qianfan Zhao <qianfanguijin@163.com>
    ---
     hw/arm/allwinner-r40.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/hw/arm/allwinner-r40.c b/hw/arm/allwinner-r40.c
    index 0e4542d35f..b148c56449 100644
    --- a/hw/arm/allwinner-r40.c
    +++ b/hw/arm/allwinner-r40.c
    @@ -271,7 +271,7 @@ static void allwinner_r40_init(Object *obj)

         for (int i = 0; i < AW_R40_NUM_MMCS; i++) {
             object_initialize_child(obj, mmc_names[i], &s->mmc[i],
    -                                TYPE_AW_SDHOST_SUN5I);
    +                                TYPE_AW_SDHOST_SUN50I_A64);
         }

         object_initialize_child(obj, "twi0", &s->i2c0,
    TYPE_AW_I2C_SUN6I);
-- 2.25.1



--
Niek Linnenbank





reply via email to

[Prev in Thread] Current Thread [Next in Thread]