From patchwork Fri Sep 28 23:18:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 10620551 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 37B5F16B1 for ; Fri, 28 Sep 2018 23:20:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 259462BB0E for ; Fri, 28 Sep 2018 23:20:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17D142BC28; Fri, 28 Sep 2018 23:20:20 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 45A2B2BB0E for ; Fri, 28 Sep 2018 23:20:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727319AbeI2FpM (ORCPT ); Sat, 29 Sep 2018 01:45:12 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52947 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbeI2FpM (ORCPT ); Sat, 29 Sep 2018 01:45:12 -0400 Received: by mail-wm1-f67.google.com with SMTP id 189-v6so3357957wmw.2; Fri, 28 Sep 2018 16:19:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=7oaLS8ACfLUPYqaIS+pJ6VIS3KUj/1jvMEuK+sFryvM=; b=nbBAIoGdm6jLuGkXagmvLabK6Gj7ZZP92UPlfKpDtUEyqph8/e8kWst6/eZlhEeVd3 xOjX5yWGxHUiGYNd4q1jFyYpg0Xqpp7LTxtgunyOY/QIxeHUYPGJPOy7Cb4eFM53x8Ro RzxT2un7EQLwTn2ip9QOlSYwmGiIDxlxvj9hxDn6kjhGLJU8r9A7iFhfFMeBYtHD8io8 3xk12RW6UHNBhOpe+gb4+G1ExXN52bVnwbCkNtem43uAVv6dYJYJPCjCqAQm/0/2T+rH bAgWoGYGlPIbOGEt8wb28d0qPkoJHEz8xi2PAYvsziK25hi3u4cQGmjjnNyrRdLw1c94 DwzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7oaLS8ACfLUPYqaIS+pJ6VIS3KUj/1jvMEuK+sFryvM=; b=Tg6TV8GtHYpQlte+wx0EnZEzwbi3fx8wNBNuEEXMUkMfAas3jn5MfrRrjx1aB2/VUo shh3MZgFA/4H2fOtu+KCbmhINXgNz1adyrm3wLazu75oQpqxPjN6ITXS95ETac9Y+Krn GbhnysIqR6oNKjgh/f8x0JKaV8HJCRlMpBwzemCqw6AmSLCYE1xqdeexdBhbfgtBqc4o o+ifHY3A9krU7HHuCqGhjDY7tNUH/UnteC+H4KMUremJ//qVY9pnTuTuZ01o3pWVHtI7 ANKp5VCYGuYHP4qC+gGMtgrBAaEqto4BQ2AQg1anevxYF3q+ST5oTBlNf00Q31c7TTZ2 qPgw== X-Gm-Message-State: ABuFfogezW7FQ3aY5NpI1ItN+2iaMNs4+TZIT4eiuAt6/7XXwmmSeSnq Qss/uBTfmqcSP0YdPk1riQxoEKIi X-Google-Smtp-Source: ACcGV613l1miQtb6kj41UOlVUvffXBLKWW0d8/O+lYvbbZG3PrT1P/BAPaE+DHp1xxngwbN9eVvbzw== X-Received: by 2002:a1c:f4e:: with SMTP id 75-v6mr3045159wmp.79.1538176750026; Fri, 28 Sep 2018 16:19:10 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id 11-v6sm8590730wrb.95.2018.09.28.16.19.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 16:19:08 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Woojung Huh , Microchip Linux Driver Support , Steve Glendinning , Kees Cook , Alexander Kurz , Hayes Wang , Kai-Heng Feng , Grant Grundler , zhong jiang , Sebastian Andrzej Siewior , Ran Wang , Eric Dumazet , linux-usb@vger.kernel.org (open list:USB NETWORKING DRIVERS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH net v2 0/7] net: usb: Check for Wake-on-LAN modes Date: Fri, 28 Sep 2018 16:18:49 -0700 Message-Id: <20180928231856.3587-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi all, Most of our USB Ethernet drivers don't seem to be checking properly whether the user is supplying a correct Wake-on-LAN mode to enter, so the experience as an user could be confusing, since it would generally lead to either no wake-up, or the device not being marked for wake-up. Please review! Changes in v2: - fixed lan78xx handling, thanks Woojung! Florian Fainelli (7): asix: Check for supported Wake-on-LAN modes ax88179_178a: Check for supported Wake-on-LAN modes lan78xx: Check for supported Wake-on-LAN modes sr9800: Check for supported Wake-on-LAN modes r8152: Check for supported Wake-on-LAN Modes smsc75xx: Check for Wake-on-LAN modes smsc95xx: Check for Wake-on-LAN modes drivers/net/usb/asix_common.c | 3 +++ drivers/net/usb/ax88179_178a.c | 3 +++ drivers/net/usb/lan78xx.c | 17 ++++------------- drivers/net/usb/r8152.c | 3 +++ drivers/net/usb/smsc75xx.c | 3 +++ drivers/net/usb/smsc95xx.c | 3 +++ drivers/net/usb/sr9800.c | 3 +++ 7 files changed, 22 insertions(+), 13 deletions(-)