From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37C553D331D for ; Wed, 5 Aug 2026 23:15:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785971712; cv=none; b=hzq2UTrzQ5rAb0Z/CBZHW335kXLW175WMOAo0z0vZ+yrTPEjMYsWAJIuFB0PNHHqlUzvxFdwxmvsY1v0lifS4x5FBsvT/OVnrD4qrVW43b0BlfHanlijUuvRG/lvCip9y3CcyTwIMgeT2S7KY5fA++YEBxSzyjNPOKGKAmIlO/8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785971712; c=relaxed/simple; bh=pPy1CLEmf7LQ7+VRVpU1PtPWWfqP1ERTf8ceNSl1ajA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GwcDXY/jVnm2jMdMCerIebHOFIMWvaJte/dQF699kTG8s+30PMcu8wf9XX7MAShEhJ8G7cLCq5V9p5cHm7RN6MBj1lw+hn7u88qXnvBfZRPBx3vm7E3sabV/JD1bT002toKXjkNKnTXtJ+aTakcmxq7gosGmZYHuskOjl0wZ5KU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=N/oOBORM; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=F8Jo17SD; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="N/oOBORM"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="F8Jo17SD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1785971710; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jX93A5wJoAu0JKunu6l9UvEvI322kw4iodDAJblYaVI=; b=N/oOBORM4PlQmbm597RKRqYlJBIIN5Ur9+XKAuOJgSGryOTmssuX1hEIClWZXf2bAI9XWm e0a6KvcuBKjjuJMRmOl90DZQnKrSk4bJY3MYOnZB+Rjte9rt/iCaQ3ezNtL18xXvVR7FtD pV1uYQzeoqGiQQLopY6cFD7ujm9hUJY= Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-596-oPEiV580Pue4MYeRm2_VLg-1; Wed, 05 Aug 2026 19:15:09 -0400 X-MC-Unique: oPEiV580Pue4MYeRm2_VLg-1 X-Mimecast-MFC-AGG-ID: oPEiV580Pue4MYeRm2_VLg_1785971708 Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-81df8abfa7eso40153467b3.0 for ; Wed, 05 Aug 2026 16:15:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1785971708; x=1786576508; darn=vger.kernel.org; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:content-type:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=jX93A5wJoAu0JKunu6l9UvEvI322kw4iodDAJblYaVI=; b=F8Jo17SDBJ9LGkb3UFsUAzLadXVbtuk8yVWoTH7FeT2k3a1gvxnyMk5oHOehOsJOxM WJ/VQHKueUebSVx/JFRVpNvsbu4iPpAldG5IDpCJX9Q21cb70qW6vn1zNG5Zq/ZWKmQ4 DrdBB2eJkQfhqEPddS+ZDcYw+2/urpYSp9UerrDTr5651AGmPLiB3gVdkq9IuXWRLJoi zCWyZD2swSgyersBHuQ2EJ7bd22Tt4Jw2BFaJ//iWJzDa1NZsq3ussKTHIoc9egR+gvo iuJeH9S/48PncBYzzVkxf1kd4FLn5dJwimUN+AgdJSdroqevErY5mOtgExtQVCePKS0F dD7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785971708; x=1786576508; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:content-type:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=jX93A5wJoAu0JKunu6l9UvEvI322kw4iodDAJblYaVI=; b=Al5hfmR7vjNG2HdN2i1w9H4Kwz3vYavNsC9lOkvB7m4O7w3ZQ8C7hA6ojqp4BQsndA KTbUnhjN2doQl4HRhQwwwD7eIB7mVhSJbr2LI2Wfi1SUDlC52Hrv5GSb9D1AmugWvW6e Q4iVHTR7unZKQMkX1KsZ+d52eV6HiroTHGb6jETitEL65h7uqqlKPU8dn1wYElJ886EO hkzsV6QoTC1ayIbF9oN9/Q14iSjsDFpqynpoYhEAkVMxeGWmuwXNqNSFkOq33f3IrfJ7 OCv8Hlyd1XznPKcvnXz0IUsEuinw3iUYOmftGz24r5Xm5Ixa1EJYZk1Gjr5ijoajNZdS JguQ== X-Forwarded-Encrypted: i=1; AHgh+RoE3DpdBfkNHt4HkEKSnMuzjfAyy/I5746oecbmDtIlZHpmoT7DNCygQzPltlsG2sJmfYbPUY5lpP/lZsU=@vger.kernel.org X-Gm-Message-State: AOJu0YwRYckYIo+rYWDBmiHBJBzvWqemV4CW/Mw6lud/zL8AxflxKunl +HWVUl2Cx4KMfP8lzMJ0CjQDvZF67K/KQlqH3gnivmiA0P/+XVHqUvQx9IdoyZBmvVal2+4a8ip Ky+4YPPKULyJMPEM1UGvMtt9qu5eP2VaXufDqYBN3Qn8cutJXLQOa6OMXL2bYl843kg== X-Gm-Gg: AR+sD13PcZ3k/TRIWUy95L2gzjvXGAAYPKgA5eObDLKaoYfO09tbfith1q10DsVBrk1 +qZmpfipetCH1ylUKv1nmixvI6n0ne9olikhlS4+E7sgMki8COcZAa9JJPBC6dd+CunC/eLrfdI dSMql4/H1z4IGeIl2lIdAqk7tuoFowmkbTeG+erPfMNu8dmYnWQtt+YrYn/2iaBN4mJEOre80De U58WLQpveedx6KOpLcWUYJRdBWe23qv/AOFsiYIy9u/Xw7KbukZHM02I2Lqs1jFfaILXedG/2wt bxMRX/bYnHO0hXCdyq0KNeQRtzxtftbXY5Wl9KJHndVS48yWTJ8YMGhG75E3buj8GCjCxzUDUwm DVm4leQREwp+m4w/kVeiwMCNALYEm0731pH8= X-Received: by 2002:a05:690c:4882:b0:80d:c9d9:e1a9 with SMTP id 00721157ae682-820229a0978mr60602477b3.27.1785971708331; Wed, 05 Aug 2026 16:15:08 -0700 (PDT) X-Received: by 2002:a05:690c:4882:b0:80d:c9d9:e1a9 with SMTP id 00721157ae682-820229a0978mr60601867b3.27.1785971707809; Wed, 05 Aug 2026 16:15:07 -0700 (PDT) Received: from redhat.com (c-73-183-53-213.hsd1.pa.comcast.net. [73.183.53.213]) by smtp.gmail.com with ESMTPSA id 00721157ae682-820134a9e21sm29018917b3.42.2026.08.05.16.15.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2026 16:15:07 -0700 (PDT) Date: Wed, 5 Aug 2026 19:15:04 -0400 From: Brian Masney To: Stefan =?iso-8859-1?Q?D=F6singer?= Cc: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Vinod Koul , Neil Armstrong , Russell King , Lee Jones , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, mfd@lists.linux.dev Subject: Re: [PATCH v9 05/12] clk: zte: Add Clock registration infrastructure Message-ID: References: <20260802-zx29clk-v9-0-d05530d85d28@gmail.com> <20260802-zx29clk-v9-5-d05530d85d28@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.4.0 (2026-06-19) Hi Stefan, On Mon, Aug 03, 2026 at 08:48:18PM +0300, Stefan Dösinger wrote: > I have a long-standing question about tristate/module support for drivers like > this: I don't think the driver can realistically be unloaded. I have been > testing driver unloading by removing the UART clocks from the DT (otherwise > the clock driver is busy) and marking all clocks critical (otherwise > unloading/unbinding will shut down the UART (and more) and lock me out of the > system). > > I have made it tristate because from early research into clock driver state of > the art I gathered it was desired, even for drivers necessary for fundamental > operation [0]. Did I understand this correctly? It also uncovered some linking > errors that weren't obvious when compiling the driver into the kernel. Leave it as a tristate since that's how most clk drivers are built. Also think about this from the standpoint from the perspective of a generic distro like Fedora or Debian. Support for lots of SoCs will be enabled in the kernel configuration. Some SoCs that may be deemed to be not as popular for that distro may have their clk drivers compiled as modules. (We at least do that in Fedora -- can't speak to Debian.) That way they are available if needed, however the generic kernel image doesn't have a huge number of built in clk drivers. Some more popular SoCs where the distro may run will have these drivers set to built in to help with boot speed. Brian