Re: [U-Boot] [PATCH] serial: bcm283x_mu: make pending values more explicit

2016-04-20 Thread Simon Glass
On 13 April 2016 at 22:29, Stephen Warren wrote: > dm_serial_ops.pending should return the number of characters, not just a > valid C Boolean integer value. The existing code does already does this, > but only as an accident since BCM283X_MU_LSR_RX_READY happens to be > BIT(0). Enhance the code to

[U-Boot] [PATCH] serial: bcm283x_mu: make pending values more explicit

2016-04-13 Thread Stephen Warren
dm_serial_ops.pending should return the number of characters, not just a valid C Boolean integer value. The existing code does already does this, but only as an accident since BCM283X_MU_LSR_RX_READY happens to be BIT(0). Enhance the code to be more explicit about the values it returns. Suggested-