Re: [PATCH v4 30/47] serial: ucc_uart: factor out soft_uart initialization

2019-11-14 Thread Rasmus Villemoes
On 14/11/2019 06.14, Timur Tabi wrote: > On Fri, Nov 8, 2019 at 7:03 AM Rasmus Villemoes > wrote: >> >> - /* >> -* Determine if we need Soft-UART mode >> -*/ >> if (of_find_property(np, "soft-uart", NULL)) { >> dev_dbg(>dev, "using Soft-UART mode\n");

Re: [PATCH v4 30/47] serial: ucc_uart: factor out soft_uart initialization

2019-11-13 Thread Timur Tabi
On Fri, Nov 8, 2019 at 7:03 AM Rasmus Villemoes wrote: > > - /* > -* Determine if we need Soft-UART mode > -*/ > if (of_find_property(np, "soft-uart", NULL)) { > dev_dbg(>dev, "using Soft-UART mode\n"); > soft_uart = 1; > + }

[PATCH v4 30/47] serial: ucc_uart: factor out soft_uart initialization

2019-11-08 Thread Rasmus Villemoes
The "soft uart" mechanism is a workaround for a silicon bug which (as far as I know) only affects some PPC-based SOCs. The code that determines which microcode blob to request relies on some powerpc-specific bits (e.g. the mfspr(SPRN_SVR) and hence also the asm/reg.h header). This makes it a