Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1048113lqm; Thu, 2 May 2024 03:54:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7ayKpTeZMUKNsVtK3eJDAyHa0ydyfGuZgC1Llo2HbNu5nfQe+qJeMxUOOKAXQkHUWP79SaTCeZfn24PxVCbi57Qmap/d8vxKShbWGvA== X-Google-Smtp-Source: AGHT+IGanL/KwkIGNkCZmTf/PCFueBcSeE6kFKp7zTNdqQz/UcXj/CB6qZMGtm+Gso1E2Hkd20Q2 X-Received: by 2002:a05:6602:1508:b0:7de:c3ab:3496 with SMTP id g8-20020a056602150800b007dec3ab3496mr2361541iow.4.1714647264626; Thu, 02 May 2024 03:54:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714647264; cv=pass; d=google.com; s=arc-20160816; b=yPNF0VOD08yY3mUCPKendfdM7Khog31xt1S603/rEld2w9/p+p7OwlJCUP4pJAndey tQ5QPmzkmXAZt3VwKsEc/0LfvRWo1OXSx3JSMzpJRgf78BaGQoOi7yxIbuujgry80WkR INKuvCG5NYGMgPhVuRZKRZgNk2Oiugz2Elnw9ABPKIztEp9br31DY0VLOPOQsphuigYN oZASEVdnLDEODPyU5clEZvqmSK0oU5DT3lZwU+onBV3sgT+fl43G5A/OtDt4TD85ZYvw C+AkonUQAWKBlmo42Cf0yx/2rCupBj3JF3tPg9yVLByzCvJREwEpnJjPsRNhZ8mklrQx mLyw== 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=G67wI1ELxvLHuj4j0MxxzK9klsJgpVHm/gMYk9CvndE=; fh=TSfyV3W9sxrV5tywMceTacF/QVdrQh95945RIi1I9Ok=; b=aKYU7uofPkOM7ROa0XeuAqQzWiVGt6Xf5PB2E94yTIGADzRwXXRnZ+IrpPthyh9KY+ hn+jOlokX4WvzLSjy+Of6lgGPwXvZL1EBLD0AmWhTUDD3S4JEOsVdBlmoNMtvRXxVEhv fCkm/PPF0BHEx2ocjEYqLyX/RM515WUNiZ93FUuXtSEGnNm5p37CMOOuiwj+UWP0UXdn FqaMQbZKE7jL504xIxgjd1PsvBWQBnoLZgcNpEYhgMjDyFzZ279ldovIFG//pSXsZZcU 3V5OAdT6Nis+KCUaopVgJmx9T6iN/v3hltW1tqHSjh8XhCM49sq0NP3Ret9LfsLPyl7a +5Eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v+IhWHE5; 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-166342-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166342-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. [139.178.88.99]) by mx.google.com with ESMTPS id z128-20020a633386000000b005dc422f07easi501384pgz.902.2024.05.02.03.54.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 03:54:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166342-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v+IhWHE5; 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-166342-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166342-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 9EDF7288884 for ; Thu, 2 May 2024 10:45:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CED183CD0; Thu, 2 May 2024 10:41:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="v+IhWHE5" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 82E7D81AC7 for ; Thu, 2 May 2024 10:41:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714646503; cv=none; b=CySsJs+s+ATodEEOmZiFY5Ldpf7Oy4p1qNN60gAE/0jqh4Bw8OiVQ7X1hJUxfmHWgQ8xV+p269vD9vhSjdykwsSJhpJbkhsgbX1ejjwUFYv2OZq5vvX0ZKTGcOG0wk98dcoRgXEQPe98B/65AQyxyqk7QHCfk7Iu3WxElcdAj4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714646503; c=relaxed/simple; bh=fybXAjqPvBwHdGsxB9/R7j2S7Y+f4bR+tc79wdtF/u0=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=mH2DP6116vtefcSDgvb8xw1TNPvjhHQxfZ7zdgvHKJyobQq0vtLuyX7ApemYkznS2oSVvNwqK/ljlhVGgb8tgY0LQXTAb0YmQECW1kjSISyaDDieWMTEuYBOzLTV/mIFB4g4/pVKQEkJX3fiX466lIp3NgtjGLrDp6lMi2te+ZU= 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=v+IhWHE5; arc=none smtp.client-ip=209.85.128.44 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-f44.google.com with SMTP id 5b1f17b1804b1-41dc9c83e57so4125455e9.0 for ; Thu, 02 May 2024 03:41:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714646500; x=1715251300; 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=G67wI1ELxvLHuj4j0MxxzK9klsJgpVHm/gMYk9CvndE=; b=v+IhWHE5zU4zTDAEpB3P8xC652+AhWGEWFT2slMtz+HlUqF+9WUVEesdcGrztZuZjN pMdmItde4I2yBRyN7mYxVFVzSJvj9VQz0ka5CuH9MutkIMLzbEfieE+X0X0yxz8tN2JH reQ1cl4aC+PIaANDiG4/B+BCxaJxxTQ+DCR4HVZquYIUzmkROKpAI6t+FcQzyQvQP28S FZ7xeQiKV9zYX4Fzvl5IB5uUpgW5KtvLHBGoHkR7dr3FKWpyog1kgkRD8sqZG2cek8Bn HmRbIGTYWiPz/QA1efKc49xrHv/3mxCr+KLZ1vaeRojZhNeUlB9l3W8IHpoBaX+3/IT5 /3HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714646500; x=1715251300; 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=G67wI1ELxvLHuj4j0MxxzK9klsJgpVHm/gMYk9CvndE=; b=pv9wm2H5Ppy5EuMqtCiIv7wwTNPMBiRV++ZcFkh/Jh82Z/xyGetK0YK+r/Sjqcb/i9 n3Xx0WXgr2jbFJ5yDoIDbyC0hF9qO0cQ7dNJtN1cCD7iZeIEAHnuadxC70i0UPwrs0Dr 1/4I55KLvlQ41hNXg2XsRZe9t+dxBB8JaoX6/NVXnCB0noWcoimrdSRrWNqsgE6MEUWz fB8296nuY+zmSR26F6SAHr1o6wohY5HnSkox8h+ATmcgJPmblO1iev+oPtDeARVDyPqL NLVMVFBtDnoP74pkiS9jMthTE7yHOue5062z3i7rjyZAIbUC3On13GpMtyAv3gDTVf1J R/xQ== X-Forwarded-Encrypted: i=1; AJvYcCW8KPFhAOO73ZagENYxDZGE9gS6vi2y2iFEMVsbH7jyH6hnFVi3nTbBEPm0Icgk9Q4TNQC5lNLLGWUidSS2rW6247L4ZFqtnk0LgBGE X-Gm-Message-State: AOJu0YxzL96/j/hHTTdhh5eMi54nlqfEroLMLolgniTlAf1LNpj/2JNx W1KV6SWqv98ldcC1zeFXFXt7iBdk0NC2EOit1TUb7h2gWrvjWmu2odC9aLf0LRU= X-Received: by 2002:a05:600c:1c83:b0:41a:4623:7ee9 with SMTP id k3-20020a05600c1c8300b0041a46237ee9mr1843717wms.10.1714646499760; Thu, 02 May 2024 03:41:39 -0700 (PDT) Received: from salami.lan ([80.111.64.44]) by smtp.gmail.com with ESMTPSA id c14-20020adfe70e000000b0034de40673easm957006wrm.74.2024.05.02.03.41.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 03:41:39 -0700 (PDT) Message-ID: Subject: Re: [PATCH v3 2/2] pinctrl: samsung: support a bus clock From: =?ISO-8859-1?Q?Andr=E9?= Draszik To: Krzysztof Kozlowski , Tudor Ambarus , Sylwester Nawrocki , Alim Akhtar , Linus Walleij , Rob Herring , Conor Dooley , Tomasz Figa , Peter Griffin Cc: 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 Date: Thu, 02 May 2024 11:41:37 +0100 In-Reply-To: <9a960401-f41f-4902-bcbd-8f30f318ba98@kernel.org> References: <20240426-samsung-pinctrl-busclock-v3-0-adb8664b8a7e@linaro.org> <20240426-samsung-pinctrl-busclock-v3-2-adb8664b8a7e@linaro.org> <9a960401-f41f-4902-bcbd-8f30f318ba98@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3-1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Thu, 2024-05-02 at 09:46 +0200, Krzysztof Kozlowski wrote: > On 02/05/2024 09:41, Tudor Ambarus wrote: > > > =C2=A0 > > > @@ -223,6 +268,13 @@ static void exynos_irq_release_resources(struct = irq_data *irqd) > > > =C2=A0 shift =3D irqd->hwirq * bank_type->fld_width[PINCFG_TYPE_FUNC]= ; > > > =C2=A0 mask =3D (1 << bank_type->fld_width[PINCFG_TYPE_FUNC]) - 1; > > > =C2=A0 > > > + if (clk_enable(bank->drvdata->pclk)) { > > > + dev_err(bank->gpio_chip.parent, > > > + "unable to enable clock for deconfiguring pin %s-%lu\n", > > > + bank->name, irqd->hwirq); > > > + return; > >=20 > > but here we just print an error. I guess that for consistency reasons i= t > > would be good to follow up with a patch and change the return types of > > these methods and return the error too when the clock enable fails. >=20 > That's a release, so usually void callback. The true issue is that we > expect release to always succeed, I think. >=20 > This points to issue with this patchset: looks like some patchwork all > around the places having register accesses. But how do you even expect > interrupts and pins to work if entire pinctrl block is clock gated? I was initially thinking the same, but the clock seems to be required for register access only, interrupts are still being received and triggered with pclk turned off as per my testing. Cheers, Andre'