Hyperpixel 4" square cpmpile as built in, not as module

Has anyone ever done this? The official driver simply crashes, so we started our own development, only to find it crashes as well.

It crashes in the probe function (static int hyperpixel4sq_probe(struct spi_device *spi)), on something it should not crash on at all, namely the drm_panel_add(&ctx->panel); call.

Any idea’s or suggestions on this?

No i do not want to compile as a module. It has to be built in the kernel.

Just to let you know, we’ve fixed the crash. we were using devm_kzalloc. Changing it to kzalloc fixed the issue.

Now it boots, without display image, as the driver is not done yet. Also we now have a memory leak to fix, as kzalloc doedn’t free, as devm_kzalloc does.