Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3277329img; Mon, 25 Mar 2019 07:14:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyZZ4TeeZPSL7HmuPIudtrJhnSuClucXSnWLKQC+9xqGdXGHp7bE6oX1Y8cr+J5HvhMqzU X-Received: by 2002:a63:744b:: with SMTP id e11mr5419644pgn.327.1553523266528; Mon, 25 Mar 2019 07:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553523266; cv=none; d=google.com; s=arc-20160816; b=baqYSTYqG8gWsaKjIMAdtyJhw/Ji/BqnOZBbnHBo1LlQwC4JxIZi8S0COhGkNwedFj gd2Anf+1Jo969TonGu3q9bboXk17r5k+A4KXEwsZCskK59o3YIEs34M/UzdSO96JZQQI sL/f2p6YSPzPVzoLlo8yWmVaMu5lrthkN0VlUFLYi0yXuGiz92LrSXhxpJxYrlb5Q6kx i06es2Ik7B3JNK0XIgmP+ZDLe0AKk/RDZIj1enSfmNOKwole7cCAiZw72A/w2af0PbP/ +CIhx4gpGnDB9C8wGh88OK94erY8vmscjGURH+LA3gO9HiLWdZw3xEvWPvtu6wnftnUY COUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from:cc :dkim-signature; bh=h8qwW2t9KfiSDaY3+vPn7Si1FtPy4WAr7lQhZmaDPUE=; b=SjiLtlmljFaQM6KNPaxisiZANCeDa3b1vZ9pD31I9BNyudA0rmbl6MTPeRfjkSLNG6 KuDSlQ5KbbeN1bdsScBUoHbLKJNTSMxbgdqc+CM2A7G/IfYbEH4yjaCZ8s27l6b/3vZ0 3VhRFS4mNtOak1qWd1TSy/x40ZdUYJcF5TVM7bBYN0OqxH9HGRj0rmwh4MQ/mc1tVh92 EDCGYuQSj/AZsD9QK1/WAksfmNzEYwxkSyHeivVISbX7w1ovAKhuywk+lJ3NtVoyvwK4 SjUjHVeTEYgjh2S7S6QZ3+ie0WpeebY15wUajS/Jrt/Mvd58Ktds9pdAX4tv3eT4hPUD 4suA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@dell.com header.s=smtpout header.b=Y19f+xEa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=dell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si14078580plo.41.2019.03.25.07.14.10; Mon, 25 Mar 2019 07:14:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@dell.com header.s=smtpout header.b=Y19f+xEa; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=dell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729070AbfCYOM6 (ORCPT + 99 others); Mon, 25 Mar 2019 10:12:58 -0400 Received: from esa6.dell-outbound.iphmx.com ([68.232.149.229]:24156 "EHLO esa6.dell-outbound.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbfCYOM5 (ORCPT ); Mon, 25 Mar 2019 10:12:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1553523177; x=1585059177; h=cc:from:to:subject:date:message-id; bh=Igp6GPMRxzdz4EcLu4mmrctowFRXI8UkHE9HuizoM2s=; b=Y19f+xEaP5AUuAKwQ5GZUJXNa5zSCCILdI8PS8ySjuUixTf9mgh/Hg+h m8bPzQpq4M7VlmFqtJ4ZqkapZ9lje/bwKCnrLyw6o6E9pp+2s+dQra75L Sv0w42r80SSeDexmprTwNZs+muPZvUB/pTZUE9sZ4Zq+mxedf8rC30d+d o=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2FwAACv4ZhchyeV50NkHgEGBwaBVAY?= =?us-ascii?q?LAYFmghUnjQmlHoFnDQEBhGyFFSI3Bg0BAQMBAQkBAwIBAQIQAQEBCgsJCCk?= =?us-ascii?q?vgjopAYJqFhVST4ECIoMAgXahfz0Cb4EBiQcBAQGBazOFRoRigS8BhmmESIF?= =?us-ascii?q?XP4RhhC1khRQDkjWSYQcCgkcEkG4CF5N9AS2eGQIEAgQFAhWBY4F5cIM8giS?= =?us-ascii?q?BCQECjTkiATGQJgEB?= X-IPAS-Result: =?us-ascii?q?A2FwAACv4ZhchyeV50NkHgEGBwaBVAYLAYFmghUnjQmlH?= =?us-ascii?q?oFnDQEBhGyFFSI3Bg0BAQMBAQkBAwIBAQIQAQEBCgsJCCkvgjopAYJqFhVST?= =?us-ascii?q?4ECIoMAgXahfz0Cb4EBiQcBAQGBazOFRoRigS8BhmmESIFXP4RhhC1khRQDk?= =?us-ascii?q?jWSYQcCgkcEkG4CF5N9AS2eGQIEAgQFAhWBY4F5cIM8giSBCQECjTkiATGQJ?= =?us-ascii?q?gEB?= Received: from mx0a-00154901.pphosted.com ([67.231.149.39]) by esa6.dell-outbound.iphmx.com with ESMTP/TLS/AES256-SHA256; 25 Mar 2019 09:12:43 -0500 Received: from pps.filterd (m0090351.ppops.net [127.0.0.1]) by mx0b-00154901.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2PE8Xrg079378; Mon, 25 Mar 2019 10:12:43 -0400 Received: from esa5.dell-outbound2.iphmx.com (esa5.dell-outbound2.iphmx.com [68.232.153.203]) by mx0b-00154901.pphosted.com with ESMTP id 2rewgq9953-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 25 Mar 2019 10:12:42 -0400 Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, hayeswang@realtek.com, sjg@google.com, campello@google.com, Ryan Hong , Crag Wang , Mario Limonciello Received: from ausxippc101.us.dell.com ([143.166.85.207]) by esa5.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA256; 25 Mar 2019 20:11:51 +0600 X-LoopCount0: from 10.173.37.27 X-IronPort-AV: E=Sophos;i="5.60,269,1549951200"; d="scan'208";a="1215647042" From: Mario Limonciello To: linux-usb@vger.kernel.org Subject: [PATCH] r8152: Refresh MAC address during USBDEVFS_RESET Date: Mon, 25 Mar 2019 09:12:23 -0500 Message-Id: <1553523143-23072-1-git-send-email-mario.limonciello@dell.com> X-Mailer: git-send-email 2.7.4 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-25_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=807 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903250106 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On some platforms it is possible to dynamically change the policy of what MAC address is selected from the ASL at runtime. These tools will reset the USB device and expect the change to be made immediately. Signed-off-by: Mario Limonciello --- drivers/net/usb/r8152.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 86c8c64..eb5351b 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -4268,6 +4268,9 @@ static int rtl8152_post_reset(struct usb_interface *intf) if (!tp) return 0; + /* reset the MAC adddress in case of policy change */ + set_ethernet_addr(tp); + netdev = tp->netdev; if (!netif_running(netdev)) return 0; -- 2.7.4