Re: [PATCH 1/4] mci: sdhci: provide sdhci_readx_poll_timeout helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4/20/20 8:22 AM, Sascha Hauer wrote:
> On Wed, Apr 15, 2020 at 11:29:13AM +0200, Ahmad Fatoum wrote:
>> The sdhci_readN accessors don't lend themselves for clean use with
>> readx_poll_timeout because they accept two arguments. Add
>> a sdhci-specific helper, so the sdhci drivers can cut down on the
>> timeout loop boilerplate.

> Is this really an improvement? How many variants of these helpers will we get?

It's used 6 times within this series. Other SDHCI drivers can make use of it too.
Would you prefer extending <linux/iopoll.h> with a two arg accessor variant
instead?

Cheers,

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux