Re: [PATCH v9 2/3] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver

From: Marek Vasut
Date: Fri Mar 29 2019 - 06:46:45 EST


On 3/29/19 9:20 AM, Mason Yang wrote:

[...]

> +struct rpc_spi {
> + struct clk *clk_rpc;
> + void __iomem *base;
> + void __iomem *dirmap;
> + void __iomem *wbuf;

Shouldn't all this stuff somehow come from the MFD driver ?

> + struct regmap *regmap;
> + u32 cur_speed_hz;
> + u32 cmd;
> + u32 addr;
> + u32 dummy;
> + u32 smcr;
> + u32 smenr;
> + u32 xferlen;
> + u32 totalxferlen;
> + enum spi_mem_data_dir xfer_dir;
> + struct reset_control *rstc;
> +};
> +
[...]


--
Best regards,
Marek Vasut