Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1271745pxb; Fri, 1 Apr 2022 08:55:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBUhxLlgRCelEB4dcPaq+3d9dd6Z11Zq3s0tSJJXX1Z3vroT/mVx5yNcQ1/C87rRlyBTn0 X-Received: by 2002:a17:907:72d6:b0:6df:8b52:bb50 with SMTP id du22-20020a17090772d600b006df8b52bb50mr426759ejc.254.1648828538132; Fri, 01 Apr 2022 08:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648828538; cv=none; d=google.com; s=arc-20160816; b=WR8TpqPIM/4Z/jNheG26Uo6iAJrmahyPk+Rqvr9nYzOUu4PfdyAFi7E8VSigo3mgaI +VX9UJSUJ+MFLqUtlCw/1tEXGpVjsvSbw47FtjYyzilN3aU/LELjKc/6pjYUCR9AFyET Eb71fd6bc+PsZ9shuAi++zV4FU58nkC+BvjCDcctc8EHU0lJ4e3WYTaDnQ829Ijxx/iA fmNvi4ig5fWanXJv/XmVQ4wfe5gr15rXpKCqtLf5Y/TG8vpt1Gw0hAMDjmGWXyUziTMb PtGUnscrm4x/QG4u2bD50lZDoSuhsoDlwRD6CweocEmflpJJvIlZhhTLn54Vhyn7K+42 wEFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nBp5eWkwrHl+8YHShnyHosXN6OXlm06woH8IJnDuO9w=; b=c2CLkonEP06j0zdgQFGpItCl/VPY6PggME+y1TKOMjlkwWO/70tdVavenXFm8TiaWL GIBzRNHxzAKqXnWv8htpctn7aQDGgtSROsXjtofDFFJ2f+nJVvW/iZE94bGsRmmK34rN DzqZ6db55MKHYcv6Pf2YL9+pKqg19fpP7wnHMFTr04HC1G5gahoclaM0oqgcYvkSFF1r pLh6GHMHNhojrHTej0p0IFPRZKzRajaHaGfFbNFH+4DVQfThxytWFWRYkqgeu2IHqSBW 5AYYKQGdRD9GN7U7U6dYG7gGzw6COfNDVOWs8PDC4OwhBUIYjvS3x+OoHDRLeW4+jWPY S2tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=LR3tOu62; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a056402084e00b00418fca93aadsi2164776edz.404.2022.04.01.08.55.13; Fri, 01 Apr 2022 08:55:38 -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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=LR3tOu62; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237892AbiCaPAQ (ORCPT + 99 others); Thu, 31 Mar 2022 11:00:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233106AbiCaPAO (ORCPT ); Thu, 31 Mar 2022 11:00:14 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDB84BE0; Thu, 31 Mar 2022 07:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=nBp5eWkwrHl+8YHShnyHosXN6OXlm06woH8IJnDuO9w=; b=LR3tOu62pKypx6dzcjTW5LVJlT oCJAftcP0t6++0kUcHvfuxZO1ykO4xQg5bsxryt1UZ63t+BsOyvqPH2YaFk8to9JQ7pvdCuVgEyMH 3M1nbeYlRCzLjj/P7bFyj2i+3GPr42kAn7BBRSSGqPSyiUE7qFNDwDaPC7P9Zji0lBKjk9nsEcabK 2qW1rNUCFYgOzwumswv7pxvb5zEloAvzgrQ63wRx5mCBZfzJhZQ5Zlh0lfqpC2wH91njmmWbxltyI 2nONp06yKg+tfn7UB2l8h8EIh522kS9IGIxrz1NmbxFIfbKZ76Tswyt1nf835kgjoHjp4TKnHEhD6 fuEPDffQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:58066) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nZwFW-0004zv-Lq; Thu, 31 Mar 2022 15:58:10 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1nZwFV-0007ie-AO; Thu, 31 Mar 2022 15:58:09 +0100 Date: Thu, 31 Mar 2022 15:58:09 +0100 From: "Russell King (Oracle)" To: Michael Walle Cc: Guenter Roeck , Xu Yilun , David Laight , Tom Rix , Jean Delvare , Andrew Lunn , Heiner Kallweit , "David S . Miller" , Jakub Kicinski , Paolo Abeni , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v2 1/5] hwmon: introduce hwmon_sanitize_name() Message-ID: References: <20220329160730.3265481-1-michael@walle.cc> <20220329160730.3265481-2-michael@walle.cc> <20220330065047.GA212503@yilunxu-OptiPlex-7050> <5029cf18c9df4fab96af13c857d2e0ef@AcuMS.aculab.com> <20220330145137.GA214615@yilunxu-OptiPlex-7050> <4973276f-ed1e-c4ed-18f9-e8078c13f81a@roeck-us.net> <7b3edeabb66e50825cc42ca1edf86bb7@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7b3edeabb66e50825cc42ca1edf86bb7@walle.cc> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, Mar 31, 2022 at 04:51:47PM +0200, Michael Walle wrote: > Am 2022-03-31 16:45, schrieb Russell King (Oracle): > > On Wed, Mar 30, 2022 at 08:23:35AM -0700, Guenter Roeck wrote: > > > Michael, let's just drop the changes outside drivers/hwmon from > > > the series, and let's keep hwmon_is_bad_char() in the include file. > > > Let's just document it, explaining its use case. > > > > Why? There hasn't been any objection to the change. All the discussion > > seems to be around the new function (this patch) rather than the actual > > conversions in drivers. > > > > I'm entirely in favour of cleaning this up - it irks me that we're doing > > exactly the same cleanup everywhere we have a hwmon. > > > > At the very least, I would be completely in favour of keeping the > > changes in the sfp and phy code. > > FWIW, my plan was to send the hwmon patches first, by then my other > series (the polynomial_calc() one) will also be ready to be picked. > Then I'd ask Guenter for a stable branch with these two series which > hopefully get merged into net-next. Then I can repost the missing > patches on net-next along with the new sensors support for the GPY > and LAN8814 PHYs. Okay, that's fine. It just sounded like the conversion of other drivers outside drivers/hwmon was being dropped. Note that there's another "sanitisation" of hwmon names in drivers/net/phy/marvell.c - that converts any non-alnum character to an underscore. Not sure why the different approach was chosen there. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!