From patchwork Fri Mar 24 19:22:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiaying Liang X-Patchwork-Id: 9643935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 515D7601E9 for ; Fri, 24 Mar 2017 19:32:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3EB2F27D16 for ; Fri, 24 Mar 2017 19:32:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32B5F27F17; Fri, 24 Mar 2017 19:32:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E3AD27D16 for ; Fri, 24 Mar 2017 19:32:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967206AbdCXTcM (ORCPT ); Fri, 24 Mar 2017 15:32:12 -0400 Received: from mail-by2nam01on0063.outbound.protection.outlook.com ([104.47.34.63]:14400 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S967101AbdCXTak (ORCPT ); Fri, 24 Mar 2017 15:30:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=B0I++MVIlVnBq5Fi0WISwagRw2z4xrbi4/DPbvUAd64=; b=SxChdnadNqGPk7O37mOp199atsVthP/kiqMjUF9cyU/X2lcWoIS0+lUIGx2xMERXafRz9CxNqcyx4ZEZpFIsqxLSOH8AMptqEUP4YMdl4PWv2UGH7BhLiNIFl0HXYghq/R3UbFK/joqVjTwz9XwuWcvAxQTdCGo7TkGCiD2mN+Y= Received: from BY2PR02CA0094.namprd02.prod.outlook.com (10.242.32.52) by BY2PR0201MB0712.namprd02.prod.outlook.com (10.160.124.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11; Fri, 24 Mar 2017 19:30:00 +0000 Received: from BL2NAM02FT033.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::204) by BY2PR02CA0094.outlook.office365.com (2a01:111:e400:2c2a::52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Fri, 24 Mar 2017 19:29:59 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT033.mail.protection.outlook.com (10.152.77.163) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.977.7 via Frontend Transport; Fri, 24 Mar 2017 19:29:59 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1crUuM-0006Jo-Mc; Fri, 24 Mar 2017 12:29:58 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1crUuM-0002mW-IP; Fri, 24 Mar 2017 12:29:58 -0700 Received: from xsj-pvapsmtp01 (maildrop.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id v2OJTo9V010473; Fri, 24 Mar 2017 12:29:50 -0700 Received: from [172.19.2.167] (helo=xsjjliang50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1crUuE-0002jg-AL; Fri, 24 Mar 2017 12:29:50 -0700 From: Wendy Liang To: CC: , , "Wendy Liang" , Wendy Liang , Michal Simek Subject: [RFC LINUX PATCH 15/19] remoteproc: virtio: rename rproc_virtio_notify to rproc_vq_notify Date: Fri, 24 Mar 2017 12:22:31 -0700 Message-ID: <1490383355-23176-16-git-send-email-jliang@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490383355-23176-1-git-send-email-jliang@xilinx.com> References: <1490383355-23176-1-git-send-email-jliang@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-22962.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(39450400003)(39860400002)(39410400002)(39850400002)(39840400002)(2980300002)(438002)(199003)(189002)(9170700003)(356003)(305945005)(50986999)(5003940100001)(110136004)(4326008)(2906002)(38730400002)(76176999)(47776003)(9786002)(50226002)(48376002)(8936002)(50466002)(107886003)(6916009)(2950100002)(81166006)(33646002)(63266004)(2351001)(189998001)(106466001)(36386004)(36756003)(54906002)(8676002)(5660300001)(77096006)(6666003)(107986001)(217873001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0201MB0712; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; MLV:ovrnspm; A:1; MX:1; PTR:unknown-60-83.xilinx.com; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT033; 1:1SA/mHgeAiF6v6ws5KlB2/SgxoIzaKXpvpkyHd+/UfcchS434ZkCaTQcoli5Ee3ziTJZbkfCpZm8NvYU6z2Led0d9SujmvezS9CjsxyYK+3CGzTBZW90+T4Gbbm9+O+/5mhBIO3u6MLvUOcqhblDcB8Bb9DtCOC9NvX5HYlnTEQRth03oAR0SIA/eYuZBlvnWCQvZTv/8wvAOzCd2cHo7Q2+BjWhSELYsoBCOq3s9o1vpfJP/5APete8V3CfKNdk7Qn7JqwAN4GsmRdBwLC8xN+SQ+7Z/FKl2wvrVsrKOipReS4LMARhscx8BULtJY4feZPDYJ01o/P+rfVynoN2OGx3Tcobzbp2mHlyXFOUdv+o3OWk266FgSP9DSHnlQ6Qnt9NLMnAJlW1MwipgukaFP6nx4bJWyhCCJHVTXZMVWA4NaIhW27TY2OVnLtP0g4eLOQsUn/zyPEbUcVlb7AWJnXfE6+7vdqTSe4BrnJQu2yNVqjdtkm1StY99j2WfsYCecuI3kVhHw+Q++SXW4dZpP0uA2FuyWY6BwKhyZyUhlGfj9xYmuHUVBoczDP4ObZVv65N8anJKwm7xifNPTf1cg== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 73b0e596-b4ae-43f2-38ba-08d472ec292d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075); SRVR:BY2PR0201MB0712; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0712; 3:mO8ABZaH9EBxpSsy59lrP901JRedc5XCd7FLVewPn7MTSUbNvXTD4UFinpLWCAmSnM70L+MNy7Y8iLFRkNXFvu48X/dj3hiZalfVaoZZqsu+xd5qsdQy0pS4B9LzZ9D8oa9lwmwzmb1qK3XZsGVMt8dJAahDXdkIz2fh8Z9DaUL8EFqJp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:CYdnckiEw0I1mayQb3kBBJnAVu6RLjN23Ttx3h3uhGNAdnKRau/uIOVs7Ur6KrKK4DkfgHrg53mmaZh8431eDvyWeIXE7IN540bPCmRc5MoEtQd7QV96SBRHo42opSgPrBpvz/xzIMa55Lf+HsgguSh5tcozojsHUFqKbqAe5O+N2HK3+8+WBlnLVpzTBs/0dzrcGcbXdfLJ68JhUKfde61rp0NVpU+e0DKvBvmBqOfv5hwqrPHmhmqgIvIb78pEU83pqIxX6e8OA4DR/jmTLJ5x3W0zA+iYVU+6D0DxPECvZ0YZv7LeOzn+3UBTpHP7ce48rGFkWhnG+VUjIidPGtURm9YcFSzse+X0E7Eu8HI6w6UNIzZhsxlyBPyHLZgxIurbP37m55xwSqqegwaknhxmC26aQr1GVdgGKsgzaAPE4w/qR+HttySGw+/GJGqYsZeIzew9Rm88LmeW/dZGXRVHwc+ZYMcxq0N9851C9i72ebiIxCWUcYPuI9EIN5Tg X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13017025)(8121501046)(13023025)(13024025)(5005006)(13015025)(13018025)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123558025)(20161123555025)(20161123564025)(20161123560025)(6072148); SRVR:BY2PR0201MB0712; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0201MB0712; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0712; 4:wRORlQq7U8dBDbM7D9zgN2xxj45HhVd4R1u2FsymIWKty1cAZ2RbPkR1W4J5xiSnMRN0vduo9PjmkJUXiS+jz54ujXsJVlKDJJNkbeRVbGv1HFVDafE9/01c0nVRqX0Dy5kBdt2ZL2McYerbmjOI+BN3RKlzr4EJa8gp+oM9CduvVP6yR+FDQJIxDWq9+wESeePXEekmAH9Y79lvzIpEFQ0qyIb90Q2VHiP5SxR4qTVKv029Z/wFtEEZNcz6C0KOe6JXlPI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?= =?us-ascii?Q?vaOqsTQY4YH13p4y/HhXUlnpxu5cl5rN6+aS7QMYWsp0LgBHla0eOJrj8PEN?= =?us-ascii?Q?ApKIV+xgSjYlD/zOOVbZhCvts1U2w3g1L9o6ZTV3cV2RD9FLiV229po8B/pX?= =?us-ascii?Q?P3y64MCfbrl+sMk5W8y0fbA/ifJfz+zPIXfqCl9nG4QconNJXUj6V4aA6QsV?= =?us-ascii?Q?b3857gKYjMcNPVRiX6bDeLu114X4zBAM4pEdESF49percJGEOIQNmDJ/2fKJ?= =?us-ascii?Q?E3FINm5j+ZW9XV+988nPHrv4Q2+H13RzdWNivxADfazPlKAQ6iPsrj73m3Cn?= =?us-ascii?Q?+trk/O0Yzu17yPgHOViSvX3oapeojKzkBbhj1DG572nAMZ5G1vnLFew9bPwG?= =?us-ascii?Q?ZtbgYevgzDr2MXN/rEhp9v2/rqXwq7TLjZ763lDsY1WiWc9JEDmk9i0iU2KP?= =?us-ascii?Q?2eqDnVoccjLYYrYeH28QmE/Z024kDrm4MAFdyOvvfGeYe2LsVXyrZUAv+11q?= =?us-ascii?Q?047zcoLAtY1dr+DhmGDvXO+bux8YnZWmfiK2P8/ZpmxShdh98WME1q/ufAjU?= =?us-ascii?Q?xOBOLiXA6ggOuKJVzbHlLiXJzu98onvhO5rtvcWTHQ/z+AdG6EGVomTbGcxl?= =?us-ascii?Q?4Ot8boQ/3t7HinmLNTAWfCdUBOKwmnFytGNWm832j9v6629WXDshuD9MQL9h?= =?us-ascii?Q?GCGPYKQCwUhOHArXsKFsF3G2sgRjQqll6v6ncMGwPRaG8v/cNjL7vBIWF4ER?= =?us-ascii?Q?8Ek7KaPxkPCJMgaCPH0GR/QZ7rVZXRmV1zhesz3lCf9M2dJughbuX0BWX/Yo?= =?us-ascii?Q?iUWGJi3HlnrDdUkKvxodubEHv0bQ+lVoyKSU4?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0712; 6:gNPQF5jc6yG8u4geSUOD9tEYa2RiKMKNWdDWAiJRTiRHZFny0TubvXk3iSuIv0rskuX94VrGtRV2fn1hTqGKJwaagxhmUfj4uP2ys0JXVyfcadg0ot4xL/2tWWkJcV0vG6asnyccchS/7sxTGmDrcF/GGpqh0M/pv63Dm8Lv6JpY0Y214Gwm8xdKCXvjPxXBV9rhJM/6jEVH7WsQKMrAQ4MLP1lis8EUp14azhSIj8WKXvHA39OuvoE/BeB4orb3POK6qX1zwufQs3Je4R9An2H2n2kSmXosLWAtK8/uh/Z/ioljbbJQSC29rwlZcEuQdFFez2sSG6+Vf8zPiJHdvVL7jHksnctktxI9o9GrIAPlUvXyUyLc1MpdsDfygqgxlUzb1AL8VTn5/R8EfcdfFDHr+TQTyrg1sEXIUjrHxtk=; 5:h519KpRSIellmzAPJ/FOuoM+fv5E0G8nezShn9mXC6moFlKwLcDoNyGCUid9LXCVDL/5crjKKS47vKopqif6GrHH1FA3MOtbuah+hsObivr1rVUbCbM2ZmkZhBBqhnwbmVPSOcDLTswja4NsGKjpNw==; 24:jhA9Lb13R1pxkcKKwX5JfBh5q0VtanMw4v0RE3XlWI8EASkCiSGo1MCyZkivmysiUb46wkJJC8BGDrf6K13UNy1lM/MZK2DlxwvofGsKZUY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0201MB0712; 7:Dl2OdyOE4jEMYJND70XtZWV3uzWZ7oE2IqSM23SleJQ/IPHX4zybVSHI2agEF2TybIRTIhJloFV/t2m31qSvIw8Ew514xjigjBsRpEJiRgz7jkJ3U2+h2nlYJ5ZAu5L50opVFV7dmtpN9BWJs5ZPWb005Ma229qyTL/QF+sX7qjHSYtWaRGE+U/o+New6T5gtzAb9jqduGjZwms98ZShlXaSk1zv1icjbzb1BVrq/jQXB8PGuIk5Y3rYKydYmNvAULUqhlMouoI7Ufmr5K0WCP0q4zIwuIRdY4zvBOYCA9x+ugrmgX0NUtsKyy8FjcvXmtj56cXBmyZCWwefM4xkkA== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2017 19:29:59.2729 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB0712 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wendy Liang rproc_virtio_notify() is to notify about the virtqueue changes but not the virtio dev and thus rename to rproc_vq_notify(). It will need another API for virtio dev notification. Signed-off-by: Wendy Liang Signed-off-by: Michal Simek --- drivers/remoteproc/remoteproc_virtio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c index 577344e..cc421f3 100644 --- a/drivers/remoteproc/remoteproc_virtio.c +++ b/drivers/remoteproc/remoteproc_virtio.c @@ -30,7 +30,7 @@ #include "remoteproc_internal.h" /* kick the remote processor, and let it know which virtqueue to poke at */ -static bool rproc_virtio_notify(struct virtqueue *vq) +static bool rproc_vq_notify(struct virtqueue *vq) { struct rproc_vring *rvring = vq->priv; struct rproc *rproc = rvring->rvdev->rproc; @@ -136,7 +136,7 @@ static struct virtqueue *rp_find_vq(struct virtio_device *vdev, * the 'weak' smp barriers, since we're talking with a real device. */ vq = vring_new_virtqueue(id, len, rvring->align, vdev, false, addr, - rproc_virtio_notify, callback, name); + rproc_vq_notify, callback, name); if (!vq) { dev_err(dev, "vring_new_virtqueue %s failed\n", name); rproc_free_vring(rvring);