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 AFFB335AC33 for ; Thu, 23 Apr 2026 15:37:07 +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=1776958628; cv=none; b=dq2OKmkumv1pjNK45bLb/oJkKA4/9Cn/5ud7DYFX/PoOJIV/eaxMMWiDdKetHtf4H5ocr75N7J/ChaTo5psnSNyJeikfx6SKgKc4Lsjoq1LPq4WIhk3Lb3hKLe1Dq7F1s5rkUd0aJ6FinJ3sb+biEBUa02+g6Djrof9gkSV4h6w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776958628; c=relaxed/simple; bh=FxeWSHojL9I2hjnDP74oJjigeNvPpCt587ys1nSqs4o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=WCeMS2Mw+89+nuMmM/JKPQmrmA5l1gBj+2sqwEzw3zspXkqKDuRHHsjl6t2VDPvyiYLgH/cjjOwprny+5RXt9SwX9iVeCSCmX56g7US8hRIv8MpC4EXPZrby9+J4+IOQsycPVqnbiZ3udcj2xK1dgy9+6z1pcLqbVSFeTmhk/NI= 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=CIj3MDwG; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=FUwkUEIr; 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="CIj3MDwG"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="FUwkUEIr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1776958626; 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: in-reply-to:in-reply-to:references:references; bh=Gw+/sVmfB0haxvhnd2I+rhbcypsN/pcDpOnZUNWDrB0=; b=CIj3MDwGNgaXgOj2Lz6lLrJgfVMFhkVErOOoWMqjNm418O6KvWcKbzODNSSI73MIGcgnth 2x3yvxMEO1QbphVsKeCjWtYQwWOVDmhSWhVVyQO4EIkwhK9EwVbBzHgX5oUcxnIWAI031Q mOtgbRUhGo0A0j39yPOCqa0FTi+yJ2g= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-306-WpgzyGqsPWWGITn9upz1PQ-1; Thu, 23 Apr 2026 11:37:05 -0400 X-MC-Unique: WpgzyGqsPWWGITn9upz1PQ-1 X-Mimecast-MFC-AGG-ID: WpgzyGqsPWWGITn9upz1PQ_1776958625 Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-50fae95c82cso55416911cf.2 for ; Thu, 23 Apr 2026 08:37:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1776958625; x=1777563425; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Gw+/sVmfB0haxvhnd2I+rhbcypsN/pcDpOnZUNWDrB0=; b=FUwkUEIrfRZteYq8QTVHC8f+bWdI5CetWe9q40aKmF3wsnecnu8A3geFSBkSQZYNjd x1nMJapPTE4NTxj4rSueiG1kH1JbmAq8UtMHOS+UL5ZHmWYXWjSzX/mLSs32YrR8vKv8 rqBSmWRZebaQGYxLOuiZXJASfzVKqxLLrHPJk85J9rFml0EkGj5N1LhA0qv+CvKmpjPU XPfHL0zy1qy2f71NzOrsBP7Sci18EtaUwUhgS/2mAcnj6r8A7yfxuh6vhkZdDaH8erB5 aDeRrf6fTse1br+AjOxA8w+Tjhmk/KddmY2oZd27dkscuMpBtpmLQbOXaet8CxtEOttb xK4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776958625; x=1777563425; h=user-agent:in-reply-to:content-disposition: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; bh=Gw+/sVmfB0haxvhnd2I+rhbcypsN/pcDpOnZUNWDrB0=; b=e/4iXmbGu6uLqtcofbmSVPXeC/HUQZlEc+IYTaMLfwsswQcZtCsL7vJYn7E77Zrxc0 yLxWn1gE9e5R9C9Eo0mG4E2V9KPVk3/qMvQdlmyP5jNFfs1jRZliMVKGcpNDUvK4uS2O CvZ841p0iJd5I6m56Emxnxj/RT4Szz1xYxOKWbZA7BTi6B2O2w6SlRnaZtLb390Et6GL FA0gP8QCXKNIicdS7p7nkpkn+uh9UAE82ETxmUAvEcFRHfqrwSRISr+vCJDv1oSdjwyo uuNDkTbM9za2ExuI0IBqiQUmxhfZxYuhWKxW+UA5D4qTf3X3foCSqxOzKmURg1yCHAgF 2rZA== X-Forwarded-Encrypted: i=1; AFNElJ9dYaULQKfXWvn/Qpt16sH1FNa0xEbFRJ56aP12M7mtvpTHtdho8D0PScNbPOBoPL34ClGnC8WLinasXBg=@vger.kernel.org X-Gm-Message-State: AOJu0YztxTgEtXdQHgG4f87sM749Cz97Jf8Lh3L5Ejjqd09WgZH4dios TY+pFVEDuWNIXjMX+TqAdDj0HbOH08rkkZ7kPtyJiVsbjRLSMVVrydPbfXCHZkguX8Erustc4Vp 7QmKWAmFOCM6ahNp3jJrxF9PUuKtjn05LvnBLAJfLwa+fgnfMLTNpTiGk6PezzWKWhA== X-Gm-Gg: AeBDietioPARilWProjrWL9+p8qAQ/CuvkxGcB93G3mI3TsL6mqGVF1g21TyrpvnveI Dfiv9Ir5FfM+qRgwZy8WiwIFJ0ti8o4dhUJ7E/qag7nVLSa55BTNRPt/2DtDjcIxNZ/3OaEtVwj nzD/p3QHEkhJxEolIatDl8CFERQ24D+DMlkpytie712ogLzWXkrbksy1rqm8g4x3FAcqrdiDcX6 NvUaXsa/BwnZCAzInGgOo8rXMTSj+fC5iprPpOHUdlDHIgaZpmxmP1sjthG96K1CeLkmZpSvWh9 lh/vfV8b0sKndbeu2YFMSqusLe+buCHX81Y0BkeaRNNb0v6h7VPc7k0HO4KK/BPW1/V0weS59/u ZSvC0WpiFNibmrZqRfDg9W54MIdG4hS6DRHrrcJ9ssRTd4kjB3YtadJqvCQJLratoW/U= X-Received: by 2002:ac8:5e48:0:b0:50d:af3a:d8ed with SMTP id d75a77b69052e-50e36c495a7mr404228201cf.41.1776958625021; Thu, 23 Apr 2026 08:37:05 -0700 (PDT) X-Received: by 2002:ac8:5e48:0:b0:50d:af3a:d8ed with SMTP id d75a77b69052e-50e36c495a7mr404227811cf.41.1776958624557; Thu, 23 Apr 2026 08:37:04 -0700 (PDT) Received: from redhat.com (c-73-183-52-120.hsd1.pa.comcast.net. [73.183.52.120]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-50fc42c7fabsm41552511cf.9.2026.04.23.08.37.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 08:37:03 -0700 (PDT) Date: Thu, 23 Apr 2026 11:37:02 -0400 From: Brian Masney To: dongxuyang@eswincomputing.com Cc: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, p.zabel@pengutronix.de, huangyifeng@eswincomputing.com, benoit.monin@bootlin.com, ningyu@eswincomputing.com, linmin@eswincomputing.com, pinkesh.vaghela@einfochips.com Subject: Re: [PATCH v3 2/3] clk: eswin: Add eic7700 HSP clock driver Message-ID: References: <20260423090904.2108-1-dongxuyang@eswincomputing.com> <20260423091114.2326-1-dongxuyang@eswincomputing.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=us-ascii Content-Disposition: inline In-Reply-To: <20260423091114.2326-1-dongxuyang@eswincomputing.com> User-Agent: Mutt/2.3.1 (2026-03-20) On Thu, Apr 23, 2026 at 05:11:14PM +0800, dongxuyang@eswincomputing.com wrote: > From: Xuyang Dong > > Add driver for the ESWIN EIC7700 high-speed peripherals system > clock controller and register an auxiliary device for system > reset controller which is named as "hsp-reset". > > Signed-off-by: Xuyang Dong Reviewed-by: Brian Masney There's one minor bit I am not sure of. > +static void eic7700_hsp_regmap_lock(void *arg) > +__acquires(lock_ctx->lock) > +{ > + struct eic7700_hsp_regmap_lock *const lock_ctx = arg; > + unsigned long flags; > + > + spin_lock_irqsave(lock_ctx->lock, flags); > + lock_ctx->flags = flags; > +} I don't know if the __acquires() is accurate syntax. If it needs to be arg, lock_ctx->lock, or ((struct eic7700_hsp_regmap_lock *)arg)->lock. It looks like this code is triggered with clang, and I tried compiling this driver with: make LLVM=1 KCFLAGS="-ferror-limit=10000 -DWARN_CONTEXT_ANALYSIS -Wthread-safety" \ drivers/clk/eswin/clk-eic7700-hsp.o I also tried with 'make C=2' and I don't see any locking messages from this driver. Brian