[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ns16550: Properly gate Exar PCIe UART cards support
- To: Oleksandr Andrushchenko <andr2000@xxxxxxxxx>
- From: Jan Beulich <jbeulich@xxxxxxxx>
- Date: Fri, 20 Aug 2021 14:07:05 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tzqFJ5DQuYawbCFJUSn8oHxjHDJugyc15iD50lfNrtw=; b=WguT4BFipugBQAWoVPF8hD5fGTONCA2D+V7EuCojnWZiybHFlik0ySztAzNnE6EEKFCaYMQ8xqU1VUcKpui7baeZzY6gFvEEtsDBauUgHiq1jCEzipfUxFX0RGD8WpHfVZtb/W+bh7JvRS3K4NoxAjrFl4pDcKvPqGRanV9Gr2YjR5haO3WlS91PLsRKKQRN0mX/XxO4fy0I/wHxn7KyJU0AwCUWaMCp8EDHFXIHwOYjSfxnEsW3JPMuPRIk8/uA2bDMZSK/SjDjxhtOzp01p9EW1Whc5hpQszt4fcHIVcV82x4Qur1gfwQGcUFz9PPTNZX4X0fPz2iS6FaFSr0K8g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XUS7bPbcUHbXY/TsAMiNvASb/iVxhHsUUVvVdInSntYORdip2/90LQWZvf8uzrjPMKk/z6rePUOmi7wrhp3FoFb9xxnJjK50dc/cX/Z8f+Ej3dg5U1Le21HWTuvAVRrQ2zKw2XhfPI0hIifMZPTbDC3YvePes3jdiFpFWgeKEG5JSyi1nwmUyZMM5yJKaPwLxjs/yeQpn80jNtdy1J2sLBKc9jd7ijuJoEvmCx8LafUrinHEsqRec0sXYUx6bfkbXm/HUJ7r5cedZqMuboD+KjTmKEaXIQtRbYDPEnaHGS9h5dmWgk+xQty/eEjc80s2cmC0xL/OjPQs3Rl11SaYsg==
- Authentication-results: lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=none action=none header.from=suse.com;
- Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>, andrew.cooper3@xxxxxxxxxx, george.dunlap@xxxxxxxxxx, iwj@xxxxxxxxxxxxxx, julien@xxxxxxx, sstabellini@xxxxxxxxxx, wl@xxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Fri, 20 Aug 2021 12:07:19 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 20.08.2021 13:54, Oleksandr Andrushchenko wrote:
> From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
>
> This fixes Arm build which doesn't have ns16550 PCI support.
>
> ns16550.c:313:5: error: implicit declaration of function
> 'enable_exar_enhanced_bits' [-Werror=implicit-function-declaration]
> 313 | enable_exar_enhanced_bits(uart);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~
This can't be the full story - both Arm32 and Arm64 build fine for me.
In fact I can't find any "select HAS_PCI" outside of x86'es subtree.
> Fixes: 5ffd37db2ff6 ("ns16550: add Exar PCIe UART cards support")
IOW this tag is wrong, no matter that I agree that ...
> --- a/xen/drivers/char/ns16550.c
> +++ b/xen/drivers/char/ns16550.c
> @@ -308,7 +308,7 @@ static void ns16550_setup_preirq(struct ns16550 *uart)
> /* Handle the DesignWare 8250 'busy-detect' quirk. */
> handle_dw_usr_busy_quirk(uart);
>
> -#ifdef CONFIG_HAS_PCI
> +#ifdef NS16550_PCI
> /* Enable Exar "Enhanced function bits" */
> enable_exar_enhanced_bits(uart);
> #endif
... this change is wanted, but just for consistency for now. If you
can supply an improved / accurate description, I'll be happy to commit
this with
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
As an aside - please follow patch submission guidelines: Patches go
To the list, with maintainers (and perhaps other relevant folks) on Cc.
Jan
|