[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a687cb9a-9e18-dc8f-852e-81ad5cc22216@denx.de>
Date: Fri, 21 Dec 2018 03:04:55 +0100
From: Marek Vasut <marex@...x.de>
To: Tristram.Ha@...rochip.com
Cc: f.fainelli@...il.com, andrew@...n.ch, Woojung.Huh@...rochip.com,
netdev@...r.kernel.org
Subject: Re: [RFT][PATCH 6/7] net: dsa: microchip: Initial SPI regmap support
On 12/21/2018 02:30 AM, Tristram.Ha@...rochip.com wrote:
>> +static const struct regmap_config ksz9477_regmap_config = {
>> + .reg_bits = 32,
>> + .val_bits = 8,
>> + .max_register = 0x100,
>> + .cache_type = REGCACHE_RBTREE,
>> + .read_flag_mask = KS_SPIOP_RD << SPI_ADDR_SHIFT,
>> + .write_flag_mask = KS_SPIOP_WR << SPI_ADDR_SHIFT,
>> + .reg_format_endian = REGMAP_ENDIAN_BIG,
>> + .val_format_endian = REGMAP_ENDIAN_BIG,
>> +};
>
> As you have KSZ8795 can you verify regmap works?
I just sent V2 that works on KSZ8795 , give it a go.
> I think you need to add reg_shift.
>
--
Best regards,
Marek Vasut
Powered by blists - more mailing lists