Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp891746pxb; Wed, 3 Nov 2021 14:16:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWHYc/RABiA9K73KevOs5KuskKQdCk82LsF6WxkZTUDdM91+GUEX1cwyNTypUI2qVvlizc X-Received: by 2002:a17:906:b29a:: with SMTP id q26mr39122103ejz.262.1635974193979; Wed, 03 Nov 2021 14:16:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635974193; cv=none; d=google.com; s=arc-20160816; b=hpvML3OMNCLTzjPh5loMiJ68oysXtgitczrTL6Y1dcspTSSipD9fccklOOM/vlZiip dWgsK3MYVI06pi3C4CkhNCBK0nwt0/7yVsj/Fcd3//ThJKX3wZUBtFi/PRzxL8IS9GPA DMhQjeGXNbcV4T6jvMxD2GYUiRBBokpnm9oYPNV9IwX4tX4VpG1qArjvuiKFBLxe67B5 hEert7H4JIVYYDAJclC4RoujgWuDBiJ7OufAZd7zXmRrkPfy93p6z9toqVvuFtmdP78t att5mC5kE93L8GMcHHLcsPdobPeunz4U2gtSRW2ihElB79Y3ugtkeZGScsJpNecPypwX Lebg== 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=qTUaMxsJMGNeazWvO7/OQ8xtaQLlSaqiemGWBJDhd2A=; b=HuG9LY+H3b8xp+0VBjNOS7LM/NDnJ4ZxMBXKxaU8/quP4GEW1l/eJJe/2LJfRfx7MH JNqPlNnfhCu0NwU/5q/RYXsklo+AQ/QecUTeUpoj6BZJDtLTC/gTKW/E4gnRFLnbxeUG y0rI4wmixCMK1UWuaJ/0tWdWI9aAJpWMizeySnSBcrsmiRQUP7IQ+5ytKYIUmKLNEIZL wLwgMdj5T1LRB8pT5NMNmk0EBYWYN++uY9lX8Xn+GJl2uCC9r/H6+tg3A2BMvyjQNbMy vmbb2h9lVQSeInzBPsmjhxvjmQlGaazT+CzZ12nm5vTpwuxGmQ6Vb6nW+SRnt/vDe7oS l2Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=HykZx+Hd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z4si5680866edc.553.2021.11.03.14.15.26; Wed, 03 Nov 2021 14:16:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=HykZx+Hd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbhKCVQS (ORCPT + 99 others); Wed, 3 Nov 2021 17:16:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbhKCVQS (ORCPT ); Wed, 3 Nov 2021 17:16:18 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F3BAC061714; Wed, 3 Nov 2021 14:13:41 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id f4so13858561edx.12; Wed, 03 Nov 2021 14:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qTUaMxsJMGNeazWvO7/OQ8xtaQLlSaqiemGWBJDhd2A=; b=HykZx+HdVjivDNlo3vODAh2ZD8GYrMym8EG8ZWJ6LuM/XH1W7qTRgeXMREoQCccm1E +qEaXy3hEkLljqeOXuI74nc4aFLghGcLBYToz9VtdqiDeTeRzNmuFLO4nAs6DPyfGYSx qwvNhG9IBkeRP8plNyQ6ARfs+h+zJ8CPk4SlulyB1ayiSa+LXo2NfLPBoX1PL+adBFax vtUmYU6DXUsrlvdZQvEjIgjXdmAjfiJSR1ZP9lyRMj3/zmM+jmKIQeW9mU0pAn2l/5z9 e8xkolY9FdLE7CYowikzx6qakXk6VRZNoP94OcO9H7GyN0pbBLCT4xd8pm13jnsQ11Ol Fitw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qTUaMxsJMGNeazWvO7/OQ8xtaQLlSaqiemGWBJDhd2A=; b=UChvTRuiopROVJSvJR8lsVNjQbR5gmq5uo2WIPCX0IgwlP9wXOqrUppqWLKaV6v5Xq b0H9yv4Dsrl1oWY1qpxCCiLy6dyZOgUr7wH2nnbzjj9BxVvJy6u0381D2HQEEkPnsRjb C4Mv2T+Bvz/1T1l9UH6iUHsfXNKu8KKgjtPHvTQFPpJCRkk8ecI5qs5ZiUreoDJMsCXV xdcKSTRjcC5ueB0SrGCFUFB29s+2fRDYkB/6O2pzOrCVBpGkRQZnkgJCTbx0SEMerHpr o+JJg3g4MLwnwh4f0s+NqjAl71fS+zVk8ZZaZtZv4iKwqoP6Vu0Q+N1hU6X5mkUhhi5f IhRw== X-Gm-Message-State: AOAM532SaO3X6EgHIPm6Ajf+PNbNXtOXOaNxM5rbtrFYG4m8fsR3kqkK QKK3N2mvtWE8s7F0aLSndW5NQeUlkviWRlR5xIfIkGUXJtk= X-Received: by 2002:a50:8e44:: with SMTP id 4mr5086537edx.45.1635974019583; Wed, 03 Nov 2021 14:13:39 -0700 (PDT) MIME-Version: 1.0 References: <20211103122441.3208576-1-alexander.stein@ew.tq-group.com> In-Reply-To: <20211103122441.3208576-1-alexander.stein@ew.tq-group.com> From: Martin Blumenstingl Date: Wed, 3 Nov 2021 22:13:28 +0100 Message-ID: Subject: Re: [PATCH 1/1] clk: composite: Fix 'switching' to same clock To: Alexander Stein Cc: Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Alex Bee , Chen-Yu Tsai Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexander, On Wed, Nov 3, 2021 at 1:24 PM Alexander Stein wrote: > > During commit 6594988fd625 ("clk: composite: Use rate_ops.determine_rate > when also a mux is available") setting req->best_parent_hw got lost, > so best_parent_hw stays NULL during switch to the same parent. This > results in the (debug) message: > clk_calc_new_rates: lcdif_pixel not gated but wants to reparent > and the following rate change is dropped. Thanks for investigating and fixing this! note to myself: only clocks with CLK_SET_RATE_NO_REPARENT are affected. This might be the reason why it wasn't spotted on Rockchip SoCs (yet). I have Cc'ed Alex and Chen-Yu in case they're investigating breakage on Rockchip SoCs with linux-next > Fixes: 6594988fd625 ("clk: composite: Use rate_ops.determine_rate when also a mux is available") > Signed-off-by: Alexander Stein Reviewed-by: Martin Blumenstingl Best regards, Martin