Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp246464lqk; Thu, 14 Mar 2024 01:42:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXAOHii7cvm+jlc5WUM8PzOpi0ohZzLgAB2tR0IgKfYmDuMR1TaVsfFm6vZ3AQjWpw8R/1VB0k3nBY6/FWXyx9f/f1XEWasDApoSKDTLA== X-Google-Smtp-Source: AGHT+IHgHkbHJsxBLXLEq1VvGq6GQu/i5CpheMG/qCD5jF5/Hh6w7ohVSlbYOJnUbEcbBUgEaBD+ X-Received: by 2002:ac8:7dcb:0:b0:42f:29b9:6ec6 with SMTP id c11-20020ac87dcb000000b0042f29b96ec6mr1134051qte.28.1710405778430; Thu, 14 Mar 2024 01:42:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710405778; cv=pass; d=google.com; s=arc-20160816; b=dp8vQ4ONw11z6J9kOv2n0wJrA+pklzHrwZhWkS8X95l5AlXGQlvlXtzBRTyEH28aa2 drmeAjQ/7UOGJr0h42zh0OIgHGdIurB0VCSashny1qqXCDwfd32eAI0cW7LDfAsznx2G eM6KzcHUYT874G9cNgiWAO3cZuRhR1l+d3+fq2vFGEuF74wt3BccfngsEFLm3+IlzJ6d 2e/6DgqT2hCStZTGOEJthmJ0LwXea/g3t1BEzo4OtUqsBz73+sralvPDDd5OCaOsLZLk E5h55NbAKprwCWCSa8ys6vRSe91VLD8cfTolSlVcQGmHcaUmGRlRuomOn4fcCe1dhWCh wDRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=cgbDTfEgEvEt8XT1jVPZh5fA/uBgksTawcns0Z7+nws=; fh=QdJE5kxzsbTOalLvO3n0fRzKM1I5oz5Fbwrl8lO7DhA=; b=uJNrVmbnvwTamjS5Tli6ZfEst8IZyQBFbgC1zNO24me+agtk0F4qE9ot1SxyyKjOEP xDfNSu1z3d7580S3k4rOFH381d3lmIYyxke47xCzCVqKD5W6QA3jpijymukIxqX0Jq1K ONeuTkefdgl7Oo9G/KDsD+dsySikWLOvzZLz1cn7m/A3ead6FT7D5K+Xh9uGSpAcU6W/ /LK6AHn2wSNQWktv8OhwQfWqI2S7m/U8YpAFvA74qUEd4KGMWdJvJBh4/K9p9hluESJr P4WQAwM5cvpEs69K4MzyntVHR75wETQ1OoVRNrmViKRsN6gKBwyUTcs0xc8BfXHOrkc8 +OAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=XLg29xJo; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-102982-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102982-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id eq25-20020a05622a5e1900b004309cf1e586si749886qtb.131.2024.03.14.01.42.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 01:42:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102982-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=XLg29xJo; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-102982-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102982-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2CFDE1C21F96 for ; Thu, 14 Mar 2024 08:42:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF13A6BFA8; Thu, 14 Mar 2024 08:42:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="XLg29xJo" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2394C6BB56; Thu, 14 Mar 2024 08:42:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710405758; cv=none; b=n0zpEDXaNj5pFFlwTUdI3j4G07ZdkqxaBpSoSPxTaPyP+X0XCtWzyFTT3JUVEoMay3I3gifHVGxIcdXIX1YYPNwUABWkc6dr21S4FdWaOA+wOQ5cf99qoula1jpb3wbw9b5oEiHdV3Oa5uDkzQKL5bKCyI5e6Fr8o4KIEkNcYTM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710405758; c=relaxed/simple; bh=V09Ma465F/F2Vxs9nvGPBppS3VEn8cxbnQDIcVk3LPc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S6gLVdBGy8+zhnMHffWkmWGrbXGyqtPifp4fhzuqtz9AePcRwssYJfHwStEyJMkcbFv8qSGsA0Z5oothNA3Zt2uDnSX/1SvsXJO6kK7TS1XUEPWL2NNRZ53+iLNVH2d3XauKB8EbA2SZVuP3RPM2IPNza0q7vJgk3dAdzMf9TlM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=XLg29xJo; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk 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=cgbDTfEgEvEt8XT1jVPZh5fA/uBgksTawcns0Z7+nws=; b=XLg29xJoElFHyNco9ZF1wU+aYh pMsseZBR7m6lcEw86f/wn96fjQKOzQEySBdC2bs1Z5WnqY6lQeG4IlAF0qlyr/wULCuN8jRlOxPTz gTIpEq4B8daoJHVxBdMSNazW7JZmjZgpHywSeNfIwRJ6V6dHFsACg7Y3oQIqpuU21BdxxTmFca7i2 oFW1lL4P8yMo0Aou7f2F9q8bAgWI5dZ8TFIugRtZJobG3NWCu04ATBpmmm9L8fUc6mnuaYLVxlztK 3eWKFTCYA0K9ms40Vp1BoAXMpM+SiTed3ycSZ4p4x2dX1CD2XZ5F4QwwnYbTLTX/LclHGE6kQBpHh bpIRp1qQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:53884) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rkgfV-0000FG-1i; Thu, 14 Mar 2024 08:42:29 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rkgfT-0005Jx-As; Thu, 14 Mar 2024 08:42:27 +0000 Date: Thu, 14 Mar 2024 08:42:27 +0000 From: "Russell King (Oracle)" To: Duanqiang Wen Cc: mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH clk v2] clk: clkdev: add error messages for name exceeding maximum length Message-ID: References: <20240314023909.871105-1-duanqiangwen@net-swift.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240314023909.871105-1-duanqiangwen@net-swift.com> Sender: Russell King (Oracle) On Thu, Mar 14, 2024 at 10:39:09AM +0800, Duanqiang Wen wrote: > if one device register clkdev with dev_id or con_id > greater than maximum length, clkdev_create functions > will not return err, but clk_find functions will not > match the device, it's difficult to identify issues > for developers.So add error messages for dev_id greater > than 20 characters and con_id greater than 16 characters. > > eg. clkdev_create(clk, NULL, "i2c_designware.16796") > it will create clk_lookup with dev_id "i2c_designware.1679", > because clk_name exceeds dev_id maximum, but clkdev_create not > return err. when driver call clk_find functions, use "i2c_desig > nware.16796" to find clk, it will return failed,but I don't know > where the problem is. It took a long time to find the problem. > > Signed-off-by: Duanqiang Wen This looks like v1 just reposted with a v2 tag. I don't see any obvious changes in the patch. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!