Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp117397rbe; Wed, 28 Feb 2024 14:14:57 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW/0HWh9CwUOqLKICNd1vlePiPZ3pfciXYN3nd/WHx36eyQfVzC9CSIa//zxCZ31Xdp54PUpQNaOTC7ii8fWgW0CGQYxFnrljf2NhlVfA== X-Google-Smtp-Source: AGHT+IFoigaPjudcdwKf5pOeaVYzoFlxKRRIc8VVmZTu+Rc9taayoY4d+/Gy5ixrVfGYBDk3AJOz X-Received: by 2002:a17:903:2285:b0:1dc:abf0:14ee with SMTP id b5-20020a170903228500b001dcabf014eemr365421plh.22.1709158497146; Wed, 28 Feb 2024 14:14:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709158497; cv=pass; d=google.com; s=arc-20160816; b=KgYtl+xlp8Bmqb5r5NCyFi1n9QFKSEgnO0KITzMHnx18RufQFREFfAjl9ISfL2xhQC rgPViZUPZVSvGEP8cduS17MiFToLosivsn4DYI8Zy6/2hlhPG2TBNUSFcV0N9hNEoVE5 Li0Ec8NXU8lq7mOTQ5uAdPHvymYf1F1uEtoLkTkXCnXLMGpkXK/SUSKMpR8O5JIu14Bx 7xOcOVLGTVNkNWDsYLuEJ+yi2qSsTeyPJP7TTxTjic4+LaPUVREJ2cx5VUomp1N4I664 m7c2QhrE0LOyuht6w16YmYOVqWdzmI0REriNL0vOqnmPQN1b4vnEhFHd3KcBIRFiXiUp Ks0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=KB/J7FkF4+YI8mTPtiPXdb8skna5gJCUoLs1nwy/Yb8=; fh=2nFkT/xRsz987vITd3byQppdrB8ZwH0AaEUoUNHQCC8=; b=WnE28sSyFsMeTkO3Da48SCfLRjPrMuwus4d3UrByA0SX0Q2t5Dgz/qk/yKWSkXnWCj LIdilbvv8Tz4CTGIg8ljqqe88IdtSffYv9WNWh993rmvwU3SBtx9+IpihpjV+YN5VETX RLRVr3Q0d/15KmEWzNQs244T3vnUlyHrvw1hOKvUNpyiXd23UAdRAX316uGjEwFRcGtz 7sDmHA2CTWM1mga2xmCekkzxULgwieAtfRvS+MD8WlHwvnhGf/WcphWRoP7Ruq4BIKrF rSBOWUNtCjnqy4CYf+M/WUiunIU8bnDSJg0X8iqgxMzKeaUfNV2Rgjjku5WHaJwlbouP YySQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KwNdZ/f6"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-85776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x8-20020a170902ec8800b001dc07b8d0a9si4237264plg.109.2024.02.28.14.14.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 14:14:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KwNdZ/f6"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-85776-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85776-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D3F4C28B6BF for ; Wed, 28 Feb 2024 22:14:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EEFA11361B9; Wed, 28 Feb 2024 22:14:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KwNdZ/f6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2471E1361AE; Wed, 28 Feb 2024 22:14:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709158491; cv=none; b=TUIvgnB/E/aDTUcDbwnRwOo0M6Qmm83zd+4bXPkkmZNx1xSE0llBSsl9v64kOF/0jstV8WzgrD059iGL7rMJ+ICKCatKSmEoNYIDpuO7JG8JvDOnzcm9kRDwHThGlySPLQ2af4fSm95lCC1Gy1415LtLXDqU2qdMib97HlYQSyo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709158491; c=relaxed/simple; bh=EFKm7abarpkXzv8/wcmcMD5nBO5+BHxOxUJcwzjgsmc=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=gRqZGj+PFWF3b5FKE0YEOeICfQFB9wqVUJVpJDRj7847CICskLBjFuH87uRpYrNrppO2bdZ9P+2KcB/I4jAhUn5jNDzYGE/dXq3C+pUZsTtfj9df00PcG66Lt6AHD200tTgEEfuy3aNkamEFz6dTGR8vmRB5UaKUP1P/l7GcnOo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KwNdZ/f6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94C7FC433C7; Wed, 28 Feb 2024 22:14:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709158490; bh=EFKm7abarpkXzv8/wcmcMD5nBO5+BHxOxUJcwzjgsmc=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=KwNdZ/f6BmKcNXsuczUcBIPmBZQaWK+bL2u14JVCKX8g9xnhU3MiMKtMrsgclTLIi BbvHVZlisvOq4RcFlCEUez6ketYN+LRYhYFoOD5byuzQxPOZNr738Jjiw+ABbNnrta wpiyJWMWWqPS7N8dKdF0Es4K531SHeHrNHNFlejtN2eNKVWMb6PjiikNT90NVlypFK RF3DpHUf6KuZP8lxIsYmNMIn6G02nrBiEqf5AQGRMJaERhwUsE8kVag/4a5Qeg8N6S XTWnQDv6vpctF6Zij1LQ4YekhhFojMZGQaYif0QXX8FUAy7JQkRc/F4zorJaY2Q36J JZ+FKAK/8l5rA== Message-ID: <24963d5f5a964f7620a4aa1cf5769d62.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240223202556.2194021-1-michael.j.ruhl@intel.com> References: <20240223202556.2194021-1-michael.j.ruhl@intel.com> Subject: Re: [PATCH v3] clkdev: Update clkdev id usage to allow for longer names From: Stephen Boyd Cc: Russell King , Michael Turquette , andriy.shevchenko@linux.intel.com, Michael J. Ruhl , Russell King To: Michael J. Ruhl , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 28 Feb 2024 14:14:48 -0800 User-Agent: alot/0.10 Quoting Michael J. Ruhl (2024-02-23 12:25:56) > 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. >=20 > For instance, generating a device name for the I2C Designware > module using the PCI ID can result in a name of: >=20 > i2c_designware.39424 >=20 > clkdev_create() will store: >=20 > i2c_designware.3942 >=20 > The stored name is one off and will not match correctly during probe. >=20 > Increase the size of the ID to allow for a longer name. >=20 > Reviewed-by: Russell King (Oracle) > Signed-off-by: Michael J. Ruhl > --- Applied to clk-next