Re: [PATCH v2] spi: rockchip: Disable Runtime PM when chip select is asserted

2017-06-27 Thread jeffy
Hi doug, thanx for your comments. On 06/28/2017 03:27 AM, Doug Anderson wrote: Hi, On Mon, Jun 26, 2017 at 7:20 PM, Jeffy Chen wrote: The rockchip spi would stop driving pins when runtime suspended, which might break slave's xfer(for example cros_ec). Since we have pullups on those pins, we

Re: [PATCH v2] spi: rockchip: Disable Runtime PM when chip select is asserted

2017-06-27 Thread Doug Anderson
Hi, On Mon, Jun 26, 2017 at 7:20 PM, Jeffy Chen wrote: > The rockchip spi would stop driving pins when runtime suspended, which > might break slave's xfer(for example cros_ec). > > Since we have pullups on those pins, we only need to care about the CS > asserted case. > > So let's keep the spi al

[PATCH v2] spi: rockchip: Disable Runtime PM when chip select is asserted

2017-06-26 Thread Jeffy Chen
The rockchip spi would stop driving pins when runtime suspended, which might break slave's xfer(for example cros_ec). Since we have pullups on those pins, we only need to care about the CS asserted case. So let's keep the spi alive when chip select is asserted for that. Also change use pm_runtim