Bluetooth: Change fifo_fill to poll_out
Bluetooth: Change fifo_fill to poll_out

The reason why fifo_fill works in qemu but not on real hardware is
that qemu serializes all byte transmission 1 by 1. There is no
real hardware fifo emulated, and "fifo" depth is 1. On real
hardware, the controller owns an internal fifo, with a depth like
8 bytes on Quark x1000. And because of execution flow, how fast is
the controller etc etc... a fifo_fill call might fill in the
internal fifo of 8 bytes and then controller says "I am full"
(which means: "wait for the fifo to have space again"). That's
why poll_out() works: it does the same as fifo_fill and wait
that the internal fifo gets some space again before continuing.
And only when all bytes have been pushed in, it returns.

Change-Id: I452a6ebb2913c5e52ed01d999185e250aa3ed474
Signed-off-by: Andrei Emeltchenko <a6565233ddc88e4fb9c66c1d70743223493f2ed4@intel.com>
mirzak/zephyr-os,coldnew/zephyr-project-fork,galak/zephyr,ldts/zephyr,holtmann/zephyr,GiulianoFranchetto/zephyr,coldnew/zephyr-project-fork,Vudentz/zephyr,ldts/zephyr,jamesonwilliams/zephyr-kernel,mbolivar/zephyr,explora26/zephyr,holtmann/zephyr,punitvara/zephyr,32bitmicro/zephyr,erwango/zephyr,rsalveti/zephyr,coldnew/zephyr-project-fork,32bitmicro/zephyr,zephyriot/zephyr,fractalclone/zephyr-riscv,runchip/zephyr-cc3220,rsalveti/zephyr,runchip/zephyr-cc3220,nashif/zephyr,GiulianoFranchetto/zephyr,bboozzoo/zephyr,aceofall/zephyr-iotos,punitvara/zephyr,finikorg/zephyr,bigdinotech/zephyr,fbsder/zephyr,bboozzoo/zephyr,kraj/zephyr,bigdinotech/zephyr,punitvara/zephyr,aceofall/zephyr-iotos,zephyrproject-rtos/zephyr,zephyriot/zephyr,Vudentz/zephyr,punitvara/zephyr,pklazy/zephyr,GiulianoFranchetto/zephyr,fractalclone/zephyr-riscv,Vudentz/zephyr,erwango/zephyr,bigdinotech/zephyr,fractalclone/zephyr-riscv,nashif/zephyr,mirzak/zephyr-os,sharronliu/zephyr,finikorg/zephyr,runchip/zephyr-cc3220,nashif/zephyr,erwango/zephyr,rsalveti/zephyr,aceofall/zephyr-iotos,holtmann/zephyr,holtmann/zephyr,bigdinotech/zephyr,rsalveti/zephyr,tidyjiang8/zephyr-doc,galak/zephyr,mbolivar/zephyr,explora26/zephyr,zephyriot/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,runchip/zephyr-cc3200,fbsder/zephyr,ldts/zephyr,tidyjiang8/zephyr-doc,Vudentz/zephyr,jamesonwilliams/zephyr-kernel,mirzak/zephyr-os,rsalveti/zephyr,galak/zephyr,bigdinotech/zephyr,kraj/zephyr,mirzak/zephyr-os,finikorg/zephyr,fractalclone/zephyr-riscv,bboozzoo/zephyr,holtmann/zephyr,galak/zephyr,tidyjiang8/zephyr-doc,pklazy/zephyr,explora26/zephyr,fractalclone/zephyr-riscv,runchip/zephyr-cc3220,zephyrproject-rtos/zephyr,mbolivar/zephyr,ldts/zephyr,jamesonwilliams/zephyr-kernel,kraj/zephyr,bboozzoo/zephyr,fbsder/zephyr,sharronliu/zephyr,kraj/zephyr,fbsder/zephyr,runchip/zephyr-cc3220,ldts/zephyr,sharronliu/zephyr,galak/zephyr,explora26/zephyr,zephyriot/zephyr,nashif/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,pklazy/zephyr,pklazy/zephyr,sharronliu/zephyr,zephyrproject-rtos/zephyr,mbolivar/zephyr,zephyriot/zephyr,aceofall/zephyr-iotos,32bitmicro/zephyr,explora26/zephyr,sharronliu/zephyr,jamesonwilliams/zephyr-kernel,jamesonwilliams/zephyr-kernel,32bitmicro/zephyr,finikorg/zephyr,Vudentz/zephyr,erwango/zephyr,runchip/zephyr-cc3200,mbolivar/zephyr,GiulianoFranchetto/zephyr,tidyjiang8/zephyr-doc,erwango/zephyr,kraj/zephyr,runchip/zephyr-cc3200,zephyrproject-rtos/zephyr,coldnew/zephyr-project-fork,32bitmicro/zephyr,aceofall/zephyr-iotos,runchip/zephyr-cc3200,tidyjiang8/zephyr-doc,runchip/zephyr-cc3200,bboozzoo/zephyr,fbsder/zephyr,coldnew/zephyr-project-fork,pklazy/zephyr,nashif/zephyr,mirzak/zephyr-os,finikorg/zephyr