Received: by 2002:ab2:644:0:b0:1ec:cbc4:63fb with SMTP id 4csp1165644lqn; Mon, 26 Feb 2024 09:25:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUyBOBQQfB7ptkxdbGKHQtGqhXbcQkRTIwciecHh84Ww6GTYmSjylY/pM1k2izlD1PVcs5YHg9IEM2CAu06eR0CPCDgZSRVDO/vdSIsPw== X-Google-Smtp-Source: AGHT+IFUVjr9WOtW0z4sAC4ZL4p1hq6mDfsojK3RXvDEWIfuV0pd6LwtFnTeiwm7aujChLu+7Rxa X-Received: by 2002:a05:6a00:4fc5:b0:6e5:c31:88d8 with SMTP id le5-20020a056a004fc500b006e50c3188d8mr6014642pfb.15.1708968351269; Mon, 26 Feb 2024 09:25:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708968351; cv=pass; d=google.com; s=arc-20160816; b=CtFYzSLSCYnH9S/kmSllMydnQ2bufsfzRtHljUoGelDIEn+zx7Y4VWK+Dj29LvK4+1 z3HxpuygN1oZUY7ViFrgculMXEzVy4dFPpc9bCd+YIMSiL3MvLxzq0m2TPs7D+zWLs93 8WDAEw+d0Z1ZDAoq2zjtjEZmmrf693GfZtUleVc9tT290hEqQiXaEa0VmR82sYJx73MR wdkw4bflgj03jrAphl2wGjKr33AUFN7RVLahA09AlHu/b5qAkV57mUThkMehN8r8fvo4 FSFy/2nWo/pQOsbGJE4sp8dne6UWgnz6Y8m3Gh83lStgSuZY9NZ3hEtPrYZp4CSec+Xx nY3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=2HPPIy1QnGtbZ8hqGOhoaCumwF0HMr9TMO/f05RDRGg=; fh=riDu2K24rQ4nK2gcOfoNGa9wQX69e3aqYyHyPNbZw4o=; b=RTDVGMNbkgAu7u9YNG5UEA8cMd1d6nNUsjy0yxlN5N47bQluWb1PmCWr3QKcaFpbDY SiMLMg8rmLkbvJ4fMFP4Ge3/TGlNLV9lZ+keVfT7oWp6gYMAXtiHxM+JXsMVFsyyRgNL Gqo2KlqvQ00qee9RgWUKAdRydhBl3T26G6Y7P9oKq/QVeh3CBL2Ev+UXlnxOZiLIptu+ 1eAqSDnW7lgT44QTxwBcH7xMMUpJLHXFvI5fXbfi1uApgfomZr2CWzqA3uA9ycsjTWWA /IjAalWk4NLNUY6XT3cLrqojywHdGY80j3+BcA+eQ68CJQLkckw6p3EP9wvcaYfmDM0Q gJQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="nBj/g1qD"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-81980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e24-20020a62aa18000000b006e4d42c205dsi3994527pff.374.2024.02.26.09.25.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 09:25:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="nBj/g1qD"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-81980-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9D2C0B28970 for ; Mon, 26 Feb 2024 17:03:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBC6F137C50; Mon, 26 Feb 2024 16:54:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nBj/g1qD" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 E3DDB12DD89; Mon, 26 Feb 2024 16:54:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708966444; cv=none; b=Auh7ofS/97LeT03Qt45z6OqyhPke9YSLbkmk6eIwDg0sxnIaIViCy1rMBsJQQZB1CkcV6sGyiv8/0L5U6vpEUHk4TMV/QFV3BqeypfLi5I2ud54zW74HIgUhHCLc8NhfP4MXzzmRcM9uLRirIY9jiZ5mG+Z3NmQVmMGgPvlA5Lc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708966444; c=relaxed/simple; bh=ZNQwic6Q4fKlDucDcdzUqvIVEiifAuRRooU0/hV0Klk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mIyMOF0614i5W4gpeR0W7ategiLTsMaxlG43vkWOyJDZMeWd1TFbuqKmbqnz0Yz6ORBBT4M5Ma3Zlt/vz2lzeD2MhsuhgTp4LDUnUAPI0IkgTP1UstReyzvAbyK1JC3UII2CpVkOzS6Blpn0Bx/AZhmJjklqhF4UPyS/krASodw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nBj/g1qD; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-412a9a61545so2540325e9.2; Mon, 26 Feb 2024 08:54:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708966441; x=1709571241; 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=2HPPIy1QnGtbZ8hqGOhoaCumwF0HMr9TMO/f05RDRGg=; b=nBj/g1qDw7tifEhwzI+NcaSEgwMBbwDTLJKhWSSh+ZfS13CLVpd0sjstsXE3qZ7hOv N/SNswmVjXsR7/dPQ1yzhQWsdM67MtASUApQzjEs1ih7tQy0caI21VyCe7VxnQXFCd/d g7lvHioLouZlazvMK6UV5/yVHvSogcBEhoocNS9txYmQscF2jfrfynR9cJICaZS+Ilqg 6FAsKPVY0E44zhUm5Neyp7CSJecUCAbri/JfreUGeD6dZdQe3hjjQdS1Gsi5ozgD2fc3 lgSxEIcbB1emG2gV7NVFCUdHoP+KV3wGrxCzyz6x7i7QX/NISRxYuD2RPKCCdHimZIiL JHaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708966441; x=1709571241; 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=2HPPIy1QnGtbZ8hqGOhoaCumwF0HMr9TMO/f05RDRGg=; b=cXwfZGJt2IbNQTIX4uAWgo2pic/zJ9b3ZMGsv6wpivhghnnIF2uQ24kGi4/Qf7IW5B RGQVf2H+tdVQy+BbesvBNgV+0H9XEUInZbOJTu2esC7uZ5W3EWq/x4e+vFw9FglFwPhT xZFp+noafUyYu3FUMCx5/V9tCEtYRazQNQqjot8NpraNRAH8O+ZY96SkMVyQua60b9eU 1lcnRrnWV9Q5vZmACKNk6E13PfKjj2my59epU6fEsfoexdg0YlVPcKCOJMv/leSFC5Ey MeeBNRqzKGSSBUY6p6J4QUCJCkNA/tzhQm95h6bln46xcIiOFZm/CI4sx7sgKrU9zC38 ZYUQ== X-Forwarded-Encrypted: i=1; AJvYcCXukbY48VOMaeilyLDLiGdT1UJMscwbKRN491W+DXteaMNHHwAgdjD8k9ZHn3IIba1ZT8XXsGmRr0OPuiipk2Ivyr8B4eTY/cmmsPNuYhkR8P8029AfY8NKuLJmFa0kjT3g54eviwTUiH+3YrbYqSbAaxGRPAIZSxYwRhfSnuGv0AXPEBJ7Lg== X-Gm-Message-State: AOJu0YzzT/HoiUD38vM3H9Gc0AAWSCrNP+jrw1TkwKwX5jNJ9XZGBRpK Zgk3JvkhBp7XG2yEUMH2JLD9+keAzhbP1Sn1ILM3edwe7R5BmLt0 X-Received: by 2002:adf:e4c1:0:b0:33d:409b:5738 with SMTP id v1-20020adfe4c1000000b0033d409b5738mr5420964wrm.26.1708966440976; Mon, 26 Feb 2024 08:54:00 -0800 (PST) Received: from [192.168.20.170] (57657817.catv.pool.telekom.hu. [87.101.120.23]) by smtp.gmail.com with ESMTPSA id f14-20020adff98e000000b0033cf60e268fsm8792121wrr.116.2024.02.26.08.53.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Feb 2024 08:54:00 -0800 (PST) Message-ID: Date: Mon, 26 Feb 2024 17:53:57 +0100 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 1/3] clk: qcom: gcc-ipq5018: fix 'enable_reg' offset of 'gcc_gmac0_sys_clk' Content-Language: hu To: Dmitry Baryshkov Cc: Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd , Gokul Sriram Palanisamy , Varadarajan Narayanan , Sricharan Ramabadhran , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240225-gcc-ipq5018-register-fixes-v1-0-3c191404d9f0@gmail.com> <20240225-gcc-ipq5018-register-fixes-v1-1-3c191404d9f0@gmail.com> From: Gabor Juhos In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2024. 02. 25. 22:00 keltezéssel, Dmitry Baryshkov írta: > On Sun, 25 Feb 2024 at 19:33, Gabor Juhos wrote: >> >> The value of the 'enable_reg' field in the 'gcc_gmac0_sys_clk' >> clock definition seems wrong as it is greater than the >> 'max_register' value defined in the regmap configuration. >> Additionally, all other gmac specific branch clock definitions >> within the driver uses the same value both for the 'enable_reg' >> and for the 'halt_reg' fields. >> >> Due to the lack of documentation the correct value is not known. >> Looking into the downstream driver does not help either, as that >> uses the same (presumably wrong) value [1]. >> >> Nevertheless, change the 'enable_reg' field of 'gcc_gmac0_sys_clk' >> to use the value from the 'halt_reg' field so it follows the pattern >> used in other gmac clock definitions. The change is based on the >> assumption that the register layout of this clock is the same >> as the other gmac clocks. >> >> 1. https://git.codelinaro.org/clo/qsdk/oss/kernel/linux-ipq-5.4/-/blob/NHSS.QSDK.12.4.r4/drivers/clk/qcom/gcc-ipq5018.c?ref_type=heads#L1889 >> >> Fixes: e3fdbef1bab8 ("clk: qcom: Add Global Clock controller (GCC) driver for IPQ5018") >> Signed-off-by: Gabor Juhos >> --- >> drivers/clk/qcom/gcc-ipq5018.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > Reviewed-by: Dmitry Baryshkov Thank you for the review! Regards, Gabor