Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp261253lqf; Fri, 26 Apr 2024 06:11:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6nWgvoWbn9rKj7wmt5MdqpiRBuukANXTj/0qPPBPtGhRr0gu93IUrNHAW4F9HN6a2QP+0DQCqPvRY192mwxQOWvir+Gmwr9Q96bS1Pg== X-Google-Smtp-Source: AGHT+IEmlBihbqtkCGa1kXmv+gQacPg1liLTfX7VS87N9Jer+8vbjQa4gzeMOIc0UMv6ulpVsjmU X-Received: by 2002:a05:6a20:8415:b0:1a7:8610:bb62 with SMTP id c21-20020a056a20841500b001a78610bb62mr3495383pzd.51.1714137065155; Fri, 26 Apr 2024 06:11:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714137065; cv=pass; d=google.com; s=arc-20160816; b=x6WZ+/dLIKSXMhVQ/79JoE25TU5VtBvcHNOqMj/P41NVOivau+1oXMPvFpHAS8Tg+G VCjU7Lx2D+JAMIyS2qb9Q/jVGWkfiZFutrMBDiSCoqV2lhefK0w8z11gA8ItxCnV69Vt xDdegkKqkICgzU46EYeHu/mvZxIQr1qb43sxWMIL+xikvbqaQMxxPByLLwRil41Ff4gH 0JrSoLeA8lmUgyAbnXUs9VADphjmoRUnuG6g4gqRkPxQP4uduviaNf9lnsuR7kF4vJIN +6SeVCpRm6/6COK9MsvKoxMtpID1AH7t5fW3Ys0Vjnl+MsWGyNbHzLzn3xx8vpyfHrTC 7rnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=up/TvhMZAZY6yPkfNvqYk9mm7CB0BvgIE99o7dPUwOo=; fh=jPqzL/T+e1Tv/sEh1Krj9SLhk4rP/5y8xT37ph2/MDs=; b=RmEX0s3FhUbIU4ysK+bTRw9h7Rkf/eKcBYOMc0/8VeSZlDmx/OtNV7uhw3q+qi5yo8 rBptt74uA+Crti8m1qhTpBj+Ht5kZQFbIgj5fbl6wLvyrqS47bj8divO58dYAa/mLPsu HWvtxSoObBpCHHr4rgQtB7kDj4BFhtO65xorHV6Ah3JSo6il+10GqmJP2lK3igX/eMEu 1//LhKg/UMQh2bBb38ppHUJMlLqabCxl0wWQ4swBsF5jUIuMH4hxCg19QB4Wwxvobixy XoT+HiEN2JbYineIvK6vI65C4+aH78dOFr/Ev5zI91NIzGIErv+/QMvaQgWz5O62Ki0o XRBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mYtsuPaQ; 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-160024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m16-20020aa78a10000000b006ed9760c37asi15004162pfa.300.2024.04.26.06.11.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:11:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mYtsuPaQ; 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-160024-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160024-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D459E283C3E for ; Fri, 26 Apr 2024 13:11:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B67721474BD; Fri, 26 Apr 2024 13:10:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mYtsuPaQ" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 4CCCE146A7C for ; Fri, 26 Apr 2024 13:10:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714137052; cv=none; b=tOZT/HBbNA6kucHnTQ/Y6isiF5RVJ5DWRp/0FBlh3D0Bm1DcAY+WhN+76GALK1QebEtXAtYYnHUBBTXyk7Jc2IWSpYXYwBwu9TPsUebG0eavTWBSQKz7LMSH9s7L/8fyqzlMOa2Ih0dqjm5MBMdy11g9zBONQFGddOX37e9Z7ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714137052; c=relaxed/simple; bh=VE7wD8KokW+7zCXO0HYd2htMwnpzd+jqE5ppA5VzXgs=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=r9NDI6f128dP59CPAUNsdIbJWqvX8SzQaNYKKMGOzxBv6AUZnte6TrWbGJcvhEith/lU8VQL3DIQZbraeUfSqAUU9X5gRxjz4NcrTZ+m5Yuwb2r7acG0Csz+qzYBL0BA1NooGOGeuQvC8T7kj5+8IOUYk+T6n+s2B8Roue6j/Js= 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=mYtsuPaQ; arc=none smtp.client-ip=209.85.167.49 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-lf1-f49.google.com with SMTP id 2adb3069b0e04-516d4d80d00so2844312e87.0 for ; Fri, 26 Apr 2024 06:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714137049; x=1714741849; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=up/TvhMZAZY6yPkfNvqYk9mm7CB0BvgIE99o7dPUwOo=; b=mYtsuPaQ0gH2j5OLE9kTsQa5Xi7g8G06kk+9t8fADcEYyG8rjWqsD4SLF6GX8I58a1 dL+Ad6SCcG8zEwVqAcI3QHpF6ZE+UStNK1Ur1eZT5pxnJaNhf4WK+XoHmoQm5TR5vo5f 6BPQPRPRCL5XQ/RturGRVMC7C9+caBID225aLif00Ss/hFgAmElJzikih2cRQFvVp6V3 U3Bw8e+eONY6XhGKgXuSOilr8K+WulprjFJxc81KYDOyU5RAdkDYzAE1KeRjTc19LhoG 3tsB6NZ1D2QGSSjjygnW6yOCxOVZnO7Y0sSB1fYSwso9VJypiNNjzPVfE0s2dJ8R3Hjl nREQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714137049; x=1714741849; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=up/TvhMZAZY6yPkfNvqYk9mm7CB0BvgIE99o7dPUwOo=; b=EO+kw7jadQmZc5rf3Eb0cOJcOrhg0LPB+2RbAXdDerw53yxSYzKU1RyYsvx8EXB2WF XV4HYE7LcJf4VEA3JaCxdCbqT2+mo6w/3Bac5drO8U14w81u97DE5i7aVhxSg7hPNHcN DZrFDTYiiiFykS8w2rQGmhgXXw72TaOtowGWA+TGP8A7oS91Kso+Cd8GKCLKS9WRxaQd fAUCB5ICwlytNeTNgeZtVmJRddCZBCa4C7lqq1oYXWZciEzOJQVzAfDFUrfflXUNS8y0 xvqGIAgtWeMxSPEZ9QYLDan0o0LGUYYDQS7JlRRIuSW49a+a/1peKuYnQUeSeFZWMztJ DDzA== X-Forwarded-Encrypted: i=1; AJvYcCWW2GE5i0BhRlR32nTyytL4wa6DZIeqiSu6lH14eyMNeDgLJS63C5p7dIjOpq4kYk0AOrni+SmEqeGnOpbrJmY1YF1TQf7R4cDzCD30 X-Gm-Message-State: AOJu0Ywwq09q7u+KXKRHL0Jnh1YK0FG2uaOWUk7pDeMlDH+hk1YU7cvu QFAN9+U3T6R2fp7qObGgXW6he7JGMR9GM4wHriIxeSKdyFs2VhZiv8cTzgVyr1k= X-Received: by 2002:ac2:4248:0:b0:51a:90dd:698b with SMTP id m8-20020ac24248000000b0051a90dd698bmr1749320lfl.65.1714137049284; Fri, 26 Apr 2024 06:10:49 -0700 (PDT) Received: from puffmais.c.googlers.com (8.239.204.35.bc.googleusercontent.com. [35.204.239.8]) by smtp.gmail.com with ESMTPSA id u18-20020a170906c41200b00a58bec2ae2bsm1396948ejz.39.2024.04.26.06.10.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 06:10:48 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Subject: [PATCH v2 0/2] clock support for Samsung Exynos pin controller (Google Tensor gs101) Date: Fri, 26 Apr 2024 14:10:45 +0100 Message-Id: <20240426-samsung-pinctrl-busclock-v2-0-8dfecaabf020@linaro.org> 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="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIANWnK2YC/42NQQ6CMBBFr0K6dkxbAasr72FYlFJhIrZkBoiG9 O5WTuDyveS/vwn2hJ7FtdgE+RUZY8igD4Vwgw29B+wyCy11KUtdAdsXL6GHCYObaYR2YTdG9wR VKadP3bk2tRR5PpF/4HtP35vMA/Ic6bM/repn/4iuCiSYi7FaStv62txGDJbiMVIvmpTSF6gIH 9fBAAAA To: Krzysztof Kozlowski , Sylwester Nawrocki , Alim Akhtar , Linus Walleij , Rob Herring , Conor Dooley , Tomasz Figa , Peter Griffin Cc: Tudor Ambarus , Will McVicker , Sam Protsenko , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.12.4 This series enables clock support on the Samsung Exynos pin controller driver. This is required on Socs like Google Tensor gs101, which implement fine-grained clock control / gating, and as such a running bus clock is required for register access to work. Signed-off-by: André Draszik --- Changes in v2: - propagate clk_enable() errors in samsung_pinmux_setup(), i.e. struct pinmux_ops::set_mux() - move clk_enable()/disable() outside bank->slock lock, to avoid possible deadlocks due to locking inversion (Krzysztof) - fix some comments (Krzysztof) - use 'ret' instead of 'i' in samsung_pinctrl_resume() (Krzysztof) - Link to v1: https://lore.kernel.org/r/20240425-samsung-pinctrl-busclock-v1-0-898a200abe68@linaro.org --- André Draszik (2): dt-bindings: pinctrl: samsung: google,gs101-pinctrl needs a clock pinctrl: samsung: support a bus clock .../bindings/pinctrl/samsung,pinctrl.yaml | 17 ++++ drivers/pinctrl/samsung/pinctrl-exynos.c | 112 +++++++++++++++++++++ drivers/pinctrl/samsung/pinctrl-samsung.c | 95 ++++++++++++++++- drivers/pinctrl/samsung/pinctrl-samsung.h | 2 + 4 files changed, 223 insertions(+), 3 deletions(-) --- base-commit: a59668a9397e7245b26e9be85d23f242ff757ae8 change-id: 20240425-samsung-pinctrl-busclock-151c23d76860 Best regards, -- André Draszik