Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3510905ybt; Tue, 23 Jun 2020 04:14:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1K+YmUuInzQ5IVKIxU1W18n24IzH9lG7sCnHNNf+K5hhCmmbTRd83zL0uDJwTOmXU3ZEz X-Received: by 2002:a17:906:7e50:: with SMTP id z16mr20602485ejr.277.1592910858025; Tue, 23 Jun 2020 04:14:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592910858; cv=none; d=google.com; s=arc-20160816; b=XbPofbPf9Uas4SaBHd1zXSi3/L1d46RlS4TEIACsmJLr21F+roPCbi/uu4m9XcXjE3 XIId5OE4oRaJh2XJGmzZszRi9mVmuKo3LVXG3sI65nO3DqzkhcjJMARWuaIUgrDoPWb8 8qNVYgk1AiRypeDFtp9CXLPiqieniTVIX+wmG6n/i6bdhGFCzaeeEs/KmGL6NEDXaA/t 38S26vCN2c4r/1Q5DuOlj32vvquB9Xjo628iOJktQlvk1qHQOtZHW7yd5tB+EqIk+i3F +0fCV/MjbPmjK3p0zoyLhyDfp1vEvSaXW8yoEYgJh1j1aH+v24LMRss0jwG/h09+r83P 4Uow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=twAyp3okr7kOUwXw1V0zgiy/sW5FRSDtzU2LxgNpArI=; b=ryRoikgNF/FPQswcx2RmJEeAVKENCBujUDljmOBrsVTC9aza/NyDSkanc7F96xn2zI zjROCuAhs8Teoay8FmZmbq+pRDyz0fTLO2H9+3FKs1k5e6fb7/XDM0XkfAuztF+wFLn4 99nv+WsWnP498chP1F0YFDsR+E2nKYwCkq73z4xUCekEEbA88OfDcX9ao2ODlolJHDcP ZnF6l52QTArlH/vDysr4zFZ+SgbCxTmDZjZ9RfXajOAAkk8DF9k8EVzcGRxTJgbxvpOt mzLixWLjD/2pn8pdJ2hwCyeEZs7d4+kYIuGMioRJRcL6IHGmqvLzakjLZUiBqPqlhW/o X6Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=BCcgXjxK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r18si10977217edm.223.2020.06.23.04.13.54; Tue, 23 Jun 2020 04:14:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=BCcgXjxK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732274AbgFWLJr (ORCPT + 99 others); Tue, 23 Jun 2020 07:09:47 -0400 Received: from mail-40133.protonmail.ch ([185.70.40.133]:46312 "EHLO mail-40133.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732205AbgFWLJq (ORCPT ); Tue, 23 Jun 2020 07:09:46 -0400 Date: Tue, 23 Jun 2020 11:09:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1592910583; bh=twAyp3okr7kOUwXw1V0zgiy/sW5FRSDtzU2LxgNpArI=; h=Date:To:From:Cc:Reply-To:Subject:From; b=BCcgXjxKR/i/Wk7Lg+AP/wQU9CYm7lwjnWCZvfKrNyGFRkNyXf93czgX+hmRzsLbq GKLVJJgP0ETycDY/+PpsjDg84X+djkHgI7ZqxEv3fwKpSlwyRAgovuQ0zwHMnW31W1 WT9uSLmGXUtJCYYp0//YbueWdegUThGDooujg96aTk1GRjaYVLKsvMnOFq0zZ/4Nat 0C97ouZp6RbIcISEunxecl0L8VwDQJMfgvk/xG0KlO83U9jg7XknS7QXWm+QnY1m0i +EmKtdr1zQFOYtuz2pXkP4QJgmFlhbl9fRo+YRzxbcj/an7280MIQdzGnMFcGb6UHx LFkxWG+aenBXw== To: Amit Shah From: Alexander Lobakin Cc: Arnd Bergmann , Greg Kroah-Hartman , =?utf-8?Q?Sjur_Br=C3=A6ndeland?= , Rusty Russell , Alexander Lobakin , virtualization@lists.linux-foundation.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH resend] virtio: virtio_console: add missing MODULE_DEVICE_TABLE() for rproc serial Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org rproc_serial_id_table lacks an exposure to module devicetable, so when remoteproc firmware requests VIRTIO_ID_RPROC_SERIAL, no uevent is generated and no module autoloading occurs. Add missing MODULE_DEVICE_TABLE() annotation and move the existing one for VIRTIO_ID_CONSOLE right to the table itself. Fixes: 1b6370463e88 ("virtio_console: Add support for remoteproc serial") Cc: # v3.8+ Signed-off-by: Alexander Lobakin Reviewed-by: Amit Shah --- drivers/char/virtio_console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 00c5e3acee46..ca691bce9791 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -2116,6 +2116,7 @@ static struct virtio_device_id id_table[] =3D { =09{ VIRTIO_ID_CONSOLE, VIRTIO_DEV_ANY_ID }, =09{ 0 }, }; +MODULE_DEVICE_TABLE(virtio, id_table); =20 static unsigned int features[] =3D { =09VIRTIO_CONSOLE_F_SIZE, @@ -2128,6 +2129,7 @@ static struct virtio_device_id rproc_serial_id_table[= ] =3D { #endif =09{ 0 }, }; +MODULE_DEVICE_TABLE(virtio, rproc_serial_id_table); =20 static unsigned int rproc_serial_features[] =3D { }; @@ -2280,6 +2282,5 @@ static void __exit fini(void) module_init(init); module_exit(fini); =20 -MODULE_DEVICE_TABLE(virtio, id_table); MODULE_DESCRIPTION("Virtio console driver"); MODULE_LICENSE("GPL"); --=20 2.27.0