Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp401105lqh; Thu, 28 Mar 2024 05:48:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXivGK/lEvJlZ6BuzaWdP16QylxWZ0dzmPxYbvxnwiDmhlEMAMg7QbYFTiqGCS1Vgeg75bhJR4z4KeNnHEXsPpzbIY/Ss8IQDJ9pjeFyw== X-Google-Smtp-Source: AGHT+IFy35akrVamREM7UgvFlt7//AgRXUsXJxnRXzQx+yw5DSy43XbNzoxQgZOAs9MJfXL3exXj X-Received: by 2002:a17:903:2305:b0:1e0:afa0:d512 with SMTP id d5-20020a170903230500b001e0afa0d512mr2681291plh.46.1711630097544; Thu, 28 Mar 2024 05:48:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711630097; cv=pass; d=google.com; s=arc-20160816; b=ZiqvlkG3kpUj15xeH4j5OjD6JJLFDkeS5x/5S9aMrMJy+WpjOUOORXtxZU8RyYUTbr fgzmQFHViLuyBZFD3kF8+6I+ekdiCgxp5c08N8lrEg9gxL1/rqhxcaFQ4bZtEYebIYM6 KgHg5VsrQd313JCBYurq/bdoSQCkSJ/W4RDam56hJUrhrQpFN4gd8aiz1+CsjBaI9M+a gKPoqYF5J1KAAuh1BZQRQOqa0f1Cz5D1ie19k1r31YVVsvLYLU+mGHUEvExzUgy7+78O jrP11uAFzXEWuj5glmXwKJUPDvrKroATODpR1Pbllt5ASuXbjtawxiIlN6we2e1CAjI5 Kd/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=ycgLz/YdtZpr9sFj/Nde0qo6Qn0gBay7Aklp/DytJ8Q=; fh=CS0k4ui6UYEeYsrII6dGh9lFsIRuHMC70GCl1fUxj/c=; b=HdWT18JyiSzGTGAiG68JFlfVpB0mFvwS+wlO1X9rRKVq2aNSdCa/g/5imQH6VoFCBH Ffa5wKC2TVCVI5zFfT3lvjso3ahih2WNXWU84xP63AnxFgOadEy6TaxMuK2YWDEqhvlP fUJ2kiQyGiLLXaPMx1JfygJMyS9rp9okJbYvLnKearpWOmBLnHSDXoGJQcW/Rb/Kqw73 PNz+U6MUk6G5yrU73eZmI9BKU+HTBwFrZ5XEv4Jy5yWo5FRbc9gTLvORL33fGNQab2Hn gScE1Jzd5TmzekO56x1nTZ98kMHbgdAzs8MhOm02MBZ734wrKxSyyHpwfG8+q1fjXMFT V7KQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r53d+Dai; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-122917-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id c18-20020a170902d49200b001e009bd74f3si1418563plg.16.2024.03.28.05.48.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 05:48:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122917-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r53d+Dai; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-122917-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122917-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 3306BB2301D for ; Thu, 28 Mar 2024 12:44:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E0B47EF0F; Thu, 28 Mar 2024 12:44:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="r53d+Dai" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 D1C457EF13 for ; Thu, 28 Mar 2024 12:44:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711629859; cv=none; b=EaoqyFb++XKpkrBLgab3uufe7e/Y/op0Y5TukkHlQSQ+lBVt3l8HVAW94zlpQsUCW3ynTupH90tApsKaKu/XglvkDA1aVwLaSGitS/mGZBxE/pB58WCpsFWUFsrVMibkt2C60OqCbIBzg2yLJ0qEXAfHCsEGyQy85YdN3eROeRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711629859; c=relaxed/simple; bh=ycgLz/YdtZpr9sFj/Nde0qo6Qn0gBay7Aklp/DytJ8Q=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=VS3OzBWv9grIC88WJDdx7Hc7c+pl3Wgj7ha3z7dDrPc1W/mIO2l7FkyYMLiNMSkzAZ7mxqkCLfKPxa1W3+Gv+QxkAvV23K9ES4875Uw+/VzbPkajht9C8rj/pZwY/vIcI8Xwi+BJLRJ08+Rs11Ztp2LZ5vUmexwsw5VkzguQ5Kk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=r53d+Dai; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4141156f245so6459115e9.2 for ; Thu, 28 Mar 2024 05:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711629856; x=1712234656; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=ycgLz/YdtZpr9sFj/Nde0qo6Qn0gBay7Aklp/DytJ8Q=; b=r53d+DaiQBMLUojPhnMceneCXCd4ksEZ39YVnZsD4YUVTl2aKJiYCFXyf0iuQnIm4g 3wE7YN8AtIsiIbb1qqPlSYdrY2nUpZPq9z0Eo5mhnFQV5lcn114I2Az91/7BFoXGgbfh RC2+ypZnQEDrT5ReTYkKUKsdF92DQAe0UzVnGdh3ieJkSjyilIGAOckpI0258xKAhOag Mi2LRKRD9BUiY4L86trO65lnRHtVfv+ihhxpR1lhyGMk06T6e+K/pJ3AmWndWSYJCx0a 4tQCfhJhVsDsJxINzX06W96AJ3HVX/TVCjKmYQOw/WE8/ZiaS/NJm2XXcnG28+5DGqFW fIwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711629856; x=1712234656; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ycgLz/YdtZpr9sFj/Nde0qo6Qn0gBay7Aklp/DytJ8Q=; b=bzpeCc08DwdPfdHGFPiLbFkPdnGv4FX2EbRVZrukpVAJqQWkh/l+B9hXxGfud+qqMo VW0nQEhXwfu6M0fXnIkvjFIKpoBD0CHq2Nelrj8nTkb3Pz8/T0SrrsDWIlr1TUfuTn4V gsO11OH6YwjOPMKi/uBO2FNWja9frhHbFh0FVHSlt73I1OteC/npdSk7jLTNsRShJNUb BHNPpx4SkANKS5LOa//UULO9MtzrHKhCOrzU6BQUljYPMwkZGgAzt7LTPlYguFP9dt15 osLyHXNy525Xhgfia0BkJrgSumJKfp+4gyStTXo5QSZTP70CkljlGKbfbSYTJEOhYIRf 27tA== X-Forwarded-Encrypted: i=1; AJvYcCXOW45UUPu+sXW1liJELu+yp+sN36ih9iwqPFGNFQ2c+quLv3fLTyZvMuQTkxoR4svjMr8OFieZ2a2bqUU10fcDW4DO8Nrf23HGWs7o X-Gm-Message-State: AOJu0YwNRJDz8xSmyqw7WnhffmrYUrLrsPIbU40MtItniQMyaW/Z1hlq WKUoLzTygKeWVJ+EYsimDxbNzoytsN7ox84ZiRY+U6gglofW5ejyYdxNHF72D0k= X-Received: by 2002:a05:600c:5250:b0:414:d8f:4399 with SMTP id fc16-20020a05600c525000b004140d8f4399mr2353378wmb.18.1711629856206; Thu, 28 Mar 2024 05:44:16 -0700 (PDT) Received: from draszik.lan ([80.111.64.44]) by smtp.gmail.com with ESMTPSA id ay34-20020a05600c1e2200b004149315600fsm5392316wmb.7.2024.03.28.05.44.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 05:44:15 -0700 (PDT) Message-ID: <2125e654f89ee8c709a48c8e46956ef7645b9d2d.camel@linaro.org> Subject: Re: [PATCH v3 1/3] clk: samsung: introduce nMUX for MUX clks that can reparented From: =?ISO-8859-1?Q?Andr=E9?= Draszik To: Tudor Ambarus , peter.griffin@linaro.org, krzysztof.kozlowski@linaro.org Cc: alim.akhtar@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, willmcvicker@google.com, kernel-team@android.com, s.nawrocki@samsung.com, cw00.choi@samsung.com, mturquette@baylibre.com, sboyd@kernel.org, semen.protsenko@linaro.org, linux-clk@vger.kernel.org, jaewon02.kim@samsung.com Date: Thu, 28 Mar 2024 12:44:14 +0000 In-Reply-To: <20240328123440.1387823-2-tudor.ambarus@linaro.org> References: <20240328123440.1387823-1-tudor.ambarus@linaro.org> <20240328123440.1387823-2-tudor.ambarus@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.2-1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Thu, 2024-03-28 at 12:34 +0000, Tudor Ambarus wrote: > All samsung MUX clocks that are defined with MUX() set the > CLK_SET_RATE_NO_REPARENT flag in __MUX(), which prevents MUXes to be > reparented during clk_set_rate(). >=20 > Introduce nMUX() for MUX clocks that can be reparented on clock rate > change. "nMUX" comes from "n-to-1 selector", hopefully emphasising that > the selector can change on clock rate changes. Ideally MUX/MUX_F() > should change to not have the CLK_SET_RATE_NO_REPARENT flag set by > default, and all their users to be updated to add the flag back > (like in the case of DIV and GATE). But this is a very intrusive change > and because for now only GS101 allows MUX reparenting on clock rate > change, stick with nMUX(). >=20 > One user of nMUX() will be GS101. GS101 defines MUX clocks that > are dedicated for each instance of an IP (see MUX USI). The reparenting > of these MUX clocks will not affect other instances of the same IP or > different IPs altogether. >=20 > Signed-off-by: Tudor Ambarus Reviewed-by: Andr=C3=A9 Draszik