On 12/21/2018 02:30 AM, tristram...@microchip.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