From patchwork Fri Sep 25 07:31:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sherry Sun X-Patchwork-Id: 11799299 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CAD5E6CB for ; Fri, 25 Sep 2020 07:33:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A18BC235FA for ; Fri, 25 Sep 2020 07:33:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="IzfbPRci" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727441AbgIYHdI (ORCPT ); Fri, 25 Sep 2020 03:33:08 -0400 Received: from mail-eopbgr80041.outbound.protection.outlook.com ([40.107.8.41]:62789 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727435AbgIYHdH (ORCPT ); Fri, 25 Sep 2020 03:33:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ONglSJlVTcQa7KRO5DNW1O+ekBbKET59yYAejp2g3Cavdyx2uPCYwdWRoQsblgqgcycDcY8rzOt7SDnBDE76ffhAkMfryfoCJTWMcGDVmaw6YKfmNvVAuATIKO7vF3eNYA+jIGV+NWER4AYXpxLEFPxK8oruLXFGMmJifOWbA9bbK0VhdYQm5MJw/noyYzW6ePu7dByxvCBWSoIPjqcEu5R87filSwi7Bm8QAxFehl95CCZFAUSYIsVoa4oI45jnoknRaNZXx+JM9YVPHu7ZgENEY2k+2uicnexYP13PBpvwh48jPttyEzQ8jMElHgAubBntOEfzyLK6TomObswkVQ== 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=4YLjKlm/UykgZjKXATlB7aqXgK+Tqsk6jHQjifNbNUk=; b=IByIsTv4ZZ/nXkOFicj1yYHG8Qm1PVunreUpD2xFCY2IHV/tZ6dhB/s9u/Y8Vto3crefYE/LUf9xzxUGePtlT3WtU6qj5bwCbuCcFQjY4EG7H1io22sHitzecL0RFvNnZRYzMW497NeZtHc0k4G+QCzm6AaVOG9UbVovt+fDW9uF017y2q2HPLj50uf5kMj/ryvbHPesYYoP8EPoULk27jiChHHtPGdYrqWDkm2M4E/jXcsKrGsSnXZBsyUerZGCfhuakaoGY3k9uTtySgwDdo1B6SWogFK/pTL+nJF8z+gH93cj11wh9anUalPSjMmMfnruf9z7C0R6XlgXo7RDhg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4YLjKlm/UykgZjKXATlB7aqXgK+Tqsk6jHQjifNbNUk=; b=IzfbPRciM3RXljnKW7gi64xbgzwaFEchqLKVcvdLlcEUSC4IdtLVYCAeR4KG1sw4SqH/IyzQ9PmN5rA+MqM5Cni8ZUYvNa48hSljJstzZG+pCFva9gQ9zLedWsNII0JcA8Gf1Y8udrONR/T+UteVwZUCT7eo9hdknzkMBfcX8zE= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB4960.eurprd04.prod.outlook.com (2603:10a6:803:57::21) by VI1PR0402MB3759.eurprd04.prod.outlook.com (2603:10a6:803:1f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.15; Fri, 25 Sep 2020 07:33:04 +0000 Received: from VI1PR04MB4960.eurprd04.prod.outlook.com ([fe80::b178:a37b:1f9e:3a6]) by VI1PR04MB4960.eurprd04.prod.outlook.com ([fe80::b178:a37b:1f9e:3a6%3]) with mapi id 15.20.3412.024; Fri, 25 Sep 2020 07:33:04 +0000 From: Sherry Sun To: sudeep.dutt@intel.com, ashutosh.dixit@intel.com, arnd@arndb.de, gregkh@linuxfoundation.org, masahiroy@kernel.org, michal.lkml@markovi.net, lee.jones@linaro.org, rikard.falkeborn@gmail.com, mst@redhat.co, bp@suse.de, jhugo@codeaurora.org, tglx@linutronix.de, manivannan.sadhasivam@linaro.org, mgross@linux.intel.com, pierre-louis.bossart@linux.intel.com Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH 1/3] mic: vop: fix a written error in MODULE_DEVICE_TABLE Date: Fri, 25 Sep 2020 15:31:56 +0800 Message-Id: <20200925073158.8238-2-sherry.sun@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200925073158.8238-1-sherry.sun@nxp.com> References: <20200925073158.8238-1-sherry.sun@nxp.com> X-ClientProxiedBy: AM0P190CA0001.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::11) To VI1PR04MB4960.eurprd04.prod.outlook.com (2603:10a6:803:57::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from nxp.ap.freescale.net (119.31.174.71) by AM0P190CA0001.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.24 via Frontend Transport; Fri, 25 Sep 2020 07:32:56 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: f4d1a642-d1f7-40be-08b9-08d861253d16 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3759: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2887; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xVzwEW4h59vEnmZki477B17fUP0DWKpSW5i7ReBw9cdG3ugFZYSsJ5Il7VWexbvDMZZBs58voGgn93OeGnexhCXedq2dRHWLNX3LS2HiMnRjNbBii+3/IwBQ5dGPgDvLHH5A58mtZ6A351RK+W0w4r/BZ7e61KepruGKlb7fcroxg6tLGmn/JoECK/G1kGAfoIVCBoUsEoxxQ1MWdoxdWRGaPFkU05q7biwMr3o8hm7U4aAF4VmweEq6fn1xYTwLHg5ByluBF7lrVofSzNBiProYWQmeiCU01TeJ0cyNaP0357t8IgoreZhmLpoXgddwOgEkuKSUGtGHr9IjUow8NfHgeBSVpxHxrBEVoAN6i0ebP10Y2sWmPSoqQC0tP6PCZQMBU3elldkdf5jJzphbDaJymEY2TZ0TazD6K1zUlEQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB4960.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(366004)(396003)(346002)(39860400002)(376002)(16526019)(186003)(52116002)(2906002)(1076003)(26005)(66556008)(66946007)(66476007)(2616005)(956004)(86362001)(44832011)(4326008)(6512007)(8676002)(7416002)(6486002)(36756003)(316002)(8936002)(4744005)(478600001)(5660300002)(83380400001)(6506007)(921003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: VuBYGqWgGqIEkHngdM/fHUVAjlupRpR+I2koAs4ZBTUVxh3CkcoYmTdUYUYdrlHyvgLldx5x0UoyPYR5q7mzZpQgt0iesn/GMsQk8pgpcOJ1PiDxLEXOYZ5kPJBzCezYF8wNK1Dd+0bM5+cI9MScH3RNPxPCx/NK1F46nqCZzvNLLfTk1Hn1NPs8yfiVbOjn4P9fV83+f9Tdos/k28mrqKRT4uHMEAdc314qrZ9GIT+ODgVIgS1ytBtRkxHGbSPQDsaAj1IqVvC4athfzlPslF2VfliYd1FtcSHsqaWV+luPReYSBiGSj7lo7k+PiFHDIwqKpU5Y6RAh7A5JupCADBRnYJJiWcvZQJB+Io6pzjG1XcKWhqGU7H9a9SU3S9kIaXo7dAddt0RCjOT4m8EfmorC5LVe34i0vdxBMI6CfCfSg2qjWa78MbxzG7oHXCmhbsivb7C3k8q9lzZdLT2Lw0TsN6lbowQrKuFL38l631HUDhoVfHXLA5kMNYack77ZG3oC9UCFKiPJHkNsQhMqR+qpDAVbW6mb3J+vUmhdeJc1ZESTynsvBu0TXg02FuqUmwXMYzwBpWQycN/TSBeTBlRZJyKlU8NwRj6Z4KEQPaLQzhIEj8+aLVnB5sUKO8pFYUku4jNzFRcuo8kss6Hf9Q== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f4d1a642-d1f7-40be-08b9-08d861253d16 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4960.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2020 07:33:04.3461 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0pEcy3Rn+tawxnKJnaBfF3jRpiT4fb0UxhMK1B6T0rIX23LWsyWpjHqzS8Krf1NTXkEWBmjjlGiSoZC3ejr/0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3759 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org For vop bus, the first parameter should be vop in MODULE_DEVICE_TABLE. Signed-off-by: Sherry Sun Signed-off-by: Joakim Zhang --- drivers/misc/mic/vop/vop_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mic/vop/vop_main.c b/drivers/misc/mic/vop/vop_main.c index d609f0dc6124..589425fa78d4 100644 --- a/drivers/misc/mic/vop/vop_main.c +++ b/drivers/misc/mic/vop/vop_main.c @@ -796,7 +796,7 @@ static struct vop_driver vop_driver = { module_vop_driver(vop_driver); -MODULE_DEVICE_TABLE(mbus, id_table); +MODULE_DEVICE_TABLE(vop, id_table); MODULE_AUTHOR("Intel Corporation"); MODULE_DESCRIPTION("Intel(R) Virtio Over PCIe (VOP) driver"); MODULE_LICENSE("GPL v2"); From patchwork Fri Sep 25 07:31:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sherry Sun X-Patchwork-Id: 11799301 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3AD4F92C for ; Fri, 25 Sep 2020 07:33:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0CE6123718 for ; Fri, 25 Sep 2020 07:33:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="BRQUZn9K" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727435AbgIYHdR (ORCPT ); Fri, 25 Sep 2020 03:33:17 -0400 Received: from mail-eopbgr130087.outbound.protection.outlook.com ([40.107.13.87]:53830 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727067AbgIYHdR (ORCPT ); Fri, 25 Sep 2020 03:33:17 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eTW25HZjvT/Tk1BdOXQJXmvDk4tqBjUpOog4A6CidF4s9kQeiJ8T29z8E7Kq2HNmwH8zUIe9QM360TS35/po7QQxF4xkrryJNjzH4aOlCOqfWPI75wDqn8dGHgO2/Uxyeouml7StCXqcL53DWSJZelQpf8AYVgTpZiHBxQgKMp9eOTfhWrYG77IHX+yskSdkZG1K00nrBTK5fw5rYUbwvX8jWdRNRT+HoZEYsIXyuT+9LQWmPGjBc31MmCdHKS/VtPg8rdf8Nkz60fr/1R8+ovVoYlRy6ZzuyB4HR/YfTtQZZJZeS2nzOIh5OcLEDlJ6A2nYLKIalt98Pu/aV1PEjA== 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=yR41chohSm9+P5OoQ4TZhYOdqp2dEdLNx9SHN5xq9VI=; b=WzS+b8sosUruIUBe2usAEPxqtCwceeUfCP8TrtsBUgrK6G+SlrZBYZVEcSIG/SDgKoOWzkFmeuXxxKDkpudwx9yqbkqrvq7cx6O5FZV3ftLZkdO1/nZVRJXkNSuSWxVx83dpPhcCuFtWbfAAR/+aJGy/fuAT5IfRHZIS1dtCL7rSEV7rAMAxwQkohIaJ7PemgwXhWA21UKYUBG6KdBpZyAo+KIT6kLO3rg5BBWsUKN9w8iUEU1g1jL8nXbuBRmiUOj7G2eWc3YRr9lBiSMqobVXJhZHeLEmU/qtY6ku6dlej6ch6fXi9R/8mKFVXoGLuXXeYOgfAlFZEfqESwPlqCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yR41chohSm9+P5OoQ4TZhYOdqp2dEdLNx9SHN5xq9VI=; b=BRQUZn9KG3e3yQXCw/gGHi/ty638D3SSKKvie/+kbiUMqAD4KM5puSvTWSIJLdKVMbW8jgirO7+6Z8+q6UPNozifTXu5wYvUZblvXayPAaCqjfS1GOamV5bXB5WK1OEUODxBcWKpabQ4VJQUqjybn11h0tsPj77iTqbZBBXhT8c= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB4960.eurprd04.prod.outlook.com (2603:10a6:803:57::21) by VI1PR0402MB3759.eurprd04.prod.outlook.com (2603:10a6:803:1f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.15; Fri, 25 Sep 2020 07:33:12 +0000 Received: from VI1PR04MB4960.eurprd04.prod.outlook.com ([fe80::b178:a37b:1f9e:3a6]) by VI1PR04MB4960.eurprd04.prod.outlook.com ([fe80::b178:a37b:1f9e:3a6%3]) with mapi id 15.20.3412.024; Fri, 25 Sep 2020 07:33:12 +0000 From: Sherry Sun To: sudeep.dutt@intel.com, ashutosh.dixit@intel.com, arnd@arndb.de, gregkh@linuxfoundation.org, masahiroy@kernel.org, michal.lkml@markovi.net, lee.jones@linaro.org, rikard.falkeborn@gmail.com, mst@redhat.co, bp@suse.de, jhugo@codeaurora.org, tglx@linutronix.de, manivannan.sadhasivam@linaro.org, mgross@linux.intel.com, pierre-louis.bossart@linux.intel.com Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH 2/3] mic: vop: module autoprobing support for vop drivers Date: Fri, 25 Sep 2020 15:31:57 +0800 Message-Id: <20200925073158.8238-3-sherry.sun@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200925073158.8238-1-sherry.sun@nxp.com> References: <20200925073158.8238-1-sherry.sun@nxp.com> X-ClientProxiedBy: AM0P190CA0001.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::11) To VI1PR04MB4960.eurprd04.prod.outlook.com (2603:10a6:803:57::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from nxp.ap.freescale.net (119.31.174.71) by AM0P190CA0001.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.24 via Frontend Transport; Fri, 25 Sep 2020 07:33:05 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 46c427a0-4066-4038-d5d1-08d86125420c X-MS-TrafficTypeDiagnostic: VI1PR0402MB3759: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FIGvJdxJ39+R2xXQke+OmTbnxwS+b9lPW/t2O9V7wYrxCdg6vTLwA3TUZ1mFwicoYk/asaRAPpmBfQdU1NrVwa/JO29BmRcUH67sQ8du8ZbfJeR+IaTcv2agq9Toy7SAXwi7+kPzbXqw35fLMYyCXqck/yZYyTzI6dWJP/N+Mf0W2Pn+GIK7hYoTYBc5vy1GnsOF7Tn9h5afxmHv5aWWJdjKqlkGAtLeO0V/rpxFpMs0p8UNinqioaz9LZMXzvJxoMHTwMmkKTYth31fw7Ejdz7I8+JkDD1KRhbpCp1qqW5PEQ72L7n4fQ+j692sKtszTq9t5quo0WObgYceHSoX6qXrsJavL0ELDvusBnPQetz/InlDFP+Eef8KP3fvZ1P+kvF+k9vZXmr+hkxP7u4zpXAfCfaUm3swol2066PZ9FA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB4960.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(366004)(396003)(346002)(39860400002)(376002)(16526019)(186003)(6666004)(52116002)(2906002)(1076003)(26005)(66556008)(66946007)(66476007)(2616005)(956004)(86362001)(44832011)(4326008)(6512007)(8676002)(7416002)(6486002)(36756003)(316002)(8936002)(478600001)(5660300002)(83380400001)(6506007)(921003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 19ztMM7YxcFdz6VBLIDCMxEyLhYpTAsO0VYde1TEFpNNiyLGsupyuAfpYGlKiSZ2GBmnQNOb7oKp/OgoBQNH9tlb8QBFLfs8XPduNU9KlYZ/N53tiXX0vvnolmbRVY+VaGD0X+Ko1kZwTcnJENbJMNmfAgns55HHXQQre5uZyzxz1L3PAjeU3g91xJ2ZZC6kgLAFDnaDYBaGeimaJTV7G8MsvfERP8tCGjtgZLjiZIggK/0bkSto4RgWcRIRSoojyF7TUbidPxVJf1Vk1vsi2FZaAFPM2BHmV5rFBX4pTRsRUIWDEQ3O7iHsSJiPMA1qam9MdC88uHNocVu0N/o1H2UMTI5Zfh6wlbQLAoY9MGaBUmFwTTp6XktbBcjH15eSM7bbvg5JeBdcUCHuO7v2ClrE8KSrcJ2JbUnZNMZPNIHwhNOUXRWzi6kwKNHytRe8u+eFo7pyuX73tdUKnNBxBnOZUmsRcQ0zHcPl37+kDuHcSuogPaRZdw9/rNrNEdoQVIA5M5v8APCcoHeYHCdczs/G5IsW91K0UNjGP3wOAhuIE/to7f5tX0yLUMx2yC99wN6erCx1PP4FKQtbR1FqKP6AN1CJOi85JJPKfCV76g+AL52yYoEMZOgnf6BVD7jespKv9rjJeHfCeryHTezr3A== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 46c427a0-4066-4038-d5d1-08d86125420c X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4960.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2020 07:33:12.6874 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hsUx4Pk+4ncEZtZnpDRqjBMH7lpXdFxRVhKM1eOQkw0m3VFVbdIuaQJTvyqAoJRnxJD8AuwTQJj1Mua2lyC6MA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3759 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Add vop autoprobing support to MODULE_DEVICE_TABLE() by adding info about struct vop_device_id in devicetable-offsets.c and add a vop entry point in file2alias.c. The type argument for MODULE_DEVICE_TABLE(type, name) is vop. Signed-off-by: Sherry Sun Signed-off-by: Joakim Zhang --- drivers/misc/mic/bus/vop_bus.h | 7 +------ include/linux/mod_devicetable.h | 7 +++++++ scripts/mod/devicetable-offsets.c | 4 ++++ scripts/mod/file2alias.c | 16 ++++++++++++++++ 4 files changed, 28 insertions(+), 6 deletions(-) diff --git a/drivers/misc/mic/bus/vop_bus.h b/drivers/misc/mic/bus/vop_bus.h index d891eacae358..5b4a58757951 100644 --- a/drivers/misc/mic/bus/vop_bus.h +++ b/drivers/misc/mic/bus/vop_bus.h @@ -14,16 +14,11 @@ */ #include #include +#include #include "../common/mic_dev.h" -struct vop_device_id { - u32 device; - u32 vendor; -}; - #define VOP_DEV_TRNSP 1 -#define VOP_DEV_ANY_ID 0xffffffff /* * Size of the internal buffer used during DMA's as an intermediate buffer * for copy to/from user. Must be an integral number of pages. diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 5b08a473cdba..736cdc236cf9 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -838,4 +838,11 @@ struct mhi_device_id { kernel_ulong_t driver_data; }; +/* vop */ +struct vop_device_id { + __u32 device; + __u32 vendor; +}; +#define VOP_DEV_ANY_ID 0xffffffff + #endif /* LINUX_MOD_DEVICETABLE_H */ diff --git a/scripts/mod/devicetable-offsets.c b/scripts/mod/devicetable-offsets.c index 27007c18e754..393acaa5302a 100644 --- a/scripts/mod/devicetable-offsets.c +++ b/scripts/mod/devicetable-offsets.c @@ -243,5 +243,9 @@ int main(void) DEVID(mhi_device_id); DEVID_FIELD(mhi_device_id, chan); + DEVID(vop_device_id); + DEVID_FIELD(vop_device_id, device); + DEVID_FIELD(vop_device_id, vendor); + return 0; } diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 2417dd1dee33..8063b778eedf 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -1368,6 +1368,21 @@ static int do_mhi_entry(const char *filename, void *symval, char *alias) return 1; } +/* Looks like: vop:dNvN */ +static int do_vop_entry(const char *filename, void *symval, + char *alias) +{ + DEF_FIELD(symval, vop_device_id, device); + DEF_FIELD(symval, vop_device_id, vendor); + + strcpy(alias, "vop:"); + ADD(alias, "d", device != VOP_DEV_ANY_ID, device); + ADD(alias, "v", vendor != VOP_DEV_ANY_ID, vendor); + + add_wildcard(alias); + return 1; +} + /* Does namelen bytes of name exactly match the symbol? */ static bool sym_is(const char *name, unsigned namelen, const char *symbol) { @@ -1442,6 +1457,7 @@ static const struct devtable devtable[] = { {"tee", SIZE_tee_client_device_id, do_tee_entry}, {"wmi", SIZE_wmi_device_id, do_wmi_entry}, {"mhi", SIZE_mhi_device_id, do_mhi_entry}, + {"vop", SIZE_vop_device_id, do_vop_entry}, }; /* Create MODULE_ALIAS() statements. From patchwork Fri Sep 25 07:31:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sherry Sun X-Patchwork-Id: 11799303 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1672892C for ; Fri, 25 Sep 2020 07:33:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D9CC323600 for ; Fri, 25 Sep 2020 07:33:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="klgRI5xc" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727067AbgIYHdY (ORCPT ); Fri, 25 Sep 2020 03:33:24 -0400 Received: from mail-eopbgr80058.outbound.protection.outlook.com ([40.107.8.58]:50689 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727044AbgIYHdX (ORCPT ); Fri, 25 Sep 2020 03:33:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PaKDSR1f38dT+DXhO77JHgfaNMhaeX/b+1BYDckHJPy+ITxK0CvLX0p9tDKRcQ7X23y0lqbwl3/ILmvqjksy0jUUJhaM2LHwnITRZQ6MENKqEdXLwae4tQjDuBQeE+RQtiHWGaXqTnIyIIbaqHSbrfPbhnMnOPlARn6FlLICGPgECzgJ+KeHFiqxEjiHUApVbXFBSv8uUXwAbFPt4WrVYXSfa7JTesmUaWqqgQhbFCPgbha3NvekhDTjhl3N2rR9CsafgChgnwfuyXuqBPzQTQCDep5upAmLgjbMV6dG1ftTGvYUk1hi1ZwhSLHEVfIJK4DBCVEQtOdNE4D3uzLWMw== 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=8FrmW9+Lon+YV5W8Wq5B5pDCEeczdxCd82AWQ2FDrf8=; b=cA+eFsjFMxyK8Q4t6IKo2aaG1NMy5/mNypbuHo8r8a+Tb6m1LNqe6wImOcZi6LmXssXPZEG4SEmtHR1n9Gk6R99tUu3z+RYf9YXYKZfQPLdGouedaBLNsnx3XDDZEvV4hwYo2RgVtPVb25YzApajUdM5TDRptBeQGVgdbqkXNKC68GGEMshxrJ6272BthzHrIqPiRaGRpvi3v5OqcOu69o6JUyw+VXVFQZnKeXlIF/f91ni6AWyohNtruEwBEZO52Fo5uIjvuHFoaYaJCA29Be2u+PLIJvWTRcF1UMnPRs8q7yXqypcdj+dQCqUBYrESEluc24ojJdgkhUMqg6TDFA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8FrmW9+Lon+YV5W8Wq5B5pDCEeczdxCd82AWQ2FDrf8=; b=klgRI5xcI0etwUCFJAVnVOOJgRDoyprLxdwsha6DkFiBXGROKpqkidOHpUlBixRQuvd9Kw0GjIF52e6ET5UDBHHGm4hqUrdOhYDdMYdALNKd2TAdfikGn/FBCJwQGUHRqm8OYIfhw2z/3TDfBOq3KQP0qaTKKv/0UsMp2JJt2Kc= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB4960.eurprd04.prod.outlook.com (2603:10a6:803:57::21) by VI1PR0402MB3759.eurprd04.prod.outlook.com (2603:10a6:803:1f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.15; Fri, 25 Sep 2020 07:33:21 +0000 Received: from VI1PR04MB4960.eurprd04.prod.outlook.com ([fe80::b178:a37b:1f9e:3a6]) by VI1PR04MB4960.eurprd04.prod.outlook.com ([fe80::b178:a37b:1f9e:3a6%3]) with mapi id 15.20.3412.024; Fri, 25 Sep 2020 07:33:21 +0000 From: Sherry Sun To: sudeep.dutt@intel.com, ashutosh.dixit@intel.com, arnd@arndb.de, gregkh@linuxfoundation.org, masahiroy@kernel.org, michal.lkml@markovi.net, lee.jones@linaro.org, rikard.falkeborn@gmail.com, mst@redhat.co, bp@suse.de, jhugo@codeaurora.org, tglx@linutronix.de, manivannan.sadhasivam@linaro.org, mgross@linux.intel.com, pierre-louis.bossart@linux.intel.com Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-imx@nxp.com Subject: [PATCH 3/3] mic: cosm: module autoprobing support for cosm driver Date: Fri, 25 Sep 2020 15:31:58 +0800 Message-Id: <20200925073158.8238-4-sherry.sun@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200925073158.8238-1-sherry.sun@nxp.com> References: <20200925073158.8238-1-sherry.sun@nxp.com> X-ClientProxiedBy: AM0P190CA0001.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::11) To VI1PR04MB4960.eurprd04.prod.outlook.com (2603:10a6:803:57::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from nxp.ap.freescale.net (119.31.174.71) by AM0P190CA0001.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.24 via Frontend Transport; Fri, 25 Sep 2020 07:33:13 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9e0f8236-f9c3-425f-d7e0-08d8612546f4 X-MS-TrafficTypeDiagnostic: VI1PR0402MB3759: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8nf7+qn4uoat+obPLW+bqFFZoQwip2MyFxWLzzBeaar5mSA1bp+t0nPfGTXPxiT19y+uEG1/ZNESc6LeNMgdL56OSjDGcq/BT0kpRO/6C8Vz7H/F9w1l9nMKCoFCcJhyBKx6ZACf1CTwhNLvflQ4f1SsyoG5U2h0Gcfzv2fCDRUYrGVKjW+qo16aBBb+6talvcAgB0uPWYungPRzwFT9vi8hqO60nbXKiW/MxDQRA6OqooF7OB8hgygmPnNGSyZJ93M1CFBzNHK5ASVEHItzrP514LaSDsth7VKm8K998128u0EKizTu2cznlA63zrVIOWOwN8Z6hIYYbYQmfp6wOl9jVW4ust2MwBxU1x1TpsKV5MvAWHCPPKUTOM/9DWFzgPZAh6KQcbl/0YCFPlmkcoUq181csLyM/yRCZ94xy24= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR04MB4960.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(366004)(396003)(346002)(39860400002)(376002)(16526019)(186003)(6666004)(52116002)(2906002)(1076003)(26005)(66556008)(66946007)(66476007)(2616005)(956004)(86362001)(44832011)(4326008)(6512007)(8676002)(7416002)(6486002)(36756003)(316002)(8936002)(478600001)(5660300002)(83380400001)(6506007)(921003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: xWNUd+sEGnRIo2MER8DDiQ4Qp+S1PUyddy0bVfltKU1o0vJr1ccMdUMTTr8e9VG6oXlTvzNSJvmgYo27ENPAydkEQbq0GdSC8uwHBTvKaoA0G8gVgW56mdFwKNpzTU0I+sK/Jkg/hOZWXUQIJXNY7fun0GQiJFvjG0ndgzSxMIoWhR4ZUP5rKDVR1lHC8tTBiDZS7DHfwd818zmuHqUmpQjQHKvPx+Dgxc040eQe197j7V4FtvLzsFSxaAajKvUh2yxPyXDEGAMAh44M73pVIiVIsAWif4Gx1N/fZqN696crHE92pIbtBrAKIiF92rQeS0nuQjBIqsOZKehC1Xfn/jvqt/KXmGAj991qrU+k+HZzbzlomzm4HCmZd8N4NQUGMNTTQ9YAgM5YuXNFrcl3MiD2ppDt9P2buZmkRKbd+z9Lm0mOXprrwjXSSpOum746XiQvbCktsN96cUZJAlpb4UXfPftg7JuCLnWorPzpqb4Q7Tvti9xIT8lpTF88tFqE0KvaqgpDLJkTkSK2vzVTG/OzeS0Qywe+F7Pv1wZcYiZsXqHFPDYO2Jlxx1prjD52obUmkd7avT9srtI4KOeN1NDiUu6R2/2aKAKBxaBZiYA24bsKRnRqo1JnwqFq/tTNVB3QIlQu6td3g76k0w9FtA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9e0f8236-f9c3-425f-d7e0-08d8612546f4 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB4960.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2020 07:33:21.0637 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: R11qcD6sTJZIpONcWD34TVS9ioM+EVKKLi34hyzJqesWoL3jYrrw8dNi/CAHZmNKjNlFq75PxC5nfXxH8rk0NA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB3759 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Add uevent callback for cosm_bus and add cosm_device_id for cosm driver which is needed for MODULE_DEVICE_TABLE. Also adding struct cosm_device_id in devicetable-offsets.c and the cosm entry point in file2alias.c. Cosm driver will be autoloaded when cosm device appears. Signed-off-by: Sherry Sun --- drivers/misc/mic/bus/cosm_bus.c | 8 ++++++++ drivers/misc/mic/cosm/cosm_main.c | 7 +++++++ include/linux/mod_devicetable.h | 8 ++++++++ scripts/mod/devicetable-offsets.c | 3 +++ scripts/mod/file2alias.c | 11 +++++++++++ 5 files changed, 37 insertions(+) diff --git a/drivers/misc/mic/bus/cosm_bus.c b/drivers/misc/mic/bus/cosm_bus.c index 5f2141c71738..736e27bbc9f9 100644 --- a/drivers/misc/mic/bus/cosm_bus.c +++ b/drivers/misc/mic/bus/cosm_bus.c @@ -14,6 +14,13 @@ /* Unique numbering for cosm devices. */ static DEFINE_IDA(cosm_index_ida); +static int cosm_uevent(struct device *d, struct kobj_uevent_env *env) +{ + struct cosm_device *dev = dev_to_cosm(d); + + return add_uevent_var(env, "MODALIAS=cosm:cosm-dev%u", dev->index); +} + static int cosm_dev_probe(struct device *d) { struct cosm_device *dev = dev_to_cosm(d); @@ -33,6 +40,7 @@ static int cosm_dev_remove(struct device *d) static struct bus_type cosm_bus = { .name = "cosm_bus", + .uevent = cosm_uevent, .probe = cosm_dev_probe, .remove = cosm_dev_remove, }; diff --git a/drivers/misc/mic/cosm/cosm_main.c b/drivers/misc/mic/cosm/cosm_main.c index ebb0eac43754..627e7d5f3a83 100644 --- a/drivers/misc/mic/cosm/cosm_main.c +++ b/drivers/misc/mic/cosm/cosm_main.c @@ -12,6 +12,7 @@ #include #include #include +#include #include "cosm_main.h" static const char cosm_driver_name[] = "mic"; @@ -323,6 +324,12 @@ static int cosm_suspend(struct device *dev) return 0; } +static struct cosm_device_id __maybe_unused cosm_driver_id_table[] = { + { .name = "cosm-dev*" }, + { }, +}; +MODULE_DEVICE_TABLE(cosm, cosm_driver_id_table); + static const struct dev_pm_ops cosm_pm_ops = { .suspend = cosm_suspend, .freeze = cosm_suspend diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 736cdc236cf9..ea6cdfe1a3a3 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -845,4 +845,12 @@ struct vop_device_id { }; #define VOP_DEV_ANY_ID 0xffffffff +/* cosm */ +#define COSM_NAME_SIZE 32 +#define COSM_MODULE_PREFIX "cosm:" + +struct cosm_device_id { + char name[COSM_NAME_SIZE]; +}; + #endif /* LINUX_MOD_DEVICETABLE_H */ diff --git a/scripts/mod/devicetable-offsets.c b/scripts/mod/devicetable-offsets.c index 393acaa5302a..499a2832878d 100644 --- a/scripts/mod/devicetable-offsets.c +++ b/scripts/mod/devicetable-offsets.c @@ -247,5 +247,8 @@ int main(void) DEVID_FIELD(vop_device_id, device); DEVID_FIELD(vop_device_id, vendor); + DEVID(cosm_device_id); + DEVID_FIELD(cosm_device_id, name); + return 0; } diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 8063b778eedf..f7c80e4da137 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -1383,6 +1383,16 @@ static int do_vop_entry(const char *filename, void *symval, return 1; } +/* Looks like: cosm:S */ +static int do_cosm_entry(const char *filename, void *symval, + char *alias) +{ + DEF_FIELD_ADDR(symval, cosm_device_id, name); + sprintf(alias, COSM_MODULE_PREFIX "%s", *name); + + return 1; +} + /* Does namelen bytes of name exactly match the symbol? */ static bool sym_is(const char *name, unsigned namelen, const char *symbol) { @@ -1458,6 +1468,7 @@ static const struct devtable devtable[] = { {"wmi", SIZE_wmi_device_id, do_wmi_entry}, {"mhi", SIZE_mhi_device_id, do_mhi_entry}, {"vop", SIZE_vop_device_id, do_vop_entry}, + {"cosm", SIZE_cosm_device_id, do_cosm_entry}, }; /* Create MODULE_ALIAS() statements.