Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp314052rdh; Wed, 7 Feb 2024 05:45:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaVlqjWcLIUt5jvpXXubucWOAoAV47Hdi3zCnfLveOXyo84HjGmnGUnMcDrgYvK5jLc2gG X-Received: by 2002:a17:906:8413:b0:a38:4de9:106b with SMTP id n19-20020a170906841300b00a384de9106bmr2394417ejx.8.1707313557963; Wed, 07 Feb 2024 05:45:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707313557; cv=pass; d=google.com; s=arc-20160816; b=IJuj6gtf5LgIGPWDphWTEQ28zPt4PU1u3JrrVVKBj5hbl+CufzQKyhDGP9Yet5kO4u SUvN2S3cr394Lf6MWvau6f8ckcjvJJDQMyGANlXlpKJBpn7jDn+oabqY25xJE7rB2SY7 oYxGObN65mDyHzubjrqnYfTDawoK4f7i/TKJVQV/7+WTk/+/U3s/doD99EFocQc5mqwX 5Gj+q5hPgSXQjePufRDOlNd2QyjHSveOTS9UvqsJoOIW/fdqXfvqhN5kEqLJaDr+uohT AV0OtvXMfiWNXqX1ObVRBSLL9EI83s04nKeg2tAakPtcwqKxAIAyv3l2CdsCfWfSMh8c fsAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=tS/prRl5t8R43hQLzqGPVVnj4kD+14hA2T/50X3qjsQ=; fh=7UfGN37sAAwY7JKhauhSTS+5MiCwx6EffhIwmMMVh8s=; b=i8/LElnaZsTJ9DYHor17atHDV+SmJObBV95mtvOXz7n6YdL2a+zXYNJ08RlmiV56Mz uPVvs+l54Wjd/b2HZM+xOpxXYO1ToOfAvntITVgFnYEKZYVNOok9NqITZTc94c+xF1JF JHFt1aGlsdfzadrGiQiCL+gVWlvjpCUFKn7j2AYGgeQU6AN7yruBpzAENeqSqGdLMAqv Pu95VHeCAd9+fwJACM10tmrcx9bwIEcKYgagHpWeKmpbO+9uxt2F8/tIFsyjdV9cSZl0 F27xSDUP/uFT6pA9vsqi0zkKtuIKt2eHbiAF2nOEXtl+c6J3W6uvUNp01NGbfTHnMgiN iQaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=e966wrx4; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-56578-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=2; AJvYcCUqLDR/Z5NvUWYU8vL7wnA5iXRHJs4IxlY1DaF8waejzbStmihRniFlk/mVGntTM0BCtXsMKzZXPW8hw2vmGezd0SOIEClg85L3V2CbYQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k8-20020a17090646c800b00a37e0136fc1si919798ejs.1048.2024.02.07.05.45.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 05:45:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56578-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=e966wrx4; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-56578-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56578-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 B54E51F22E8A for ; Wed, 7 Feb 2024 13:45:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22E227762E; Wed, 7 Feb 2024 13:45:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="e966wrx4" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 A13A6199B4; Wed, 7 Feb 2024 13:45:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707313549; cv=none; b=ahVsVuphBKLgIImwTg5ZQmD6xayqqJzMj4vurAYdlDe4DI6jmted+iUs8dbPnAWjn4QXbtwGYrydsaYJXMOTuEQEyUp5hYa6UNwlYqnj8441/kWW24rmzdnEM6D110Ewq6tjz8i99O2ul1x8XEKlhtHmv7VHHLDTU4bRfGdd39g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707313549; c=relaxed/simple; bh=tS/prRl5t8R43hQLzqGPVVnj4kD+14hA2T/50X3qjsQ=; h=From:To:CC:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Am4DzZ9qFBPYWMGqXSTeSOpDTjkyPzBFvnJLK9MvMpaGXVGQbg1z5NQpiDEnt5Ni45rppnkVCS2gYc7p65PNFXFthtPvMsFDAf1+IcysrwNW8hdLiypZqhxzyVWgtzR0ns540/yrR1WqX+Z0qBZYBq2gUSVYUGUp+sz90jEZMQc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=e966wrx4; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 417DjeO4036011; Wed, 7 Feb 2024 07:45:40 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707313540; bh=tS/prRl5t8R43hQLzqGPVVnj4kD+14hA2T/50X3qjsQ=; h=From:To:CC:Subject:In-Reply-To:References:Date; b=e966wrx44vDMXmY+4rZi77AG7bLxdNoH8TPWGx+DBy3vAsofgMvPp8YOsPmg2Hyyf XxuUAsGxW5eiW9NxJiTjbmD/tKkO2rhJpqCUlOb8pkIKJYfBVEu5CnPruAjh2n11BN GmcyR7l49BCzKgSu0QIuGiniMCRlE4XpUF5Utf/0= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 417Djeql016507 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 7 Feb 2024 07:45:40 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 7 Feb 2024 07:45:39 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 7 Feb 2024 07:45:39 -0600 Received: from localhost (kamlesh.dhcp.ti.com [172.24.227.123]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 417Djd9Y026046; Wed, 7 Feb 2024 07:45:39 -0600 From: Kamlesh Gurudasani To: Nishanth Menon , Udit Kumar CC: , , , , , , , , , Subject: Re: [PATCH v3] clk: keystone: sci-clk: Adding support for non contiguous clocks In-Reply-To: <20240207125410.r2q3jcplvif7dvt2@tumbling> References: <20240207091100.4001428-1-u-kumar1@ti.com> <20240207125410.r2q3jcplvif7dvt2@tumbling> Date: Wed, 7 Feb 2024 19:15:38 +0530 Message-ID: <87il30xu9p.fsf@kamlesh.i-did-not-set--mail-host-address--so-tickle-me> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Nishanth Menon writes: > > A bit too nice coding ;) => I had been confused momentarily by clk_id = args.args[1] > change just above till I saw that you are pre-incrementing > clk_id - Is there a harm in leaving the original clk_id increment logic > alone (it was much simpler to read up)? > Personlly, I think this is simpler as this keeps everything related to parents inside while loop and increment only at one place. The other logic will have increment inside condition and also at 2 other places. Let's Udit take a call. Kamlesh