Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp2160446rwl; Sat, 5 Nov 2022 03:01:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6fMZN+36r2pGKSL9N+GeNca9D2yuzBNg9iqzt+AygrBOLdiugLwu3bwPbbavqB7L1qHZmf X-Received: by 2002:a05:6402:5409:b0:44f:1e05:1e8 with SMTP id ev9-20020a056402540900b0044f1e0501e8mr39951221edb.373.1667642486646; Sat, 05 Nov 2022 03:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667642486; cv=none; d=google.com; s=arc-20160816; b=n/WBe4tc/TwunaOF723KnNa8qrY/xniNjVC2SABSRYw5kAwY54clN9Dk0JIDVw05Hd iIdHxrHEn2kCzEseb5dPBod9tHX5r/VyVbEWGSol3B/j0+M0d74GgaUsyNSxjewPuBBi rdUmkwwUlSXcdQiRemr9wRcaWfMUwVW0uEz7oMNwpDlORVsujp05IodDPl1U1ia0VXQE kr744vPXWIhhvuDufXge7UoW1IfVzl3+BCAOpExEbUj9miHzgwpi3iUR9rxTxYYo8bSC e6o6A4R63tDcb6ek7Oc/QHUSOBo2w1cFjBMClWlPZda4f7rPcNJJnv4FQ1JiqU3N1rbE wKJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=AcabuyOCyRp/GUeKePhs2D/mGuyiXtjOrLeSsbF2QLQ=; b=QYe4W2KiPYxL3cmiulLF9pEdS4QiPHbKdS1aoGHMss1z58Zw0HiiiwZz3UpY4u2VH0 1uz7D4nmDpVhBFxHja2NV+8xyjI9R+HlK0MeC+PnS4jKft2eCiTKcN/DwxAY+6UIOGqj Vk6DuM2TZGvkwJyUlCHIFEm/GMexDU5ZVZvgdztYN3PA1KKJOrUfDUksK6KVmo1U/3qj Y5K1SjQuu87+tQfHvkaxAyMDdAjoeukhUug88l6UrRpnYJhDoq2K2IAZ1ZVcl8qwsr6g JvGcsRPkstMT6zl+xpXiIzFB6A11KyU4awAKjeejXXBcSSPvqV1XkXs2f1hkcVF6RQAS hYzw== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gv28-20020a1709072bdc00b0073ffabc3352si1447954ejc.836.2022.11.05.03.00.38; Sat, 05 Nov 2022 03:01:26 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229682AbiKEJ2H (ORCPT + 97 others); Sat, 5 Nov 2022 05:28:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbiKEJ1v (ORCPT ); Sat, 5 Nov 2022 05:27:51 -0400 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1005B303CC; Sat, 5 Nov 2022 02:27:49 -0700 (PDT) Received: by mail-pl1-f171.google.com with SMTP id k7so6960609pll.6; Sat, 05 Nov 2022 02:27:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AcabuyOCyRp/GUeKePhs2D/mGuyiXtjOrLeSsbF2QLQ=; b=Sl49yHGoTXfvPinHKyVHAKsq3/lKyjeeQkQMSmLIweqVFx7gjUW8MWC5WG7cA2hNQO 3eEkmzlbYnkl1g6rjefUoyKTPYDwDoHgvog5eS41UvX6U6Xxlg37OnORzAXvrgg1MVG8 WXhaAe0UM8HjV6WLyPIpvPdQzjEkKPiYRSglrfvw+RxZS+ajk8as9ZRttRyFSRldlW4x Maj4mKXAjBiEmu14LEJbRT+p31Tq+5URuOwEzR8ws/AfyYiHQChXehsOgvrvMxHgpb2W 1NF018Yv/bqyVxpcyN+y2hDj5GXQysGx0JnW/yfiz78nJxbk8EVMgp8DgGSSh58CKy3Q Tnyg== X-Gm-Message-State: ACrzQf3Jtn3rhdXKCPNS7bBIp5cT7/lbIMg8cSfX3zX/ne3upC3BVKme thTMG0P2USFXUIfjaIr0Hy5ydPtX3JxkrbPMzaM= X-Received: by 2002:a17:903:185:b0:187:2430:d39e with SMTP id z5-20020a170903018500b001872430d39emr30280252plg.65.1667640467936; Sat, 05 Nov 2022 02:27:47 -0700 (PDT) MIME-Version: 1.0 References: <20221104073659.414147-1-mailhol.vincent@wanadoo.fr> <20221104171604.24052-1-mailhol.vincent@wanadoo.fr> <20221104171604.24052-4-mailhol.vincent@wanadoo.fr> In-Reply-To: From: Vincent MAILHOL Date: Sat, 5 Nov 2022 18:27:36 +0900 Message-ID: Subject: Re: [PATCH v2 3/3] can: etas_es58x: report the firmware version through ethtool To: Greg Kroah-Hartman Cc: linux-can@vger.kernel.org, Marc Kleine-Budde , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 On Sat. 5 Nov. 2022 at 17:36, Greg Kroah-Hartman wrote: > On Sat, Nov 05, 2022 at 02:16:04AM +0900, Vincent Mailhol wrote: > > ES58x devices report below information in their usb product info > > string: > > > > * the firmware version > > * the bootloader version > > * the hardware revision > > > > Report the firmware version through ethtool_drvinfo::fw_version. > > Because struct ethtool_drvinfo has no fields to report the boatloader > > version nor the hardware revision, continue to print these in the > > kernel log (c.f. es58x_get_product_info()). > > > > While doing so, bump up copyright year of each modified files. > > Why not just stick to the normal USB interface here and not try to tie > it into ethtool? These values are all availble today in sysfs or in > libusb, right? The simple answer is ignorance. I am more familiar with ethtool than libusb and I just did not think to explore that second option. Thanks for the review, comments taken. I will study sysfs and libusb and will rework that. > What workflow wants this added to ethtool? No workflow. My work is not bound to any company and this driver maintenance and anything else I am doing on the mailing list at this time is pure hobby. Yours sincerely, Vincent Mailhol