> On Wed, Sep 21, 2016 at 10:40:43AM +0200, Eric Le Bihan wrote: > > > > I'm trying to port the brcmnand driver for Broadcom NAND controller > > from Linux. > > This driver requires an update of the MTD headers in barebox, as > > they lack > > definitions for functions such as mtd_set_ooblayout(). > > > > What is the recommended strategy for this? Should I update the > > whole set of > > headers and report the barebox specific changes (use of device_d, > > etc) or only > > add the missing functions? > > For the mtd headers we usually only port the functions we need which > worked good enough in the past. OK. I've noticed that the use of mtd_set_ooblayout() was introduced in Linux 4.7. So I'll port brcmnand from 4.6, thus avoiding quite a few changes in the OOB/ECC management. Thanks for your advices. Best regards, -- ELB _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox