From patchwork Mon May 5 11:39:17 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 887937 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 43C8F1F7580 for ; Mon, 5 May 2025 11:39:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746445174; cv=none; b=HNRRpU6AB2dLXjdO7c7FPqvAPyxwsjabbEBMfuDvU9BM73GpN4IGETmxydzhnCnvxfZAumbvSPtzNQwCq+BbS4kMng5EI4MorLBSfs0Xj2SnD13XUtu17EFaIVKp1byQwD74U3eS3Hy9vvKZSTb+VicXRO1JdPVQ/H8w7pygnJg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746445174; c=relaxed/simple; bh=ivuMF4AiyTS/4JYqXd/Q51GmUAE+wVce2hJ7HRmspx0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kaSZ7o9KOpJ9mfLPPN1gFY1uicmpRHUhW/JatdVp5C967hKMMlBZS1GyAE4ST/kx8vRlXW0AamxIZJSmio+ZAAH/NDKpjoTxpamtWn/PbQiAE+bg0C9O/FWocYBhV3hHg3URgfzblfEUrvCEZbeVgFdZr9HOfxk8TNZ0JasEySA= 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=Yo9G/U4g; arc=none smtp.client-ip=209.85.128.48 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Yo9G/U4g" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-43cfa7e7f54so25262875e9.1 for ; Mon, 05 May 2025 04:39:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1746445171; x=1747049971; darn=vger.kernel.org; h=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=XnllKV8s3Tx8+pvOlOa62d3loJC0CAU43X1zb3557EY=; b=Yo9G/U4gm5ENY1N56ruYbEY9yTflS7Mb3qHRiK7rIphbVVKBzqyhQWFyJe6sbfLsiv S+9GXlD3x5qI2ENniiOHEpxnC7ge6fDOazIkA4SxLzveGKIQ9Lu22rupbaL+Q/s7uYqH 94t+MNJBPErNEkCuRZbHNqA8OG3xHlEBF4FM1ZystO6tJ8nwCt7ShqVnCGLU+OSSI6Ch MshNUT8awgHOqewzJxVOA/547zFl7IluW38JSi4+eMnY8D2ULEoAMxHyvkZFwo4C8/9j dE9YHB1ZvxETW7rlvV3Qa/mY6P1ewJrAzA7C5bJuMNHvjM5uaJl74OPr/XzXZ9P+XMl4 k0aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746445171; x=1747049971; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XnllKV8s3Tx8+pvOlOa62d3loJC0CAU43X1zb3557EY=; b=K4pYII/NgpsNKzLYrLFxSlMUyA+N3g5UIiDmjMX7FLIvclIfUTHvIdNeearPOQbvJz 1kqFl3Gin4xzegEVSCWgSRKp/IGYS/uIDD4ais9JfXpCP3++nWM/1vnXjcBzZlgGJePH RJohXYtjwILDKYv8zuqdde7uc/gBuksV0f5YTsUVl3JUXdFNS85ivXPzrtASysuxYF8R rViotXfZLfbDKMlJD05fc10eNkdgopT9KTKADIALEl4RPJylcpnlr/5pWdPWBERf70qE imOSXiaGvmxCPsUNTDQWmeVyGFnFH1J7bvrqEIs8fBoUj8f9braZg5EqmiAwDWWpqpg0 LFoA== X-Forwarded-Encrypted: i=1; AJvYcCVRHk+Z/43AGjT8vwbNaJw1Yr9KEyR7rgyL8jKOJy8CPuM56bxh7tClhPO232l3bzj+K/taCPxOf9CG@vger.kernel.org X-Gm-Message-State: AOJu0YzHqCvB92towrcA/w2nz5iDvbjrtZKofSzQI9KWR3QxaBTnOwwY QgoXp4teJZC7zba0mtqWovDByoyYYUR45uhoJvBC2PTss5SAFXbw8teGdoaRSOM= X-Gm-Gg: ASbGncthELeYrEPSm6dmkeb9Hc6GlG8FAUvGXWexiF8wUi9c9uvcBwDaspYnR8D/gLl xiCxl1MlNPErYpOvjeYIWEBylU9ooLuboE7+C7CoJNnHx7HZ9oIfZw51TdtcAXz5seuUQUIdorr SyuRe2lyyQf1UQWAkWFJhxn/ruK1AyHmssaUeC4sNxx/iCb/DszNCXSvk/qLAdXZ6luj2XJo2ry rZ3e3E57bGZi0P0rxVeMIp3UVOKO2sg7wyTggXEvCzS77Pdp34qgkTBZisQlqseK3oKCV7/rBk1 lOBYqGPvgbFbykOLF/18XC4TrsiIja8ovq3p2Sw6sltLyg== X-Google-Smtp-Source: AGHT+IEa20MlrBHGITVX3bXAuaInVkSaScwYRHy4y22UhCPjKxK+cq5tGX/c8wkWOhLGOqkhp1PM5g== X-Received: by 2002:a05:600c:4e47:b0:43b:bb72:1dce with SMTP id 5b1f17b1804b1-441b7481655mr136942135e9.5.1746445171320; Mon, 05 May 2025 04:39:31 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-441b2b20aa6sm178602255e9.27.2025.05.05.04.39.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 May 2025 04:39:30 -0700 (PDT) Date: Mon, 5 May 2025 14:39:17 +0300 From: Dan Carpenter To: Sudeep Holla Cc: Cristian Marussi , Linus Walleij , arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [RFC 5/7] pinctrl: Delete PIN_CONFIG_OUTPUT_IMPEDANCE_OHMS support Message-ID: <81fb0a1b0cf15d73e7635081594d8650bf1a258d.1746443762.git.dan.carpenter@linaro.org> References: Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: The argument for PIN_CONFIG_OUTPUT_IMPEDANCE_OHMS is supposed to be expressed in terms of ohms. But the pinctrl-scmi driver was implementing it the same as PIN_CONFIG_OUTPUT and writing either a zero or one to the pin. The SCMI protocol doesn't have an support configuration type so just delete this code instead of fixing it. Signed-off-by: Dan Carpenter --- drivers/pinctrl/pinctrl-scmi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-scmi.c b/drivers/pinctrl/pinctrl-scmi.c index 362a6d2c3c68..f369f0354e43 100644 --- a/drivers/pinctrl/pinctrl-scmi.c +++ b/drivers/pinctrl/pinctrl-scmi.c @@ -262,9 +262,6 @@ static int pinctrl_scmi_map_pinconf_type(enum pin_config_param param, case PIN_CONFIG_OUTPUT_ENABLE: *type = SCMI_PIN_OUTPUT_MODE; break; - case PIN_CONFIG_OUTPUT_IMPEDANCE_OHMS: - *type = SCMI_PIN_OUTPUT_VALUE; - break; case PIN_CONFIG_POWER_SOURCE: *type = SCMI_PIN_POWER_SOURCE; break;