On Tue, Jun 26, 2012 at 3:07 PM, Yinghai Lu wrote: > On Tue, Jun 26, 2012 at 11:53 AM, Yinghai Lu wrote: >> It is changed from busn_res only version, because Bjorn found that version >> was not holding resource_lock. >> Even it may be ok for busn_res not holding resource_lock. >> It would be better to have it to be generic and use lock and we may >> use it for other resources. >> >> probe_resource() will try to find specified size or more in parent bus. >> If can not find current parent resource, and it will try to expand parents >> top. >> If still can not find that specified on top, it will try to reduce target size >> until find one. >> >> It will return 0, if it find any resource that could be used. >> >> Returned resource is registered in the tree. >> So caller may need to use replace_resource to put real resource in tree. >> >> -v3: remove two parameters that is for debug purpose. >> -v4: fix stop_flags checking. >> -v5: adjust stop_flags checking position to avoid not needed calling >> into allocate_resource(). > > please check attached one that is updated after first patch with > __allocate_resource changes. > except this one and first one are changed. left ones are not needed to > be updated. > So i'm not going to resend them. please check update one. -v7 Thanks Yinghai