From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 5FF7355893 for ; Tue, 16 Jul 2024 07:37:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721115480; cv=none; b=KhpHeZ2ZXK2L+5HS6E3Fr17hrKc050yBa81in8fylm8/Y2anYx6l5WItYpcC+ybUIAz54lDAtZFxcofurPZt3AThTqX4wRvRCsg/U34lMVqF3qBeM87mHoUuK4abcU/3krjF/tSgp4DZwLlu6KkVATs2xIK37+7+B+qrHNsRVMQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721115480; c=relaxed/simple; bh=wsUa+mBMkgyWtarKas9SFHQq+I+2BbQrdnIErDGX1R4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IyMDA3pmC+1fF1eXp6r9+89hlIbFsJE43nco5N/JfzD6gEVIeLcLKZP6pGzh1w65ld7vYBdgaBT/BZ7kd5RrhvsaNOu0HGnYw4lRNHoasShfovkYbCUnl7WaTZhPG5St3R3ucV014gz+mAAhA6l9mYL9aquOStlSwDx9WrTwEjk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=NvCEY+Or; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="NvCEY+Or" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-367b8a60b60so2822353f8f.2 for ; Tue, 16 Jul 2024 00:37:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1721115476; x=1721720276; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=+OQpy4G4Eje5USDo7g38LRCjo6XrgBahA9NpvAvy43o=; b=NvCEY+OrIE6vH9XxXuOq7bhFEnApX5AibzOsV0acacgXQSIAgpTZDPmw2MeQ1NelcA C7J+CSIMYpL0qZXrUg+lFh5RR6T0pZ6AThNeqNmgLpROJdJNSsnGpi1c6ZDChajIuOUK oak/fvXVfU1X/hjkyLqBtj3laUIQOYlksCqs5gxN9uMBwOYmwqufZ95wDvOGKYkUSw0L arpAxZGJ/lCYI5XvR9rE8u3YgNz8qvHNS7e1OYZEbirDkBFi0vHVog0/pg+BPI3AWCP3 fB3+cVtVwjKINMwvwomA7fxMcmtH8GQjioXAv7+1U2jgVMOC7HlJCe4MvjMB/Qxa8o1L lAJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721115476; x=1721720276; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+OQpy4G4Eje5USDo7g38LRCjo6XrgBahA9NpvAvy43o=; b=IgH7tfWqk9bd2M3X5HCp0dddvqMZtSBTNoaGK/MQ+luvdsiEJgErVWDF+ORHAcluMy dD5NOYGw+FJ8CDMqrPYOcfByNr5ht8cM9eHyhih/UCtt/Yv+Am6YKmNMPevTXTVU0Bu6 HuTUPSNy5wt6UtHE8mKLAK0MJ4AIYiIPyxJtFU7uWzV2eK5rRSVPj1/WyFuSmGUt5+dZ G4RS++RKYM/xC6Ao4xZIcR4tdZ3tff1g+WZEnV1+MuwCTmddqzAEWbq/EzMPimu7Wzwx 8SHzm74SLjnJapmc+fGJ35b1iiFWM1aak+UaOtrDmrR9TjDUwvD+XEKovqOofgeYL4YX 44kQ== X-Forwarded-Encrypted: i=1; AJvYcCWCs7hJ0ubkZWGjz2n6L5I3yBa35H+71FS0KtHAJDdO6hBuWJEwl7/O6IQPNpgs6nA03+IKdRauxfln3nulSseW6fYPndYuWnsp/3JG X-Gm-Message-State: AOJu0Ywf232ywvR52rso3+bofCF/VT9oW+Nb2zFj6p3r902pfq95JdTW 7cjCzJi4KBc6jblBuFNZi7b3LVVG/DyUxsvVKc+PKNcV1vU2Syf4Xk0hZCwpY84= X-Google-Smtp-Source: AGHT+IFumldrPx/zMqUUoMsoLTBo0cyX3qA2ouOy8XlozJcYo16CimUEt8u5IYn604xDgWRpoZY2wg== X-Received: by 2002:a5d:5f42:0:b0:366:eade:bfbb with SMTP id ffacd0b85a97d-3682631fae8mr1021856f8f.46.1721115475606; Tue, 16 Jul 2024 00:37:55 -0700 (PDT) Received: from [192.168.50.4] ([82.78.167.171]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3680dabf1a0sm8190205f8f.28.2024.07.16.00.37.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Jul 2024 00:37:55 -0700 (PDT) Message-ID: Date: Tue, 16 Jul 2024 10:37:53 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] clk: at91: sama7g5: Allocate only the needed amount of memory for PLLs Content-Language: en-US To: Stephen Boyd , alexandre.belloni@bootlin.com, mturquette@baylibre.com, nicolas.ferre@microchip.com Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240714141315.19480-1-claudiu.beznea@tuxon.dev> <2a56789d4f1eaa97ec91392f93741f19.sboyd@kernel.org> From: claudiu beznea In-Reply-To: <2a56789d4f1eaa97ec91392f93741f19.sboyd@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 15.07.2024 22:47, Stephen Boyd wrote: > Quoting Claudiu Beznea (2024-07-14 07:13:15) >> The maximum number of PLL components on SAMA7G5 is 3 (one fractional >> part and 2 dividers). Allocate the needed amount of memory for >> sama7g5_plls 2d array. Previous code used to allocate 7 array entries for >> each PLL. While at it, replace 3 with PLL_COMPID_MAX in the loop which >> parses the sama7g5_plls 2d array. >> >> Signed-off-by: Claudiu Beznea >> --- > > Might as well add a Fixes tag so we know when it was less efficient and > to help anyone trying to backport this driver. That would be: Fixes: cb783bbbcf54 ("clk: at91: sama7g5: add clock support for sama7g5") Thank you, Claudiu Beznea > > Acked-by: Stephen Boyd