Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1371654rbb; Mon, 26 Feb 2024 07:18:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWWs+RfS+hPf+B6mOa5LP+NhINIzWih8AltVwMUGnpON6ROq65wf0f6T04vEQmNzFYNACPZ76xOKQgvC1G0F7Smi+pOOJ7NQ5WcDCz0PA== X-Google-Smtp-Source: AGHT+IFfTwCwHSSKQtx94vG9ZxjRpV/5rPyLvmFkxtoNonn+feNs6I+mekSaBCgCs38qAqJ2AdPt X-Received: by 2002:a05:6512:3d0f:b0:512:fc00:10ba with SMTP id d15-20020a0565123d0f00b00512fc0010bamr2936456lfv.14.1708960737814; Mon, 26 Feb 2024 07:18:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708960737; cv=pass; d=google.com; s=arc-20160816; b=qGp/6lg64YgM/F6VLi0yNFiV6J1Pk3Uy3kQ1lL0LhszQZf/D4TBCMyQK1KcuI1tjW9 pdwflbYuhL/MckZI6jiOAG9bRZhOh2YonnBw5JDnldNYbd9VabcN9+1iDIPEY/Whgb5R 82pKAUWedq95U1eMa7NjARCJs+oi+ArHffSy529oTLjA9QVbbv1iUHR1DiKxTx7vwAG4 XwJCjJ7D77ejBxatSENHQwpUIjgg5ESK4Q4D9tYYarIqDzHk5QQk+6uNbI5sr3Dubrdk ZURKvN5HsIfEMhTUePKI2SbOribSzfljq9zcVbbC8lpj7x+mlzlpscmkb1xwRX8NfB8p iq8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization: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=vKTt0+zj333FEDGOjk7lHCw/Hd2lsRZ8FuA0j2aYvJw=; fh=f4M+z8PZb+3thK9To1AzgSAypHm48CnGFdao4Q13KwE=; b=kvm6+h2kRhDaWmN/QZu6ktJc0yfQRZM5FURYv39jC58jo53blFpMculSUsihRxINTr pR7f3iJIausy9IQEaZIAxkxPGsgJDM/FrCNJTDTIJzL/bKP7FDXqD0D4QEke5ncMDtkr RjTy1pkm+5eZjyBcnP9RgvPxsH024wvIk4xp2ruXdzniyYru+dIaKGP+F0gdR938M3Qc DQjcqtTGoq455tOyDyqx2aTlGxZnkj3pNW1BBck3DxH3z1aNAyYnBgMbVMR04L5wsQV6 fmSaGziTD0qtZMhiNEPgYktssXWS6J6GqeH9NT4Iw7Zv3Y19fm35J1wkOtORKukRdWBX gAQA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L3ndgiBa; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-81769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x12-20020a1709064bcc00b00a42f0b6c2f6si2045311ejv.1047.2024.02.26.07.18.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 07:18:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=L3ndgiBa; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-81769-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81769-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8B09D1F3068F for ; Mon, 26 Feb 2024 15:18:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5DDE512E1D5; Mon, 26 Feb 2024 15:12:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="L3ndgiBa" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 39E021E498; Mon, 26 Feb 2024 15:12:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708960358; cv=none; b=BCiQnBb1pydiIm9Uq9wc1KyA1W1robbD9IxyfzRgCgqQLH7gh7fYjKZ91/D/kyWjV8rRabaTcONCtreQr5DiofqV008q3klNF/pWkSzTk/r2JID/+qrygm6FX9jKfFaze5OLSE2gtw6/Tzdbaw6gwqKzVKa4ynoMG/daIanA6Ek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708960358; c=relaxed/simple; bh=p/wyrwKVlNK4WhB2eT+NE9IKehJPl+cCxb+H/wAZwrk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Bf29tEzQ5ncOoqZXxLXs8DQF6KDIg1fDqOrE+TvKk1pZ8b+A+hTS0vXEzI4qWPTFtvttMM256Uftm8l3IZwVd+vLZc03ZkCdn5FI7yunoGNOjCXZMvVOT3MR0jMMdvI0hUqMqhgSevJ4KhOcZIRRnLKlLS80WWdn2Dzisv5JmOQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=L3ndgiBa; arc=none smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708960357; x=1740496357; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=p/wyrwKVlNK4WhB2eT+NE9IKehJPl+cCxb+H/wAZwrk=; b=L3ndgiBaPGddz8OXMd599OmCi1ZrhlH1VocSMJ3JkaGWuMTRZXG36BJ9 77ily0QnlaylS96D52r3g/8VcP4QSJnW4Pa0rDb3+xjldK4NlQt/nRSDe +NNNkmAl7KJn1wGvEiqY6o0v+WartlK6KrNbYKfzW3GwzZAgdsnOt9JTg mILKFcqq4ALMpyuukPkQOdlzhLPiyHxiCHhhIQ+988guLjonytehDu9fg E8YLWqpSDFZOqYaZSoXg1+B4azQhSTYielV+G3yGwanNWZhoKsHD+Z9rZ qs8HIAAfx6m4zj8txAlN/T0kehDL8Yw2RWgKyi/ZEQaDZmVlBFHlObOdY w==; X-IronPort-AV: E=McAfee;i="6600,9927,10995"; a="3107990" X-IronPort-AV: E=Sophos;i="6.06,185,1705392000"; d="scan'208";a="3107990" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 07:12:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10995"; a="913875991" X-IronPort-AV: E=Sophos;i="6.06,185,1705392000"; d="scan'208";a="913875991" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 07:12:34 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1reced-00000007iFh-2zHT; Mon, 26 Feb 2024 17:12:31 +0200 Date: Mon, 26 Feb 2024 17:12:31 +0200 From: Andy Shevchenko To: "Michael J. Ruhl" Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Russell King , Michael Turquette , Stephen Boyd , Russell King Subject: Re: [PATCH v3] clkdev: Update clkdev id usage to allow for longer names Message-ID: References: <20240223202556.2194021-1-michael.j.ruhl@intel.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: <20240223202556.2194021-1-michael.j.ruhl@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, Feb 23, 2024 at 03:25:56PM -0500, Michael J. Ruhl wrote: > clkdev DEV ID information is limited to an array of 20 bytes > (MAX_DEV_ID). It is possible that the ID could be longer than > that. If so, the lookup will fail because the "real ID" will > not match the copied value. > > For instance, generating a device name for the I2C Designware > module using the PCI ID can result in a name of: > > i2c_designware.39424 > > clkdev_create() will store: > > i2c_designware.3942 > > The stored name is one off and will not match correctly during probe. > > Increase the size of the ID to allow for a longer name. Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko