Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2023090rdb; Sun, 11 Feb 2024 07:55:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgef+Wetezz8DeY5MmEXq2kF6TK+VM7DOldtlqLVkRzEhW0kHUqpqY74hPQP07oLvBgqWA X-Received: by 2002:a05:6e02:2142:b0:363:be58:cdb0 with SMTP id d2-20020a056e02214200b00363be58cdb0mr5908191ilv.6.1707666918089; Sun, 11 Feb 2024 07:55:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707666918; cv=pass; d=google.com; s=arc-20160816; b=kRZkVVmPtzv0sc2emOJlNhP68O0KfAPeawD7dEoBPnP7qhzxbRXp5Q9zNciu/LP+u0 V79DJ3i2tnsYhrQtSXZX4quRLPTGyNWrVOZptT5TJpJELtdODFO84JpmUW9Agoi9dqQO WzXdgP7BGhujJvY8dwFzrXy5tNtFd5ZAR75tLsa2B1RnUFj/23KwtDPQJCGU8tECcFt6 eOhjjXWe3P/pPOECUEz267AyLrAqs5q4Z5IQE071fFRb8W3f8j7HsnYYvgp1egpIbQ/B doh7WIfq+TXno5zhRdyzsG/ihSnCXhkL0VC9I9M+KjNvpPMvvM16ieqz4vi/A7QQ7ZKX e4PA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=8M/NTInG6Nop42RnQgfHsyNKhHaJCOtRgNV478Trz5s=; fh=QiY6r96Vd+Hydd3p3nI7RQDvCLaBqufdcNNCBRwYX1g=; b=taPgytoNst46zuOhNyYILM4b1d3MigJhIL6Y6gDNKxlRsZuwmB6mOPGFOuq2G2KwLU fl53YVUdqi0e35BVwXiS3H37JOKVEtlbIsfBpxhFZaW9MZxI8XIdoyHYyqweZyLlPZcO ctXFFIcTZ4eSl5IbCF8u4NiFl5IJvsQ9l6Gpw5f4kquskvTHC4Jxq4c9bSAXcFgDDgDr /ByQu6bo4ToF9F4mMTpq2JeHCRlUzp05lJ9xTGsGKQdg/zlIZsiAQ8BY30zmzpDcxfv/ dguJw36q+kh/lG5EXja8tN/xrAJFTViydKI/VaBW5iTsFydW0DrhBauQuZ0pILcRMvYm L5sA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=cnVsoZYH; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-60852-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60852-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it X-Forwarded-Encrypted: i=2; AJvYcCUY9a1PiBVC8kGNRFuJlsaq9vvsqVXp/N/vEcL0KjsNe/8rcjj8E9lnfXUq7NhP7oFEXinm+BgbumHg5OzVjcR9QC4pUNrVt2P3lHe+YQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ck15-20020a056a02090f00b005d8a938910bsi5180314pgb.429.2024.02.11.07.55.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 07:55:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60852-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=cnVsoZYH; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-60852-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60852-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it 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 AFFDC2819F2 for ; Sun, 11 Feb 2024 15:55:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2FEB5B693; Sun, 11 Feb 2024 15:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="cnVsoZYH" Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2A5F54278; Sun, 11 Feb 2024 15:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707666909; cv=none; b=Gm3B0Pn4zRUzf7FYO4pdZkqDip3mgZh+QnGj0kaMMfk8gJAlZIzjCVEPvYv+fJNn1ykVLIOMT7fpNJgUNXClnk8q6j4y33WYG5pU6qi0aTyvbr74bB5p9uSqmPCLvQY9OZNaPxbEDf6cLCe8OROSoFamFKMvr3aq4fgIGfuoWw4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707666909; c=relaxed/simple; bh=+p/TPMiKZKlmXoxJMQ/Ac21V0WaExMeOFivDJAjmfCE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HAod2FEkwQZ2CRjbhG9o2fZqNr7DAhqo4xNIG5KPGl2zcwYKezNk00az+rXdRIXaHQxCr9/xuS+K26x/VRSZHG7xr/oPn10A1+EeMR35TqKaSKaRF6mtfeb6dTUc9npzelKsqSuDUtRlLP1cvxgZ5iEXD8VacogaLzuPRPB6UoY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=cnVsoZYH; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id A0D5820751; Sun, 11 Feb 2024 16:55:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1707666904; bh=8M/NTInG6Nop42RnQgfHsyNKhHaJCOtRgNV478Trz5s=; h=From:To:Subject; b=cnVsoZYHZj3wakEHaE3KqHdWFZRhHvPtr03SyIlO4jn5FP8usu86QomBnG5UgPCWS cBe7+Qje074Ri72ZEtjZhQIQCzKKsEVCLfsQQRJpHibC8pj5q+y1kpbqSuFQ5rG3G4 iXY/DYLzq/WlN8XIKYPLqVPR7itfjstv+NPE0qgK39OK9YGRGfh7x9NL0zShJQXQew XTG5Mq2EdM/yjJN+EIJX0zao7ZrjyvMuWMV+BD706waEG1jIcMzYvOj9dqnqC6bu4B IdHBl//d3NzIYTnl93VSm+4w93+yCEoaVq5J/7tlbeFIE+KcWtElMpJlEVPdTCMBdn 2r5vcZmNZXPMQ== Date: Sun, 11 Feb 2024 16:54:59 +0100 From: Francesco Dolcini To: Udit Kumar Cc: nm@ti.com, kristo@kernel.org, ssantosh@kernel.org, chandru@ti.com, rishabh@ti.com, kamlesh@ti.com, vigneshr@ti.com, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: Re: [PATCH v3] clk: keystone: sci-clk: Adding support for non contiguous clocks Message-ID: <20240211155459.GA4443@francesco-nb> References: <20240207091100.4001428-1-u-kumar1@ti.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: <20240207091100.4001428-1-u-kumar1@ti.com> On Wed, Feb 07, 2024 at 02:41:00PM +0530, Udit Kumar wrote: > Most of clocks and their parents are defined in contiguous range, > But in few cases, there is gap in clock numbers[0]. > Driver assumes clocks to be in contiguous range, and add their clock > ids incrementally. > > New firmware started returning error while calling get_freq and is_on > API for non-available clock ids. > > In this fix, driver checks and adds only valid clock ids. > > Fixes: 3c13933c6033 ("clk: keystone: sci-clk: add support for dynamically probing clocks") > > [0] https://software-dl.ti.com/tisci/esd/latest/5_soc_doc/j7200/clocks.html > Section Clocks for NAVSS0_CPTS_0 Device, > clock id 12-15 not present. > > Signed-off-by: Udit Kumar no empty lines in between tags and only tags at the end of the commit message, this [0] reference needs to be before or moved to a `Link:` tag, whatever works best for you. Francesco