rtas: Improve error handling in instantiate-rtas

Error handling, even when the call is not implemented,
code was printing failed.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
net-snk: Remoe some now unused "kernel" functions

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
js2x: Fix build

Add a dummy version.c to please the Makefile

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove pci/vio_config gunk

None of that is used anymore

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove snk_kernel_interface and related definitions

None of this if of any use anymore

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove insmod/rmmod

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove module system

It's not used anymore, let's just call directly into the relevant
OF functions. While at it, also make socket() actually return
an fd.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove some unused PCI functions

The read/write_io ones are used by biosemu, though we should
probably fix them to work on qemu platform at some stage.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove unused timer functions

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove redundant prototypes

Those functions are in string.h

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Remove printk() in favor of printf()

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: use socket descriptor in the network stack

With module layer cleanup, and a fixed socket() call, start using the
fd across the network stack.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Avoid type clash for stdin & stdout

Now that we are using the libc stdio

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Sanitize our .lds file

No need to have a single giant section, break it back up, add
some missing bits, and make sure .opd is separate so that objdump
and gdb can properly reconstitute the dot symbols.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[ do not discard .comment, this is fixed with binutils 2.24]
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
net-snk: Remove custom printf version

In favor of the libc one

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: Make call_client_interface() a bit more ABI compliant

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
net-snk: llfw startup is using the wrong offset to handler

It's loading from handler + 0x160 instead of 0x60. Not a big problem
in practice but should be fixed.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Fix term-io-key to also work when stdin has not been set yet

term-io-key simply did nothing when the stdin had not been set yet.
Especially, it even did not put an output item on the stack, which led
to very ugly crashes in case we dropped to the Forth prompt before
the console had been set up. Fix it by running the behaviour of the
previous key handler instead.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
usb-xhci: support xhci extended capabilities

commit 706c69e4 "xhci: fix port assignment" partially fixed the
usb port numbering.

Adding parsing of xhci extended capabilities, we can parse the
overlapped ports accordingly and have proper port numbering.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
pci: scan only type 0 and type 1

In certain cases when a PCI device is passthru and is frozen before it
reaches SLOF.  All PCI read result reading FF. This exposed a bug in
the pci scan code which would wrongly take it as a pci brigde and try
to scan devices below that and that would enter an infinite loop.

Explicitly scan for type 0/1 and rest are not supported.

Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>