From patchwork Thu Feb 9 12:53:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13134521 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65DC5C61DA4 for ; Thu, 9 Feb 2023 12:53:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229969AbjBIMxm (ORCPT ); Thu, 9 Feb 2023 07:53:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229956AbjBIMxk (ORCPT ); Thu, 9 Feb 2023 07:53:40 -0500 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2082.outbound.protection.outlook.com [40.107.101.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E0F75A9E6; Thu, 9 Feb 2023 04:53:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nLk3bNLOVWul6l9iIgjzIU7r3EcbrDmUCXSB4CMUYIA86wLI13piOd2Sl0r7KmoHsjwvmmceywAJwwIjn0k72o9ZuKOGcl+4d18JEHD3v5Tu4y78vPEOSyOw34Nrk4aH+sDIIfNxOeG81kLKsslf1IUyAihps2ghu46wtqsZO1wznnMlmYAnKuCIL+oj3NaS5O2rBKQl9Q1xrlXQo4HVdbAnoHPIp/WrLAFHDvC4W7B+5I1hk32XhUAwlaOiMPJLBaFQKWF64VWXslLkRVBoW1OTK/zbBdaLh84KP1m9jWEFA0BdSYj5qAbOszvQHpqYMHDE2YGlDRIuEotTC6/N2A== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kN6N28OXHwIGQo1XBKMtM9T2/1gLTCB7D3ZzFKZrIUc=; b=LYEt3kqSOAVr83y3EeHJTbNY5P6WRwH+7ehRpKAtSOwHY5tdKDKhkeI8Fpl0QVHkVZa3cbEkex8WeX2wwrhT+7OHaAsaM3tDWMRbwMfBpz9NmCkpSerw1qIf6tQ4K6B/+Ng3S/BnjV9+T4R+PJxMVazgcWXdCYOEUjPlZ/M7RcGlAFveqkM+Wm7WC5sgU4Oh8SxwRgjf61ghvGTHL5qkCoKl5BVzW5EH3bHXd9A5r6JwE+xsFl8DnGECGRXkOknj0yBotL77nMNt1RGfhDEF23gySiwyU0aqyi9sGkLWgtZKdu3I+Ssbwes+XNZFR3vOAecTtsI1yT6DfmqN3GQiMA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=linuxfoundation.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kN6N28OXHwIGQo1XBKMtM9T2/1gLTCB7D3ZzFKZrIUc=; b=Xc7N6L1U7KdGCpefwy9ZToDmYGvFDaUjPfKiavHziOTB4AASD5ORhbCJ2gBhwzYfiURcwRDCiHz3FXP8RjQddYV4QrQJ4i3hbQnV/jUVrrLa1cFh9nKy9Ib+nraozfsOeWRdt2FFMYmgPS3DSSUfRP+6MS3XKZ74+lYJL2SQJgTCgSYppEF+3o5qgz8xfJjSphMzWLdKQkldQ0nMkP2su4ZefCYpfeobhQzHc5W+fBjxa+VGgFHPXnjlJXRJguFeRw0EJEwaZ3+aqq0ZnzpsMhNmJiOSJhwki5HneBtaGhYQegjJ+GtRB+qvVMnBvT7qAAf+p6alw78DGJe0V6eLUg== Received: from MW4PR03CA0133.namprd03.prod.outlook.com (2603:10b6:303:8c::18) by SN7PR12MB8148.namprd12.prod.outlook.com (2603:10b6:806:351::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.19; Thu, 9 Feb 2023 12:53:35 +0000 Received: from CO1NAM11FT022.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8c:cafe::24) by MW4PR03CA0133.outlook.office365.com (2603:10b6:303:8c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.18 via Frontend Transport; Thu, 9 Feb 2023 12:53:35 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CO1NAM11FT022.mail.protection.outlook.com (10.13.175.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.19 via Frontend Transport; Thu, 9 Feb 2023 12:53:35 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 9 Feb 2023 04:53:23 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 9 Feb 2023 04:53:23 -0800 Received: from moonraker.home (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Thu, 9 Feb 2023 04:53:21 -0800 From: Jon Hunter To: Greg Kroah-Hartman CC: , , , Andrzej Pietrasiewicz , Jon Hunter Subject: [PATCH V3 1/2] usb: gadget: u_ether: Convert prints to device prints Date: Thu, 9 Feb 2023 12:53:18 +0000 Message-ID: <20230209125319.18589-1-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT022:EE_|SN7PR12MB8148:EE_ X-MS-Office365-Filtering-Correlation-Id: 9e1c932c-8167-4d6c-adcb-08db0a9ca818 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mZy+O1OSpaGsPHVDMnLhZNIDkWDH8YnUlTignOSSXAhgpi0AcBhmXtqtCe2itbX2fiWwrjY240bXU8Bqy55zEqzgwThYo8KhiCfeecF0z8VPIKiztJiAP3zNpT8O6PTElz9Lu18IsyQpIIE4zA9szMcLcM92wxjn1SppyjViOQqWzuO9SfvyU+gDp87cb8yfO9mThBwoXmk1VbKRFQdFaXhzKD4Pn5crbwG6gA03wFQK+adpvU86mky8FbOBQ+OzE9deDcq3nZsn2CTJqiamHeCw9verkV8vBwMX3VB0Ry00mX3WAJI9AxWXzqYRMipqwxKUmEZNBdfYA4Y3MNUFR9RpEBoP4/RO9gFdfxrE4RuX4UDCHjDj52xpelUtU9qO47YWOI/oHjm04DH6yFy80j6Gs8HhxhuWHWmZnMbMUZjG2XPP6YOktvEHxb7IfAD9yHJhCUoU8MkqD8WzCbM3vzUPg0TfJHpXYgJik9ZBXe/pnzz9oI1nKq8CoeqBNrbA/b5FivPsV4UDqaaOgOKHn4MDSDH3rP/U9ZKaNBE/CkCl7N2rI8+MhDAcSduVwc/VWK8tmRFyxFW0UkonrydKkEjT1FnM5S9PBdgX/mrTxFXYK47T+wD8moAnHsCyday0JUzGeiweMwUFAnJp120AUfRrwN27BDbWDBexVhkvITuDl7m5VXF2JLRcDfk2b4MVL1vvr+85v1BibDIruGhWZw== X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230025)(4636009)(376002)(39860400002)(396003)(346002)(136003)(451199018)(40470700004)(36840700001)(46966006)(41300700001)(8936002)(4326008)(8676002)(70586007)(70206006)(6916009)(356005)(82740400003)(7636003)(2906002)(36860700001)(40460700003)(40480700001)(186003)(26005)(5660300002)(36756003)(1076003)(336012)(478600001)(86362001)(82310400005)(107886003)(6666004)(2616005)(316002)(83380400001)(54906003)(426003)(47076005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2023 12:53:35.2860 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9e1c932c-8167-4d6c-adcb-08db0a9ca818 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT022.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8148 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The USB ethernet gadget driver implements its own print macros which call printk. Device drivers should use the device prints that print the device name. Fortunately, the same macro names are defined in the header file 'linux/usb/composite.h' and these use the device prints. Therefore, remove the local definitions in the USB ethernet gadget driver and use those in 'linux/usb/composite.h'. The only difference is that now the device name is printed instead of the ethernet interface name. Tested using ethernet gadget on Jetson AGX Orin. Signed-off-by: Jon Hunter Tested-by: Jon Hunter --- V3: Added this patch and dropped the patch in V2 that improved some of the prints. drivers/usb/gadget/function/u_ether.c | 36 +-------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c index 8f12f3f8f6ee..740331882e8d 100644 --- a/drivers/usb/gadget/function/u_ether.c +++ b/drivers/usb/gadget/function/u_ether.c @@ -17,6 +17,7 @@ #include #include #include +#include #include "u_ether.h" @@ -103,41 +104,6 @@ static inline int qlen(struct usb_gadget *gadget, unsigned qmult) /*-------------------------------------------------------------------------*/ -/* REVISIT there must be a better way than having two sets - * of debug calls ... - */ - -#undef DBG -#undef VDBG -#undef ERROR -#undef INFO - -#define xprintk(d, level, fmt, args...) \ - printk(level "%s: " fmt , (d)->net->name , ## args) - -#ifdef DEBUG -#undef DEBUG -#define DBG(dev, fmt, args...) \ - xprintk(dev , KERN_DEBUG , fmt , ## args) -#else -#define DBG(dev, fmt, args...) \ - do { } while (0) -#endif /* DEBUG */ - -#ifdef VERBOSE_DEBUG -#define VDBG DBG -#else -#define VDBG(dev, fmt, args...) \ - do { } while (0) -#endif /* DEBUG */ - -#define ERROR(dev, fmt, args...) \ - xprintk(dev , KERN_ERR , fmt , ## args) -#define INFO(dev, fmt, args...) \ - xprintk(dev , KERN_INFO , fmt , ## args) - -/*-------------------------------------------------------------------------*/ - /* NETWORK DRIVER HOOKUP (to the layer above this driver) */ static void eth_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *p) From patchwork Thu Feb 9 12:53:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 13134522 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5876EC61DA4 for ; Thu, 9 Feb 2023 12:53:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230023AbjBIMxr (ORCPT ); Thu, 9 Feb 2023 07:53:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbjBIMxo (ORCPT ); Thu, 9 Feb 2023 07:53:44 -0500 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFAD15A9E6; Thu, 9 Feb 2023 04:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xdcz6e0LuhYvDgYpsEQePqfvD+JA0ATZIp74X2arRgqH+BauqLZN5WMPizTE66IJ7rgiJWllbFqTE6+ZJpTKzdWwVPXiFDZeJpkzvkKROK6qdw+uGG4pOTfw1doo7C6qcGraHK0V3UmS13iweRHdygphQZpi72Y8kDOHgL0MKE45yKn1dxx3w+DD+8IlVLasPx7lK7JDtqzuWGmt0csDVH8X4Q7i2Mq4gbizqmu+5ym7PDMnLE6Flcvh12b8i4fkAtxqxSuYWIKBnW8kIUlRuu+H4WRFntFUwT4ICQ9rfAtM1xLKesnr2EYaltHVUp8GEMMA+xcYbf43QOzpWhtjmg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=uNWJmQuOIWF+yExhdo5VyG87VdMBXaMUfNLXx0B13a4=; b=GziUhZNwnpj2BxrM55t1t9Grq47S6gHpPkwvGyEsv6o9zO/BsCIkPw65REyAaIfMux8fIjs9T41chNfnxw5xHqN5vVknsNPiFCuyyVdbqKjN9b2H301kMMFCHZWeUrvm25vPKtX35p6C4GER/k7PsNQvsUFC+uwdu3wokN8bL3UGdDHY/DycMqpIj7wwmA/xXN7CKTe4wBdShpVHz0GY099AoQgLQ+DzUzZ3G5rKtzQsafiFLwxg9dl01YMH0dxOE5vcdDvq983Ww/lfelt3Y2tt46P2kPEn/Pe/b+Y9ZNW3WEpSHK99E40Gx3FKQCI8aSFyKPgqq45/SsxdHqIZZw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=linuxfoundation.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uNWJmQuOIWF+yExhdo5VyG87VdMBXaMUfNLXx0B13a4=; b=e80FdHPxJNC/2DfS/BAUUsfyPv0LIB7O5ghAgzVS7ryekXrUg4w4bIBDEbJgN8U7TGSuWVhILaTOEBsgQZPS2cInYnLiWvv9v0XD/iq8Oofjjp5PhnkDc4kZOf7IBS1mpSfOC6JkXti4ZS9g6DpLYkSTCbDxNSndYhzm77h9IB2wVsgyi1azfSMnllzF2Veyr7eQT0AmnWsmhDrYumrVKTQTAfyADqZIBKjPmbbJSDVvPz6cmr1ZktBkYWaOUXEO7PmOqIPlYERh1q5/RN2VVFXpFqZ88Zy+Gxnc0yk3aUEjSP8DT8HMXYhN3teLl0dYrabOPvHFy5U74Bphxbs/RA== Received: from BN9PR03CA0157.namprd03.prod.outlook.com (2603:10b6:408:f4::12) by BL0PR12MB4916.namprd12.prod.outlook.com (2603:10b6:208:1ce::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.17; Thu, 9 Feb 2023 12:53:41 +0000 Received: from BN8NAM11FT043.eop-nam11.prod.protection.outlook.com (2603:10b6:408:f4:cafe::bf) by BN9PR03CA0157.outlook.office365.com (2603:10b6:408:f4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.19 via Frontend Transport; Thu, 9 Feb 2023 12:53:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT043.mail.protection.outlook.com (10.13.177.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.19 via Frontend Transport; Thu, 9 Feb 2023 12:53:41 +0000 Received: from rnnvmail205.nvidia.com (10.129.68.10) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 9 Feb 2023 04:53:25 -0800 Received: from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail205.nvidia.com (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 9 Feb 2023 04:53:25 -0800 Received: from moonraker.home (10.127.8.14) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Thu, 9 Feb 2023 04:53:23 -0800 From: Jon Hunter To: Greg Kroah-Hartman CC: , , , Andrzej Pietrasiewicz , Jon Hunter Subject: [PATCH V3 2/2] usb: gadget: u_ether: Don't warn in gether_setup_name_default() Date: Thu, 9 Feb 2023 12:53:19 +0000 Message-ID: <20230209125319.18589-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230209125319.18589-1-jonathanh@nvidia.com> References: <20230209125319.18589-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT043:EE_|BL0PR12MB4916:EE_ X-MS-Office365-Filtering-Correlation-Id: 6c2b72fd-0249-40f6-4734-08db0a9cab9f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XNk4Rx8xZs0PtWU2e9oZNZR/JA97lAHj5HyfpybVbknc7ZLwQVC9fDgXBjOF80vcby2wspz4oeM2kDn7BM/3BIQB7nSj2xEpFERrEkgtLJe0uP6F/XcBFer6Hq35MLVZD/LHAXJzTtYTOVM4IYMYaPT6f4J6YxsPYGwczzBFzyyJNdmr2gNjbqzJbe6tFVtfEy4M3jTPKF+JAmx2OH1N1c75ZKeDCpauH5S0twaBSTVE7Flg/L2lhJk3YP2Bin5wMLo/jbIw96WuOnDx4yJl4yif44MODC4EVGx9Gyegz9sBnOdjyZOENPMndOQ+nvQ9VXux64xqMfXRcO2PG+Ovc7gAfjk/n/h9UOJk0L/LTA5f0l+Ic6JV/XH5XqtmsoymWQ8gZajahxfid7CVo3nW8oomSuSUU6bOjMvViL8qu7eesSEKx7ieoZS/CDWEMsP8lqFuYRprI7gIYqrba0a0xA/bA470hHtY/gXCfbByO9EjZs6hDGJdAlTAPv3dDUEgz9+2TwAZXTEFHI3cjcjdTEMEzWnQjKp6V2m9uMOa8m3Pc8LkT+8M+d5558IWiPXlq7yy35R0SMrTlCeLL13gI+1VJ0D5YlUDiCW3Jp28ZvnC1KLzuuH1fqeTieiGVclzI8bqJBfDSozWBmCkRH3uCmQkzn45Eqe/FZAEFZI5vNY= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230025)(4636009)(396003)(39860400002)(346002)(136003)(376002)(451199018)(36840700001)(46966006)(4326008)(6916009)(8676002)(426003)(70586007)(70206006)(47076005)(41300700001)(336012)(82310400005)(2616005)(82740400003)(7636003)(36860700001)(26005)(186003)(2906002)(40480700001)(478600001)(1076003)(356005)(107886003)(316002)(6666004)(8936002)(86362001)(5660300002)(54906003)(83380400001)(36756003);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2023 12:53:41.1544 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6c2b72fd-0249-40f6-4734-08db0a9cab9f X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT043.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4916 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The function gether_setup_name_default() is called by various USB ethernet gadget drivers. Calling this function will select a random host and device MAC addresses. A properly working driver should be silent and not warn the user about default MAC addresses selection. Given that the MAC addresses are also printed when the function gether_register_netdev() is called, remove these unnecessary warnings. Signed-off-by: Jon Hunter Reviewed-by: Andrzej Pietrasiewicz --- V3: Updated patch to remove the prints completely. V2: Changed print to debug instead of info. drivers/usb/gadget/function/u_ether.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c index 740331882e8d..953d936fbae6 100644 --- a/drivers/usb/gadget/function/u_ether.c +++ b/drivers/usb/gadget/function/u_ether.c @@ -811,13 +811,11 @@ struct net_device *gether_setup_name_default(const char *netname) snprintf(net->name, sizeof(net->name), "%s%%d", netname); eth_random_addr(dev->dev_mac); - pr_warn("using random %s ethernet address\n", "self"); /* by default we always have a random MAC address */ net->addr_assign_type = NET_ADDR_RANDOM; eth_random_addr(dev->host_mac); - pr_warn("using random %s ethernet address\n", "host"); net->netdev_ops = ð_netdev_ops;