From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1948476AbcBRVPs (ORCPT ); Thu, 18 Feb 2016 16:15:48 -0500 Received: from foss.arm.com ([217.140.101.70]:42453 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1947811AbcBRVPq (ORCPT ); Thu, 18 Feb 2016 16:15:46 -0500 Subject: Re: [PATCH v3 0/5] ACPI: parse the SPCR table To: Aleksey Makarov , linux-acpi@vger.kernel.org References: <1455559532-8305-1-git-send-email-aleksey.makarov@linaro.org> Cc: Russell King , Graeme Gregory , Greg Kroah-Hartman , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, Leif Lindholm , Christopher Covington , linux-serial@vger.kernel.org, Al Stone , linux-arm-kernel@lists.infradead.org From: Jeremy Linton Message-ID: <56C63480.5020605@arm.com> Date: Thu, 18 Feb 2016 15:15:44 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1455559532-8305-1-git-send-email-aleksey.makarov@linaro.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/15/2016 12:05 PM, Aleksey Makarov wrote: > This patchset is based on the patchset by Leif Lindholm [1] > > 'ARM Server Base Boot Requirements' [2] mentions SPCR (Serial Port > Console Redirection Table) [3] as a mandatory ACPI table that > specifies the configuration of serial console. > > SPCR support is included in QEMU's ARM mach-virt since 2.4 release. > > Introduce a new function acpi_console_check(). At the uart port > registration, this function checks if the ACPI SPCR table specifies > its argument of type struct uart_port to be a console > and if so calls add_preferred_console(). > > Use SPCR to tell if SBSA serial driver should use 32-bit access to registers. > > To be able to access SPCR table each time any console is registered > change __init to __ref for early_acpi_os_unmap_memory(). > > The patchset should be applied to tty-next. (trimming) This works on the JunoR2 with a new enough firmware to have the SPCR table. Tested-by: Jeremy Linton