Re: [PATCH v6 00/10] ath10k: sdio support
From: Kalle Valo <hidden>
Date: 2017-03-28 11:54:09
Kalle Valo [off-list ref] writes:
I did some changes while reviewing Erik's SDIO patches. Only compile tested, I don't have any SDIO boards at the moment.
[...]
still todo: o fix remaining memory leaks (if any) o endian support, eg ath10k_sdio_hif_set_mbox_sleep() o are ath10k_sdio_io() and ath10k_sdio_read_write_sync() really necessary? looks like just an unnecessary abstraction layer
It took me longer than I planned, but here are my notes about what I'm planning to do to remove unnecessary ath10k_sdio_io() abstraction: ath10k_sdio_read_write_sync(): HIF_RD_SYNC_BLOCK_FIX -> ath10k_sdio_readsb() HIF_RD_SYNC_BYTE_INC -> ath10k_sdio_read(), ath10k_sdio_read32() HIF_WR_SYNC_BYTE_FIX -> ath10k_sdio_writesb() HIF_WR_SYNC_BYTE_INC -> ath10k_sdio_write() ath10k_sdio_prep_async_req(): HIF_WRITE -> HIF_WR_SYNC_BYTE_INC -> ath10k_sdio_write() ath10k_sdio_read/write32(): sdio_readl()/sdio_writel() (those use endian macros) ath10k_sdio_readsb(): len =3D round_down(len, ar_sdio->mbox_info.block_size); sdio_memcpy_fromio(len) With these changes I'm hoping to get rid of also the memory leaks and have proper endian support. --=20 Kalle Valo=