Re: [PATCH v2] mmc: pxamci: fix the device-tree probe deferral path

2016-02-08 Thread Robert Jarzmik
Ulf Hansson writes: > On 6 February 2016 at 22:14, Robert Jarzmik wrote: >> When the gpio driver is probed after the mmc one, the read/write gpio >> and card detection one return -EPROBE_DEFER. Unfortunately, the memory >> region remains requested, and upon the next probe, the probe will fail >>

Re: [PATCH v2] mmc: pxamci: fix the device-tree probe deferral path

2016-02-08 Thread Ulf Hansson
On 6 February 2016 at 22:14, Robert Jarzmik wrote: > When the gpio driver is probed after the mmc one, the read/write gpio > and card detection one return -EPROBE_DEFER. Unfortunately, the memory > region remains requested, and upon the next probe, the probe will fail > anyway with -EBUSY. > > Fix

[PATCH v2] mmc: pxamci: fix the device-tree probe deferral path

2016-02-06 Thread Robert Jarzmik
When the gpio driver is probed after the mmc one, the read/write gpio and card detection one return -EPROBE_DEFER. Unfortunately, the memory region remains requested, and upon the next probe, the probe will fail anyway with -EBUSY. Fix this by releasing the memory resource upon probe failure. Mor