Re: [PATCH v3 06/15] platform: goldfish: pipe: Move memory allocation from probe to init

From: Roman Kiryanov
Date: Mon Oct 15 2018 - 14:48:44 EST


> You should only allocate memory at probe time

probe does not know what memory to allocate. We have several versions
of the driver (with different init) and different versions allocate
different state.

>, not init time as what
> happens if the hardware is not present yet your driver is loaded?

init will have to rollback what it allocated.