From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E69781E9905; Wed, 15 Jan 2025 10:59:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736938755; cv=none; b=m6mw8/4fAN6sTrfg/MvE3pVqs0c+qfSZdBz+XoD+uUhwRgmqlLtxn315DNYt+RRmf6gyVuyBIfESPYnFaY+JdMSdOfGMsfXGAz3qBnlQmaZGXh1bumVrKE1IJzA0RIt9Ta9L4GfWB+wbfZ8eMelH7jVi1VldoOqwNXtGT92xGtM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736938755; c=relaxed/simple; bh=qzDnmKG1JqRqOa9LzIiBwTjTdYHsW8hvo5VSnjsnnJM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uYO6rZSShQq8mUbnzsFk5Q88szboQFZqL47g40jjjMmbDTe64vsqjbZ+kSDnPghD5gFLFTIca/eLdSTVudCiQQU9GFbmLU9TbOuT6Sjm+SC1tVLTlkNEwRyjUDxRlMytrk2UOYHVpy2yJyBxHb3Oc+FBlHtMrl9uxIlv6brLjwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rxNFHqyo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rxNFHqyo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70205C4CEDF; Wed, 15 Jan 2025 10:59:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736938754; bh=qzDnmKG1JqRqOa9LzIiBwTjTdYHsW8hvo5VSnjsnnJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rxNFHqyoHB7eD+KrvE18TjMAznXrGeMe8/114z52UCoiBjrb1mFeWSCA+x6NJxlYj NDNRsZv7Q5fSMPwNcFh5bFi2FVGnvQaguzog6o3NGTfqYOH1OldrUqM886w+4GE93l 0WhVEaxEp+Zhx9AqNibVOZLTaIZ10gbAMQS8MaC0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable , Rengarajan S Subject: [PATCH 6.6 088/129] misc: microchip: pci1xxxx: Resolve return code mismatch during GPIO set config Date: Wed, 15 Jan 2025 11:37:43 +0100 Message-ID: <20250115103557.876440052@linuxfoundation.org> X-Mailer: git-send-email 2.48.0 In-Reply-To: <20250115103554.357917208@linuxfoundation.org> References: <20250115103554.357917208@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rengarajan S commit c7a5378a0f707686de3ddb489f1653c523bb7dcc upstream. Driver returns -EOPNOTSUPPORTED on unsupported parameters case in set config. Upper level driver checks for -ENOTSUPP. Because of the return code mismatch, the ioctls from userspace fail. Resolve the issue by passing -ENOTSUPP during unsupported case. Fixes: 7d3e4d807df2 ("misc: microchip: pci1xxxx: load gpio driver for the gpio controller auxiliary device enumerated by the auxiliary bus driver.") Cc: stable Signed-off-by: Rengarajan S Link: https://lore.kernel.org/r/20241205133626.1483499-3-rengarajan.s@microchip.com Signed-off-by: Greg Kroah-Hartman --- drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c +++ b/drivers/misc/mchp_pci1xxxx/mchp_pci1xxxx_gpio.c @@ -148,7 +148,7 @@ static int pci1xxxx_gpio_set_config(stru pci1xxx_assign_bit(priv->reg_base, OPENDRAIN_OFFSET(offset), (offset % 32), true); break; default: - ret = -EOPNOTSUPP; + ret = -ENOTSUPP; break; } spin_unlock_irqrestore(&priv->lock, flags);