Re: [PATCH 02/20] staging: wfx: add support for I/O access

2019-10-02 Thread Jerome Pouiller
On Wednesday 2 October 2019 18:42:14 CEST Greg Kroah-Hartman wrote: > On Wed, Oct 02, 2019 at 04:29:09PM +, Jerome Pouiller wrote: [...] > > > > Hi Andrew, > > > > I did not forget your suggestion. However, if everyone is agree with that, > > I'd > > prefer to address it in a next pull request

Re: [PATCH 02/20] staging: wfx: add support for I/O access

2019-10-02 Thread Greg Kroah-Hartman
On Wed, Oct 02, 2019 at 04:29:09PM +, Jerome Pouiller wrote: > On Thursday 19 September 2019 18:34:48 CEST Andrew Lunn wrote: > > On Thu, Sep 19, 2019 at 10:52:35AM +, Jerome Pouiller wrote: > > > +static int wfx_sdio_copy_from_io(void *priv, unsigned int reg_id, > > > +

Re: [PATCH 02/20] staging: wfx: add support for I/O access

2019-10-02 Thread Jerome Pouiller
On Thursday 19 September 2019 18:34:48 CEST Andrew Lunn wrote: > On Thu, Sep 19, 2019 at 10:52:35AM +, Jerome Pouiller wrote: > > +static int wfx_sdio_copy_from_io(void *priv, unsigned int reg_id, > > + void *dst, size_t count) > > +{ > > + struct wfx_sdio_priv

Re: [PATCH 02/20] staging: wfx: add support for I/O access

2019-09-19 Thread Greg Kroah-Hartman
On Thu, Sep 19, 2019 at 06:34:29PM +0200, Andrew Lunn wrote: > On Thu, Sep 19, 2019 at 10:52:35AM +, Jerome Pouiller wrote: > > +static int wfx_sdio_copy_from_io(void *priv, unsigned int reg_id, > > +void *dst, size_t count) > > +{ > > + struct wfx_sdio_priv *bus =

Re: [PATCH 02/20] staging: wfx: add support for I/O access

2019-09-19 Thread Andrew Lunn
On Thu, Sep 19, 2019 at 10:52:35AM +, Jerome Pouiller wrote: > +static int wfx_sdio_copy_from_io(void *priv, unsigned int reg_id, > + void *dst, size_t count) > +{ > + struct wfx_sdio_priv *bus = priv; > + unsigned int sdio_addr = reg_id << 2; > + int re

[PATCH 02/20] staging: wfx: add support for I/O access

2019-09-19 Thread Jerome Pouiller
From: Jérôme Pouiller Introduce bus level communication layer. At this level, 7 registers can be addressed. Notice that SPI driver is able to manage chip reset. SDIO mode relies on an external driver (`mmc-pwrseq`) to reset chip. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/bus.h