FDT away for RTL8366. Also fixed FDT support gpioiic.c.
Boot log is this.
https://gist.github.com/yamori813/bd6ccdbd73dd02eebfdd0bd6d92411d8
Paths
| Differential D12649 Authored by yamori813_yahoo.co.jp on Oct 13 2017, 12:48 AM.
Details
Diff Detail
Event TimelineComment Actions All is fine, one improvement is possible (gpio_pins for non-fdt case).
This revision is now accepted and ready to land.Oct 16 2017, 12:05 PM2017-10-16 12:05:06 (UTC+0) Comment Actions I don't like all the duplicate code in gpioiic.c. Can you explain which bugs are you trying to fix ? gpioiic seems to works fine with FDT, but if you want to use the new API, maybe you should consider something like what was done with gpioled (and its FDT counterpart). This revision now requires changes to proceed.Oct 18 2017, 5:58 PM2017-10-18 17:58:57 (UTC+0) Comment Actions
I think IVAR can't use on FDT. Current gpioiic.c is use IVAR. Tell me dts file on work current gpioiic.c. Current code is crash in gpioiic_attach() at devi->pins[] access in at FDT build. Other FDT base gpio code use simplebus or ofwbus by DRIVER_MODULE. But gpioiic not use this. Comment Actions Custom dts files shouldn't be put to sys/gnu/dts. This directory is periodically synced with upstream tree, so custom changes may be hard to maintain. The right way to new .dts is to put it to boot/fdt/dts/mips. All include operators should just work yamori813_yahoo.co.jp updated this revision to Diff 34140.Oct 19 2017, 9:43 AM2017-10-19 09:43:29 (UTC+0) Comment Actions
Comment Actions
my dts file move to sys/boot/fdt/dts/mips yamori813_yahoo.co.jp updated this revision to Diff 34271.Oct 23 2017, 11:13 PM2017-10-23 23:13:30 (UTC+0) Comment Actions
Comment Actions loos Please show me complete dts file use gpioiic.c.
Revision Contents
Diff 34271 sys/boot/fdt/dts/mips/MZK-W300NAG.dts
sys/conf/files
sys/dev/etherswitch/rtl8366/rtl8366rb.c
sys/dev/gpio/gpioiic_fdt.c
|
Is this gve_down() call needed, given that we already bought the interface down?