Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2466239rda; Wed, 25 Oct 2023 03:44:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHNQjt+tEEe5O518D/WRpFnJn9RwNMig7we8K+4Iv/m+lzSIos/hV7dq8koXCZFi2zHkneo X-Received: by 2002:a25:7905:0:b0:da0:37c8:9f00 with SMTP id u5-20020a257905000000b00da037c89f00mr4781922ybc.36.1698230680977; Wed, 25 Oct 2023 03:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698230680; cv=none; d=google.com; s=arc-20160816; b=VFC8AEm3wvaFdY97eYoJtUpTRsANk1bYNH+phF3AYAejPqfX/i0Hpe/LRpvfx/TtlZ Apm/fkhx/8xJAnkBWuOuCgjGbAts+9ig1mdbsERvMbtPsCY5J78Cv+5SpjD54mTz1sqZ 4ixsNG/NzdQ6wKwu1ajWnYXQdmnbcQd09OZAQ+8c3JZU0LbWVVt6QrbE4430IJHCFQLj Wp1wkw91MnY2d4SWwLWAYeRwaXTuUNdYJI+hrGS9e+VXue+cYmrDbOfaUOC5d6317375 Z+k2LWiyJXdhvFsOgpLfvLTMyN2A8Zk4aAIk2obwXQ58scBDKQgVXMbvSwMMDONjsZx8 aiPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=56h1JpcHvZsCRQ9iJdOKAqTAwTON7/OrDuQGdot/+iA=; fh=KIIc5/qS3nLUULpP0CHxPLXI0bq/yzCvGV28Cad7y9w=; b=rLh6Z3echkSThJeazUeMOttw6MOUDkLORF0qf6IdHebtB8aUd33SBZ+cKvpCBU/ZtZ cVKwhkT8+TxK3P3+LAHu7HVij/7EBZLWRV/uN1KX+/EOoXdU6SasGHvQCEt0OGxFOQem l+PLoY527vzNcxKkMNdmvn3zEgrAUqrW+x0J6MfAk1i/F8JtisuoNteukB5lWGngb7bn Gpd5sQtiyRgK/nlR7hXGCgV5z5n/Fr1+fWbdoOmuax4qW+fjLQLPX22vbgHhitkOWfQL hD9aqj/I6g+/VxajIQjvTbJHK/R2M0PDxd5Zaw6qH9WddFznW9YwRCmBxKiU5Q5OBDv8 ZSyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dkz9kz8E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id v191-20020a25c5c8000000b00da053ac372csi3016791ybe.369.2023.10.25.03.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 03:44:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dkz9kz8E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 85B0E806E577; Wed, 25 Oct 2023 03:44:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234661AbjJYKoV (ORCPT + 99 others); Wed, 25 Oct 2023 06:44:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234854AbjJYKnv (ORCPT ); Wed, 25 Oct 2023 06:43:51 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB9921FC3; Wed, 25 Oct 2023 03:42:58 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1c9fa869a63so36375985ad.0; Wed, 25 Oct 2023 03:42:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698230578; x=1698835378; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=56h1JpcHvZsCRQ9iJdOKAqTAwTON7/OrDuQGdot/+iA=; b=dkz9kz8ExE1YIjnXAlKwhxJ1VbCSWPRXN1QRWJZGGLN6T01hJWx5Uy6LCMBAe2zNMs XIwysCDWy0qUOjO/06kxASDSMsoTREs4v9aJgLF2i65KPgrv+PuAYGH3L+X7IGRfBt+Y 0eLY70Ju0JWd6IpQSs5jS4yBw+Yi1uY3tqkCMhZNhOrWwkH95tVA4V6/k6LGVv1vLM1y o5bVsbBFSAxpWXC7LabyvEkhrw5BqOR2TFdhQ9U3t2xBwfWankuL1bsw6f/DQU6w3aqk Fv0w73ldp+nLi52HAQ0uG7/fNZMvkPb2Ntl5Wo3nfGTb3WZa3aFdvzFxCbyA8sA307ZH uuKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698230578; x=1698835378; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=56h1JpcHvZsCRQ9iJdOKAqTAwTON7/OrDuQGdot/+iA=; b=u2lAtMM3Enk+OXqIHPskJx25JvBCoI2X6kwQxXufvLn1oZGbgv6SNvdpdnEYpsXX5l pbYQzvfxkl0ltN6dN7tc9SbtYkpQIz2oUrojuVzZ+jM+5RJg/4L9jgBBFy26aokpNDs/ 4KQbrhJ4svaJoSJArTwkIgBEQw9KqTtq5TBb7JCy/GqwRq6dSJqAZVXgPK/Q1I3c/JaA 3cRXWYuSa+vS5Vy5JXmaITwQ3LkF1vcUtELt7wgXAuV/jkuP4PXGZLe7I+O7hcbLJJO5 d3rKZqBQJbodv5HQI08memJ0HFwXqg5g0atPV/3l5BKlvaE7crGGagtRVkUfk3jaCzBD ph6w== X-Gm-Message-State: AOJu0YxWopUcTeWUqw24/UzIbxak2xSXqih6bM5R4cBm+WAM9QHsO8+w 09n9UDyrwGEwqdWwVkaOBv5YhjP8vcgVEqxgvuw= X-Received: by 2002:a17:903:6c4:b0:1bd:ca80:6fe6 with SMTP id kj4-20020a17090306c400b001bdca806fe6mr9659343plb.41.1698230577913; Wed, 25 Oct 2023 03:42:57 -0700 (PDT) MIME-Version: 1.0 References: <20231015162114.976202-1-robimarko@gmail.com> <8dce62b2-562c-4e00-840b-68e1cc865972@quicinc.com> <444ef41e-632c-4402-849d-80e8876b6e72@quicinc.com> In-Reply-To: <444ef41e-632c-4402-849d-80e8876b6e72@quicinc.com> From: Robert Marko Date: Wed, 25 Oct 2023 12:42:46 +0200 Message-ID: Subject: Re: [PATCH] clk: qcom: gcc-ipq6018: add QUP6 I2C clock To: Kathiravan Thirumoorthy Cc: Konrad Dybcio , agross@kernel.org, andersson@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 25 Oct 2023 03:44:37 -0700 (PDT) On Wed, 25 Oct 2023 at 10:42, Kathiravan Thirumoorthy wrote: > > > > On 10/21/2023 5:27 PM, Robert Marko wrote: > > On Fri, 20 Oct 2023 at 08:40, Kathiravan Thirumoorthy > > wrote: > >> > >> > >> On 10/19/2023 7:53 PM, Robert Marko wrote: > >>> On Thu, 19 Oct 2023 at 08:46, Kathiravan Thirumoorthy > >>> wrote: > >>>> > >>>> On 10/19/2023 1:59 AM, Konrad Dybcio wrote: > >>>>> > >>>>> On 10/15/23 18:20, Robert Marko wrote: > >>>>>> QUP6 I2C clock is listed in the dt bindings but it was never included in > >>>>>> the GCC driver. > >>>>>> So lets add support for it, its intentionally marked to never be > >>>>>> disabled > >>>>>> as its somehow affecting DVFS and if disabled it sometimes crashes the > >>>>>> board. > >>>>>> > >>>>>> Signed-off-by: Robert Marko > >>>>>> --- > >>>>> Bjorn, would you be able to get an idea of what could be sitting > >>>>> on that bus? > >>>>> > >>>>> Or maybe the IPQ folks could know? > >>>>> > >>>> Konrad / Robert, > >>>> > >>>> Similar to IPQ9574, RPM needs this clock to communicate with PMIC over > >>>> I2C interface. Discussion happened here[1] is pretty much applicable to > >>>> IPQ6018 as well. Based on previous experience, we may need to document > >>>> the reason for CLK_IGNORE_UNUSED in driver as well. Nevertheless, > >>>> > >>>> Reviewed-by: Kathiravan Thirumoorthy > >>> Thanks for the explanation, it makes sense as I used to control the > >>> MP5496 directly > >>> via I2C. > >>> > >>> Is it possible to disable RPM so it doesn't conflict and just use the > >>> full MP5496 driver instead? > >>> I find the RPM quite limiting as there is no way to actually retrieve > >>> the current-voltage. > >> > >> > >> Robert, checked with the team and currently we don't have any option to > >> disable the RPM as such. > > > > Thanks for checking. > > > > BTW, is there any information you could share on the USB GDSC-s? > > I tried converting them to GDSC-s like IPQ8074 has, but it seems that > > they have different features. > > It would be great to use proper GSDC support instead of manually > > setting bits during GCC probe. > > > Could you please explain the issue which you are facing? Based on quick > look at the HW documentation, seems there is no difference between > IPQ8074 and IPQ6018 GDSC-s. Thanks for checking, it seems I hit a buggy kernel version last time I tried to convert the driver to use proper GDSC-s and now it seems to work fine, I will send patches to add GDSC-s. Regards, Robert > > Thanks,