From patchwork Thu Jan 19 10:25:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 45683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp252323wrn; Thu, 19 Jan 2023 02:36:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXuOdC1zzSHNnTixkhnTCj1B1PuXWc5bzFVKK7ApOsZBB+T9Z35/MMsLQas5zHNPaoZrz1zz X-Received: by 2002:a17:902:930c:b0:194:d54b:e191 with SMTP id bc12-20020a170902930c00b00194d54be191mr437712plb.52.1674124586895; Thu, 19 Jan 2023 02:36:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674124586; cv=pass; d=google.com; s=arc-20160816; b=BL8sFaaVc1KTpL27yKI+JOxbby2Bec8zfWpxGMY/7B+aDT2dmwFkIvqrJzP2uSN8Ex lEB3aoHt255R/11VOyEbu6u5w8SkYXDfCUdjLYX7lbs0ZjB2DAGyei0+TTdYzR6uVntH rJC/Tu7gtpFFa+8fLUPwan8xtgNJe67XwELh3OUYjBdB6w/oaYFnnBqOzmAH9dYJsBvi e46oktIAhWPDIgz7kYHts6HKZ1tdSIrImhvxz5BkKWnJ4GpyMTcyhFHBKKwrgf6NtVP9 Sji7yo9qnAKV3fmilRLi6Y/oI4Q+tSUjMwkz3RlYpb2PuLtuwebMIA4jXwx/DlyNiIEn 1sQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=velh6MXn5zEt9u/08R3OwOXuazgHKzTKymFW3uE3S10=; b=nppEHTqk4vt4DbasDRfHJ4xpv4FdlIfeFsQx3pNtZyaTl5WgN5A4FHkZFDUt/0gILy g4J8P/MIdg57op8a+BmqvAG5YwhJfUOJvoIEdMo7spsSMt1TIq0tA3bxkfQIM3OCL5le 81z6qzskJ1SzPIAfHadzDzBp0+p2MKPLIMzBHKS5ZgJE8sLJEaJ5hoRHzkL4/hzTanC8 EHFzGsFzwSdDEHMXwHoJ7yULGGGSzr4bVSt1AJX+XQo3QuBV5WqosoJyRSQYDKwUDMJ/ gb7Ya1Lab5HZChfTmglTcHt0TPSUZaH7hMSIAUOsCBOmWP7NDg/t84yRARy+1lYPTwfV izOg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=StibGA9W; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r138-20020a632b90000000b004ae8a8b377esi36296324pgr.304.2023.01.19.02.36.14; Thu, 19 Jan 2023 02:36:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=StibGA9W; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230004AbjASK0U (ORCPT + 99 others); Thu, 19 Jan 2023 05:26:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230045AbjASK0M (ORCPT ); Thu, 19 Jan 2023 05:26:12 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2051.outbound.protection.outlook.com [40.107.220.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14BBE4F353; Thu, 19 Jan 2023 02:26:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IIx2nYZF7dUC/GBU+NLEeMlJd10xxKzO6tPhnGRj6jfx1ImA/BgV1JuvrSekHXMavjraw8rbyveX/cd0+3qGvAFXRHa1HDgkb0v/c2zSOynMIlxD1eCaQGssJwcUmS6dldE9mOaBX/lCKHHluH0E9SFR576BJQySGQ7lMorX+NtYInKGPJFLw5lWyxTfAar9l03XdwXaqy3d1DHAPPWd/5h6VRHYxHxCWpuUdoJ6NQ6FYUt6VuKDeKvOmeEa3cDYJ7B/ZmugNDrFK7I6qukgJm+I+1pQwucPpoCUKuM1JmRW+qhYKkGguHdz8sfWxm6bl2HJpapeN8ZmC4FzCpt6eQ== 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=velh6MXn5zEt9u/08R3OwOXuazgHKzTKymFW3uE3S10=; b=IW5hTafgZKtOilPZTrobYhREWbgHZV0gKTLyDglP6o9JXeEtYzKDeUKf8BLb6KeVaKVk+751E3/sgCcSRgys/D40a/99H4PtIbMQJ31DaQY1kfeGCDEeT2rSGNvfOyV8+UC7lqeJtW4hM2FnM6SuUlYJ25GixmlIvvzDbMaFw/q901/IaWUcW66bxMZKcpFyl3/v3mNoQfv5wVXOd+K4ytuJEZ0/NG8Er7jS1xdHPZRupoHXGYQtzhkNfvOxfgV56rRm0hbRgbU7RucXcN+bO738xh7TPsgm9IPvhycpJnP47AXocaC8WEN6+WIOdJoSMmX5jhv0ks+0+zfV2o2XIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) 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=velh6MXn5zEt9u/08R3OwOXuazgHKzTKymFW3uE3S10=; b=StibGA9W7YVAZMzS5S7HhTW7dNUmz281eeZSDLm5GdHNAEmtwF5nIkLOvTz8TPizXA6ugPmU/A2gePLROBSZrso6i2Ol2b9E77MmAdqPIUcEo6kuMmhegERHQd5RjwdetNu3sJUmXRxGiAYfARyL12ucSzfVmQISx9TPjtYEnJkD1lermYOTTT/NrRSA0QV41r4KSD9gfkJNpDiZLcg15Trl0OZTamswT0KFKvBnyukMNvL1sRoTIieeTnhGJS/BbDWaHmNDrxcBe7A+etgoCzOWnuqdG7TRXQfSfMUWpVLZLnFkK/P2QYF8F7sDcaCPu4t/kXaeNRx04LIGeCI3Kg== Received: from DS7PR03CA0153.namprd03.prod.outlook.com (2603:10b6:5:3b2::8) by MW4PR12MB5602.namprd12.prod.outlook.com (2603:10b6:303:169::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Thu, 19 Jan 2023 10:26:05 +0000 Received: from DM6NAM11FT085.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b2:cafe::a2) by DS7PR03CA0153.outlook.office365.com (2603:10b6:5:3b2::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25 via Frontend Transport; Thu, 19 Jan 2023 10:26:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DM6NAM11FT085.mail.protection.outlook.com (10.13.172.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6023.16 via Frontend Transport; Thu, 19 Jan 2023 10:26:04 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 19 Jan 2023 02:25:56 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 19 Jan 2023 02:25:56 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Thu, 19 Jan 2023 02:25:55 -0800 From: Jon Hunter To: Greg Kroah-Hartman CC: , , "Andrzej Pietrasiewicz" , Jon Hunter Subject: [PATCH V3 1/2] usb: gadget: u_ether: Improve print in gether_setup_name_default() Date: Thu, 19 Jan 2023 10:25:46 +0000 Message-ID: <20230119102547.26698-1-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT085:EE_|MW4PR12MB5602:EE_ X-MS-Office365-Filtering-Correlation-Id: ec83e20d-00c1-417b-c6d3-08dafa079229 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LyCAHqHmmcEIkJQbm4gCscPdZsWiXIbaU9jRSYV6BXMhoE9Xe20WD9K72m5KF+NG7NHP9eQHJKLTu46Xb9t0rw4JSXWoRqjq1Hyb/3C/UGahDJsbJ/Xxk+3/IqhYXKakOSIMxYW0TKtHcyC4goZTnk50iP7N65JBNtFrYaUFcVSJLZIWsi+3jEdm8ZoRdww1GBl7yOoP0Db3pIreeftsa4hf9cvZlzwN6T73KNE2tduq4JXnkbNGb78uzTeP9z9K+/mIjJ+GNnJ5lqMYLqthc2Y1brOYJKATn42USbr1puxxC9X2Qc8437miCCXgYl8dV9bq0Tl7OglIsn1WJEQ7QZMvBcw7oygmcZE/SghmzllZTc+9cfhRDJtlBMXR1GLFvVZczt9p/q69l6VGoXXMLaReBwJzk87UO8pAHJs3NASejqRyKmTecdwyaeScwy0eRKfMq4TpaVZ711733vqoqP66iREPaV89oiJ9iMryCDu9UNxqIGBYCDYVfF0+RK345QlsXyz32ccA8YTLI+ixOCisvk9QZFWHaCyDXcKoSXqxTcT/Fuex5uupbY3alH0D6Dtp9ERrN2xE3UWNo92xpSGrgBl7+L+ZSWrB8cMc+qRPxfpMXvIA7qTTGzlKXkiJamsKhzzcc2K4aMWidCa+/kpoptsr7i8yFDp0m+7EmM0NrK96wMV/I5MmzG5dy4MsQyA4MZFJDqibjUVxBYv2WA== X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(376002)(396003)(346002)(136003)(39860400002)(451199015)(40470700004)(46966006)(36840700001)(86362001)(83380400001)(82310400005)(40460700003)(336012)(186003)(54906003)(7696005)(36756003)(478600001)(40480700001)(47076005)(36860700001)(7636003)(356005)(2616005)(70586007)(1076003)(426003)(82740400003)(107886003)(8936002)(70206006)(4326008)(26005)(2906002)(6916009)(6666004)(8676002)(316002)(41300700001)(5660300002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 10:26:04.8866 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ec83e20d-00c1-417b-c6d3-08dafa079229 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT085.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB5602 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755195225279042293?= X-GMAIL-MSGID: =?utf-8?q?1755446862475349380?= The print in in gether_setup_name_default() does not provide any useful information because a random MAC address will always be generated when calling this function. Update the print to show MAC address that is generated which is similar to other ethernet drivers. Given that the strings 'self' and 'host' are static, we do not need to pass these strings as arguments. Signed-off-by: Jon Hunter --- V2 -> V3: Updated commit message V1 -> V2: Added this patch drivers/usb/gadget/function/u_ether.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c index 8f12f3f8f6ee..be8e7b448933 100644 --- a/drivers/usb/gadget/function/u_ether.c +++ b/drivers/usb/gadget/function/u_ether.c @@ -845,13 +845,13 @@ 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"); + pr_warn("using random self ethernet address %pM\n", dev->dev_mac); /* 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"); + pr_warn("using random host ethernet address %pM\n", dev->host_mac); net->netdev_ops = ð_netdev_ops; From patchwork Thu Jan 19 10:25:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Hunter X-Patchwork-Id: 45681 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp252076wrn; Thu, 19 Jan 2023 02:35:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXs0DvywQPByOC2IWTHJ5BKF4B206V3Xm3Z4qy+frRSWpyAZUSKIg+vQDqDi2b5DF9TUevGU X-Received: by 2002:a17:90a:fcd:b0:229:4372:908 with SMTP id 71-20020a17090a0fcd00b0022943720908mr10840484pjz.12.1674124549892; Thu, 19 Jan 2023 02:35:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674124549; cv=pass; d=google.com; s=arc-20160816; b=BxVfHNrYJETLV6X2Ms+3yyJPB+lZZCx4nT2eCgNXEogrjHytgsasfKtPNHtApzRmXf /KaS7TMyYWo/l6lESYL9Aat2CRQexJnAX5fLcn8+IULDvllo64Lit1zG3mi5oKWHyLhB EkbozXnEj+gSJZUmgvWLjmW+w85g4nU7SslWM2mlvZgnetifHBBUxBsq2SMd7Jvq+Tda DlgeGJiKa+Vr/eUTCCo5NE7tHO5GJk2G2ZZTBVnWgRH+tQQaicAMQLIzNlTuWUpJTmiB zz6ubIAorpB2w+g7JktLI+nTaxXBREHs53kPat5JR7Cpj5rSobCuT9fro/RGTNRTfm0u rz4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IAz+/Gxgtj4Y8n31p8RKR30UP0vXoeQ/EhahZQrZr84=; b=ascaZ9KcHtsyCiuegwEFuYPZU2+CD0g4bsufncqpTwNMEb/JjnXMiO7WAztEvt7OMX R5nuHYcoOKktQDxZUoT1go4caQBWeXh4bKQKyKHebPk95AnWDMIuWvB8Gpf3pTEMAJln tQlwdubfMQSKWw2uOLf3yu79Axe8776XoPV0NJlwtlE8NrGU+2qsUyVmy0t/kbFMK3sg J5VfMqfvJlADfDbTfHHRn99Tg7K0zGXog7wYPrS9b/bsmFAHBF+nfhYgiQrP3743h9jb Kuqdnb6uJBCLkj3uxIpcA2TGELdXuxBrhZBeJ9tcldd1SPGDck1u6fK/WN+0SI8UDF4X l+5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=p+L7yCsF; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a17090ab38800b002264d5dfc15si4643360pjr.113.2023.01.19.02.35.37; Thu, 19 Jan 2023 02:35:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=p+L7yCsF; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230165AbjASK00 (ORCPT + 99 others); Thu, 19 Jan 2023 05:26:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbjASK0O (ORCPT ); Thu, 19 Jan 2023 05:26:14 -0500 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2062e.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eab::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 486FD4ED04; Thu, 19 Jan 2023 02:26:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JgJfsSbzZRmLtlK2hXrZ2dOFUWT2uQQqZE4En2fsYIkhPetK7M8mDjZCkGzeeOxjK4ZvHklkoX942LVRh3aNwqIh43UuPLGprLlNAALibrxJeXGR38CkH8qIAiqUcuoZ6EIpnuY8OBrISDghw2Iq4nAYO6gH0YPEJQiQNza1TWiuO9wP76dER+AQ9jsB3JOTLUm6Nwg2h2MZu5BeGgGcUdDmyWEizYK4HTSaXeQffDh64jQyJO7T2RRys0hkDFKwTkb+Y31Ugd2AILGVp5O+tEeH/2xBkCDmwJtGHgME+SRFKd2TpldSrHHIRVNYO9oBIIQZSxBsLOhx00zBwkWNLQ== 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=IAz+/Gxgtj4Y8n31p8RKR30UP0vXoeQ/EhahZQrZr84=; b=MU5z5P5qjBlbtkuYiJRoU6KbIpLUl6Qa9vzxDxucdQrQr4MQCHt5XAYSiJ4WW37QqYNfpZ6rwgQx+GxB82TNSD6hTibfJUjn0PhjroHpmTvU7GgjwkH5QIeiQs216q62E46GKSjxPQUyjVyASLvt2Rr60+5yxjjOW8E7oJL0tAm4r4e9lci1ys7nrN/82kcklcK8To1A2iK/Siwh81xzVz3LhaM4hTQyJ9rEm+vWdya5whClZh6OLtGNVXvs/rleXE53QZ31DJagWc7816Vxc8oH+GghCoGl9x/nA4UV9LcDURHRfSv69CHlkStoRcUU5WcbVgrHT4KJaa8mf7ytlw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) 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=IAz+/Gxgtj4Y8n31p8RKR30UP0vXoeQ/EhahZQrZr84=; b=p+L7yCsFBiP2wHOn1iMTtZ/utTL9dalTPifmOT/6eea9vtNFRRL48SmWsqjhsLiBqzeUBqhwPZ0SxOGQssdArBWICkFaSFKc7IMr5o5JSYhF++PqiuAc9cPcAqJ/WKmkj+sPWSWUZkwjw73SDJJC3XG5G67qeRG0FBoDU70EXtgQGFES1oz8zPuHXpy0iKDHXrIKfHkvkNYDbW/Ay0pRHVtSYNz/AzWRuyar2iFsC4AQdcGJgsOK4USNnxSLKcWhtmPDVLqoe7Iq3NsBS/vpJSGSPr7R9UsJwNHZ8N0APSl1+uSKmQhwm616Hvb+gzVamKfqHqBWGmW3BZuzUFt+6Q== Received: from DS7PR03CA0175.namprd03.prod.outlook.com (2603:10b6:5:3b2::30) by CH0PR12MB5281.namprd12.prod.outlook.com (2603:10b6:610:d4::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25; Thu, 19 Jan 2023 10:26:05 +0000 Received: from DM6NAM11FT085.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b2:cafe::a4) by DS7PR03CA0175.outlook.office365.com (2603:10b6:5:3b2::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.25 via Frontend Transport; Thu, 19 Jan 2023 10:26:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DM6NAM11FT085.mail.protection.outlook.com (10.13.172.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6023.16 via Frontend Transport; Thu, 19 Jan 2023 10:26:05 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 19 Jan 2023 02:25:58 -0800 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Thu, 19 Jan 2023 02:25:57 -0800 Received: from moonraker.nvidia.com (10.127.8.13) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.986.36 via Frontend Transport; Thu, 19 Jan 2023 02:25:56 -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, 19 Jan 2023 10:25:47 +0000 Message-ID: <20230119102547.26698-2-jonathanh@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230119102547.26698-1-jonathanh@nvidia.com> References: <20230119102547.26698-1-jonathanh@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT085:EE_|CH0PR12MB5281:EE_ X-MS-Office365-Filtering-Correlation-Id: a94bc458-f8d0-4a0b-dc9b-08dafa079299 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ExvPMmmHyKVJPGJM2GVmMudmOWd7bs0gujUoQFxj5liBSKXUrWlc6OtTwHh2JHFyheTgr2AIkfQZOqL1EwWMcjWnr5GmEiOOziGCv7OTJ4I2Bm4HhiS6OodMCZpvJR2z48ZP2lVCbMxkd77XYwDtaxIhiLJzKyMyYmbsaochrXKYfbC7XGI9VRMA7Mak5Geclf0CD7p6fo4HS05n+ogBMGl6RhYDah0s9RPODMyTt1EoWYGW0kiSBYfb+kL4y6br3mhiZvJCjHzRFXpC/W9cGTnKR9OCCBCMIsCvEHiW9rVYYDDyoVMrc/41RsMID7UG4k/2r338gWGOqD31Cvu2iED0HIVvbIr3Rep9KEXAUbDYEuR/dzCJes0eGitjNH9TsWZKttf3mP3oVdtBzB8jcY4al+KxdeE/9ADOHH60bgsaX39cILsEpAxHIxyI4sBKkg9upVBBVCLTFLWOukle1lJeCfUQWzS9JZ6IGV+gvvc8S2Si5/Z6QFtdsNOeHVrPLLDnuJrinZJ5npU/VauoXNUEDf4jv33j05U1yTzo4UGL0p11mhP2xtE/wd5HWJsxdduEdOO0lCtx+43JqmLroD3DnfZbzT7hyxPsRX1aWh9hhfnKZMs0DkIxyljE7SsTWrr5g2IM3HuqJie3V0rwe1AjQ3dc+qMNXTxPjnHwWjnC/uSV+44qtkbdLd5fx93q0VglDTvLUxzfwkvRIc1Prg== X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(376002)(346002)(396003)(39860400002)(136003)(451199015)(36840700001)(46966006)(40470700004)(1076003)(8936002)(316002)(5660300002)(86362001)(107886003)(40460700003)(36756003)(7696005)(478600001)(6666004)(2906002)(82310400005)(2616005)(426003)(47076005)(54906003)(336012)(7636003)(83380400001)(70206006)(70586007)(8676002)(4326008)(6916009)(40480700001)(82740400003)(36860700001)(186003)(356005)(26005)(41300700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 10:26:05.6210 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a94bc458-f8d0-4a0b-dc9b-08dafa079299 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT085.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5281 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755446824285589369?= X-GMAIL-MSGID: =?utf-8?q?1755446824285589369?= 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, so don't warn the user about default MAC addresses selection happening and convert the warnings into debug messages. Signed-off-by: Jon Hunter --- V2 -> V3: Updated commit message. V1 -> V2: Changed print to debug instead of info. drivers/usb/gadget/function/u_ether.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/function/u_ether.c b/drivers/usb/gadget/function/u_ether.c index be8e7b448933..8feb40e38137 100644 --- a/drivers/usb/gadget/function/u_ether.c +++ b/drivers/usb/gadget/function/u_ether.c @@ -845,13 +845,13 @@ 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 self ethernet address %pM\n", dev->dev_mac); + pr_debug("using random self ethernet address %pM\n", dev->dev_mac); /* 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 host ethernet address %pM\n", dev->host_mac); + pr_debug("using random host ethernet address %pM\n", dev->host_mac); net->netdev_ops = ð_netdev_ops;