Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp987399rdb; Fri, 19 Jan 2024 05:05:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0LyK+kiPmfobjHTAQk5+iwL0eZC+c1Fx2qlold5UFh5AUwQKpB5mTk7nRPoAbrgvLKLLs X-Received: by 2002:a17:903:2343:b0:1d6:f5b5:8b34 with SMTP id c3-20020a170903234300b001d6f5b58b34mr2125454plh.84.1705669556099; Fri, 19 Jan 2024 05:05:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705669556; cv=pass; d=google.com; s=arc-20160816; b=Lia6s+Ro60SUZ0oOvEgnwbf2iWfkEPXNSU2tyi1YVpxegJJUHPm2Sq6WRqCSkQtVeV SZX0eV0oaUrc6gRIu2Pwo/aot4U6os27V557sXz4U+kGZFjWkUXPhgsgSkMkXXs8GDYO PtMu+W9QvLUzhaWtnIeOSBheU3I6M64oOVf0Fhhh33KPtpHUKASUZrNc6MOygmwKt9N7 mxTLfBx5JZFMAW3mle0gUzWujxlAKC4STXFAP7a0DEsd2JuYRKM+qzC3BCcohq+3NMBZ 41jIhcaOfMooLsz7zKQrOcmaeJBIyEGD6V0hikycEfrtwvKXXkleZ2gXz2yb3OwFNTy+ X3Wg== 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=hFT1caunJL2bjnoz3k5PNtNB8wm9Pwof23zyHAFtsu4=; fh=bSkNxDcFCCZBWDb5BUpUDYYAOwLhbqTDFglsIYWu8Q8=; b=vyltMdoSeV9bpdoA8Osfpuzq2Mhfw6/dgS7Zdo/JpzSiNVHSKoTRdPzg3mT91KjiZd qdY+IsS3XeYBHjcTXGso6K5aHyrwlDNByBZr4LGFx/IzYpu3fJAn4RyUI7oKbqIshEdZ TRjiF/lfizRTOfXelvsjKx05HHJg54iVsnG+l022wQSh6VtnaJ261LnkzDJb7L1l8wMJ 3/mYvkmCgRK1kWSbTaIRiEAvmpXS6Pmr9A2uff2Rv1IgUMwjgjbvW/LwPHH5+FTA8KmR mNTHv6kh/Lg3bMng8lqIcYxU80pj++dMdP7R9VDENGqH+Hf2f4JPdtyzWg772lMWoWjT Lg4w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@8devices.com header.s=8devices header.b=AsKf3Qf+; arc=pass (i=1 spf=pass spfdomain=8devices.com dkim=pass dkdomain=8devices.com dmarc=pass fromdomain=8devices.com); spf=pass (google.com: domain of linux-kernel+bounces-31170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31170-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=8devices.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y14-20020a1709027c8e00b001d58d341dd7si3233648pll.122.2024.01.19.05.05.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:05:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31170-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=@8devices.com header.s=8devices header.b=AsKf3Qf+; arc=pass (i=1 spf=pass spfdomain=8devices.com dkim=pass dkdomain=8devices.com dmarc=pass fromdomain=8devices.com); spf=pass (google.com: domain of linux-kernel+bounces-31170-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31170-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=8devices.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3710128426C for ; Fri, 19 Jan 2024 13:05:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71C29524B4; Fri, 19 Jan 2024 13:05:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=8devices.com header.i=@8devices.com header.b="AsKf3Qf+" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.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 44BD03C470 for ; Fri, 19 Jan 2024 13:05:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705669548; cv=none; b=t9Po19Wa+//fTf9PXk09Flf25knLl8AveOS2kuabIYs3DLYfyamdCnKUH8jZJlI7prV0mcg8e7AdgtGa5Mv3f3B0Jk5JUbBou14E8A2q7sRYWEcYvhOtwr2+NeRObhIcNT5m2GjKO9QWJfkm4Bzxk372djzRReDWTBtvYAaTIec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705669548; c=relaxed/simple; bh=T3lgeBprbO2ncEnbB/0Iwitj/QDiDU/VqFEnkGf35mA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=raBVyRqMJVxOQNLN3ZbyqnPlj8bTe5H++o7lw2Oxw48RHwkdK083GGvSKmDOncnwxIMP55mcsAqkZ9yFbTQT5HcLkY48nzVc1omqD5OjLgdriA97V4z/y93PHbldYKsfQ1iddXD81HofthEGGoo+NOraJ2SdlaLOrRmKdMJZnOA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=8devices.com; spf=pass smtp.mailfrom=8devices.com; dkim=pass (2048-bit key) header.d=8devices.com header.i=@8devices.com header.b=AsKf3Qf+; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=8devices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=8devices.com Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-55a5e7fa471so552434a12.1 for ; Fri, 19 Jan 2024 05:05:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8devices.com; s=8devices; t=1705669544; x=1706274344; 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=hFT1caunJL2bjnoz3k5PNtNB8wm9Pwof23zyHAFtsu4=; b=AsKf3Qf+inNV8NbN2puLEss3HIput0h3qsxTClUX77onxpuIZBwkcLURR7M40hTUHT lzvFlqBK9gxylNCnNFnfhq0KyPy2SmprR2CI9um0nyP5KGp2vX+Nw4DcucjoHgtcQPKI 1kyPJOBkY13ApRCFcjAiWtZUhQgkkoq/Ck4GAulvLBYJaui/dtahrjFfUoLjE+usjaUD QlJYU+585VCd22xwiKEELaEEqL5cULplBd7Q/Xo9gORkXclQg/ZNaDOHAllAFA2l8CIe UjoK1fnw6CwBG6yc1EqMGlReKvCyVOKJuqjpOGR5ZlILm7yzo4d+WJmZ970BbOvkjn8m Kl9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705669544; x=1706274344; 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=hFT1caunJL2bjnoz3k5PNtNB8wm9Pwof23zyHAFtsu4=; b=rVqYhrpArNNzXA9WMODk/3+khHCKq+R7vszcvKRNJhqZ/o48SH9k1i7MJaQykOyEYr KbUqiJZ336VDcWwSs7oUW+M7ZXFYg/+LSIYHsK9kUpdM4DtH6YTUKLA+w+oqxIRp0MZX 7djFrsfXETkQnm4DhiC5IqA6oBydUP+GpQdenZZd5Luvs5xUajH+7Mr/75Xsz2TBvjlu mVPtSd7HTPQgB4DAhrjZGYGr4sxCuqFUQyQOsH3WlmcM4gcFoVb7Lp9nAUZRrQXd1lOq N2kxelo10yZXLNi+kWyPlpg2bEm75S0GOg1Fg/13nKDpiLkcjh3+GOAVhPElZelP2Mng e9Kg== X-Gm-Message-State: AOJu0YzmujiJj4o4onbvRDet5nk/S172rrC3ulkc4MPOLLb/hCCNM7Fp 2x0HCWWh3I9w9YUAKes8eyV94mxPnQ/MyBMGX+2AcVDnpbwWSO+yG+Qtr9fDnug= X-Received: by 2002:aa7:c0ce:0:b0:553:5577:dd52 with SMTP id j14-20020aa7c0ce000000b005535577dd52mr1349931edp.81.1705669544444; Fri, 19 Jan 2024 05:05:44 -0800 (PST) Received: from [192.168.2.155] (78-62-132-154.static.zebra.lt. [78.62.132.154]) by smtp.gmail.com with ESMTPSA id u11-20020a056402110b00b00558aa40f914sm10459377edv.40.2024.01.19.05.05.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Jan 2024 05:05:44 -0800 (PST) Message-ID: Date: Fri, 19 Jan 2024 15:05:43 +0200 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: qcom: gcc-ipq6018: add qdss_at clock needed for wifi operation Content-Language: en-US To: Konrad Dybcio , Bjorn Andersson , Michael Turquette , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org References: <1705486629-25592-1-git-send-email-mantas@8devices.com> <9b78a7c3-dea9-4d9c-bfd9-13d819d68890@linaro.org> From: Mantas Pucka In-Reply-To: <9b78a7c3-dea9-4d9c-bfd9-13d819d68890@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 2024-01-18 19:48, Konrad Dybcio wrote: > On 1/17/24 11:17, Mantas Pucka wrote: >> Without it system hangs upon wifi firmware load. Bindings already exist >> for it, so add it based on vendor code. >> >> Signed-off-by: Mantas Pucka >> --- >>   drivers/clk/qcom/gcc-ipq6018.c | 17 +++++++++++++++++ >>   1 file changed, 17 insertions(+) >> >> diff --git a/drivers/clk/qcom/gcc-ipq6018.c >> b/drivers/clk/qcom/gcc-ipq6018.c >> index b366912cd648..7cdaf7751566 100644 >> --- a/drivers/clk/qcom/gcc-ipq6018.c >> +++ b/drivers/clk/qcom/gcc-ipq6018.c >> @@ -3522,6 +3522,22 @@ static struct clk_branch gcc_prng_ahb_clk = { >>       }, >>   }; >>   +static struct clk_branch gcc_qdss_at_clk = { > > Hm, QDSS stands for something something Qualcomm Debug SubSystem > if I recall correctly, so coresight and friends.. Are you sure > it's necessary? > That's rather strange dependency, I agree. Yet, even manually disabling this clock before wifi driver load would cause failure. On the other hand, disabling it while wifi is already operational seems to cause no trouble. So it follows that clock is only required during wifi startup. Since wifi FW loading is done through SCM call, maybe this could be a Qcom TZ firmware requirement. >> +    .halt_reg = 0x29024, >> +    .clkr = { >> +        .enable_reg = 0x29024, >> +        .enable_mask = BIT(0), >> +        .hw.init = &(struct clk_init_data){ >> +            .name = "gcc_qdss_at_clk", >> +            .parent_hws = (const struct clk_hw *[]){ >> +                &qdss_at_clk_src.clkr.hw }, >> +            .num_parents = 1, >> +            .flags = CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, > > Does it need to be enabled 24/7, or can it be attached to the wifi > device? > In fact, attaching to wifi remoteproc seem to work fine. I'll send v2 without CLK_IS_CRITICAL if all else is OK. Mantas