From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.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 E306130F811 for ; Tue, 3 Feb 2026 15:05:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770131107; cv=none; b=RDmhHlOeycbZz65E2kJEn2bwbPWAZtRAfIU+MyIoAtD5kkV6ng7QdsQXis5r3IETtc28Jot9zGdpjJQ85NNxBTc9Ym5jFbaNFp1T3/alQub17gOhw6bvPjp6CcX+6D/wXFIP2ghPpAbmtPSXdRDZNqetUZp0Vxjj/S/nhvysENQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770131107; c=relaxed/simple; bh=dwdID4DDF4GDX1SlmcA+3fzCA+ycXbc62Ld/klzXumU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HLWSMQiI96JkxPqNQ3udtTkueHKwAlNv97HHVnKbEBoCidkF2Q15EUQrJVlTbUCzxdXBYVXgNAFm2Red8T1Y/8S/iws9zo7a3t6EOEz8u0CPutITTv9GTGfH61K5asIFziQRABEw802z9bdC2yY2InHBI8qMCn+iOSPHdN/9s/Q= 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=QpSyuDXo; arc=none smtp.client-ip=209.85.208.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QpSyuDXo" Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-64b7318f1b0so7907001a12.2 for ; Tue, 03 Feb 2026 07:05:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1770131104; x=1770735904; 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=9PNsfQXg9zjxapzMuZRa/zLzG4m46Jh75ILxmkVsiiI=; b=QpSyuDXo4abof9JkO71XCU0L++sL4W1+wPJrJo7W48kuy7WOXHhZrQZj7eTlkvPt/r 3EF48KIYISJTJf0dVDzcU03GLcWVwnutn/ZqKxcZWAIvyGfGJbH3OQmEC9zHKVx/3eIv 1uTifqNKiZLo622FwwQET8TQ9CzNqaLQbpqlEcTxtTxdcXJpFnpeRmlk+U9QiLi9D9x4 4SSHT3da5CfLVETraR88yINgZJ8QN233j/EuMTgUZme3bzkTwEAgE896M2Wge2tCYmS/ 9zB7LE7l7vP30fslwT/TUHL8yBp84Ub2EbiZOUWsX6FuvpJiKF3eF8Aavz8x1Ey8WR1o P/bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770131104; x=1770735904; h=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=9PNsfQXg9zjxapzMuZRa/zLzG4m46Jh75ILxmkVsiiI=; b=YPmpKOahmBLn0njNs7dRfnpDc25tMmfHZZvWq98O7JeCovD+gwTGMT0lzjfV9UrKeq wCUIg5fs8fr8n/HbYG6rL3kzgbJpPKNX+rOCJiDU70qRYxxYo6QUHBcJ0eU9vegLVni+ WmVr4w6k1k9f2DFRDMsWaLPBSxH9/4QxSxKBDBBMnEMYMt3QCvCaKxC2rT22XIWfEkWj uZ3wjYEnqSUuqSkDJx8VpxC2NmJC4qImBJLWp2WXrHPBKl3qM6ezGdbQaHsNYnpKNvkg OvLk/cpr3VvDsDNA12sz1WAEz4fz60Y58RlIeMOWTwqi+TQaYUMMTNFTKQ6DpOHmvF3F TOeg== X-Forwarded-Encrypted: i=1; AJvYcCVuds8+WQ9nlzJv6FGplFuelK5u0o/oFfHE0UlOMPJKq5zSdv7FQdkiu9UfDEGx/oN/ERNWlFk/w/87@vger.kernel.org X-Gm-Message-State: AOJu0YwkhBTiLeJhG31GC6EwbCncXjOsd6p1WJtuxWJ0mI6DP60WOVog vfKFx/iZY4ZtypzntMtHyeBk60fGfDu0FMepXYt+7A69L+JaNxmUuhfU9PvyoEBP2MQ= X-Gm-Gg: AZuq6aL2b4PqVLc6jSu83UXhskojPQqy40sjtiWeuwwxwUDTuvGH9RErl87BGewbd1I N1HE1ZnZiqmNBkf99nlsgodfTpXhy4d/jUCUU5gLARLwUuSZx4BEo+tstXToqbjRzTAutzPRIMu yvUAN5UaMmgUIAin49nhn0Vni1l276TW5K0ltYjNL58+32xnBiGKMBuNH2D4dKtrdMtjA5BdrYd FdjFlFeHj6YgkJuDsZ9wlW9qKb/DkfnHmFlcyePtXu3k+HQbU01P4aUpoVJDup9pipQLqUm2YvW R/dj/eVg36s+XLu4ErmOdzU7yhzx3rp5uA2qQAcMR5WmYF+CVbJkE9cZWxyqKI27B8WXEtWq3EE eC/ltGez4F6pVxVNQblrRXdjcUEr40rA7hqJkwETfr+pG/RJIQR96LpDS/Sg6OUVQgYzujCoMIr zVYJtL2PynRGPPu5TU X-Received: by 2002:a17:907:96a8:b0:b87:65c5:602f with SMTP id a640c23a62f3a-b8dff7a30a8mr1000149366b.34.1770131104069; Tue, 03 Feb 2026 07:05:04 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8dbf2ed6f8sm1049398466b.65.2026.02.03.07.05.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Feb 2026 07:05:03 -0800 (PST) Date: Tue, 3 Feb 2026 18:05:00 +0300 From: Dan Carpenter To: Josua Mayer Cc: Marc Kleine-Budde , Vincent Mailhol , Vinod Koul , Neil Armstrong , Peter Rosin , Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Janusz Krzysztofik , Vignesh R , Andi Shyti , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Wolfram Sang , Yazan Shhady , Jon Nettleton , Mikhail Anikin , linux-can@vger.kernel.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v7 2/7] mux: Add helper functions for getting optional and selected mux-state Message-ID: References: <20260128-rz-sdio-mux-v7-0-92ebb6da0df8@solid-run.com> <20260128-rz-sdio-mux-v7-2-92ebb6da0df8@solid-run.com> Precedence: bulk X-Mailing-List: devicetree@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: <20260128-rz-sdio-mux-v7-2-92ebb6da0df8@solid-run.com> Sorry about that, I just looked at the implementation in linux-next and didn't read the code from the patch too closely. On Wed, Jan 28, 2026 at 04:46:10PM +0200, Josua Mayer wrote: > +/** > + * mux_control_get_optional() - Get the optional mux-control for a device. > + * @dev: The device that needs a mux-control. > + * @mux_name: The name identifying the mux-control. > + * > + * Return: A pointer to the mux-control, an ERR_PTR with a negative errno. I wish the documentation for these "optional" said it could return NULL. > + */ > +struct mux_control *mux_control_get_optional(struct device *dev, const char *mux_name) > +{ > + return mux_get(dev, mux_name, NULL, true); > +} > +EXPORT_SYMBOL_GPL(mux_control_get_optional); > + regards, dan carpenter