From nobody Mon Dec 1 22:34:54 2025 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 E993B31195D for ; Sat, 29 Nov 2025 16:58:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764435527; cv=none; b=NN0nqxLnntklILlMne5cOtNUJigW+GhBMblLOXzWE4Iae36e866npja/A9oqbOJUFMskN9M+rL/UMRGAHHm5d48dhEgGuSoCfEBkLcGZEGecLrl2AqBpflX88ZvxOljnJ3yQzO76n88QFn+ZdDcbfZ9h6g7zz+t56CGHpkPKxpU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764435527; c=relaxed/simple; bh=QIJjUzbPPEXixJC/UenX9JmaeP67xomil8h8VVKadW8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=C3FxEOsV+08pNycRnPONdfabQ/oQTQ70hySYWM5IbAdHjcivRhbpOINon5KJiOGbPQurHNopnK9EINjgOwNV5T9yQx4zvxUfZ77aFJlVreTrZTLPSH/SbUHr61uEEK5OaG10kVKum9BRzE4FeiBwoRcyBwZpVNYDomyk9J1i+/M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=dNmWA8CS; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="dNmWA8CS" Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-64162c04f90so5337146a12.0 for ; Sat, 29 Nov 2025 08:58:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1764435522; x=1765040322; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=S5X0/AJXqVClNw+MMSHwGakWsUuvrSeOBMXGWWz5k68=; b=dNmWA8CSAlumAefDnpk2zlMdoE+6Y6CbPYVFixOY8xR/Cut7FVnsemwqahpvW/q5jv tze0x2DYYOVjlMtLpMDP4AkPhCIAA2bIGVnRSEBn0W3LjlM/c77HTxFDx9vG/0HtWQLO 4J0Jro8UGlfHMOgArtbNlqJiRXLz5Eyo+CwJJfRjCTJrNIeReOVMsxlpaZQVQb14Yy96 SYeQ8k+/zV1NMGFsjgx+VSUe29IjYE09Jg16B5rIabvGbfnW2dHAUYHldrFaCZrGdZ0C +YV6iEyqMLZLX9f+Itt88G8A3U8jyDXvEd9WgZJSHOTgFG09rdjYLbN6ceTwrueXNjKD TGhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764435522; x=1765040322; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=S5X0/AJXqVClNw+MMSHwGakWsUuvrSeOBMXGWWz5k68=; b=OqlckIK8Sma/M12ICEKbQo/WQ+ZRe40Fo6oBpc5ZxPUpTZxNdO2kgQqILd7Nck73Me oe+2Cq8ldzmFXGEgoDHDw0C/W13GyFd+BXXrkeSFtdg1FeeXH+5r+LCTa6nUInf3X8Nl TP5pdLeknWBRFTgi2d5egEKLi4IRfgwoE8yjuYyFTfA8fdJXp9/L6WxfQK0vHK4IpdFZ ZGi9c60Xf881pf6D2zPnF/a1s+xYEP/qUOR12GaKrvFYcMhb34PybmLYJHM3hzV89oUp Y60W7MjdjSCYsVibVKIlKqh1CN2OqNpoepypkIvwpbDC0TD9R25mXfUwu9GXzLsi7NXm AQ0Q== X-Forwarded-Encrypted: i=1; AJvYcCWHyhINiCEpKaX/LBpatln1CCaNSKB0IBmILmqFIZzAJDAuO5EqdU6eld3Cz13HgZmFn5Tkn+0PRHcCZtM=@vger.kernel.org X-Gm-Message-State: AOJu0Yy2ds9lRm/EIP60Hyw1Zpw3iNTp7WHYA3fR2stgx805itYnKQ2L Zas1Crnj4EYEif05NO29G157vveuIPhcjj/rnv754cyYQOejk7UNFwHfJJD3RR+/GwA= X-Gm-Gg: ASbGncswu5bWxl+LfxXu/0uBfwUHblctEBeggEC05/NgpwAmRAqCGKqi3YxeGozw9V0 JjhCmte2wq2IAFtIBj5CvdGuIteMmBE/ZYh1NRBOYLadlEWEcaJF8K4XfNRcuKkhDUWsCrpubhp Uy51leA1BEsFVhiC/L7BAYztM9ue1reqZpkn8ZeozgUOPxNoDHTKGpQPY1LWGMgM/Mk9/f2ZKn0 1i1+aAUJ+BYlmuZ1YuKAwwdmoOv+HWy2jJ9XAafuwUNMhsN2HvACyMc26iUXt0cnfp1gBv7Psd0 RmUrPbTGHaBG90YWIOFQ2tEBOLbILO/grVqDb55PQRXUGA00laMVnidFcff5P3ZIin8MVG/+56d UzpoLhjQpD9tGXfzH3IqBB6BOQpCghmJg1IqYMefr/JE/6YtFB9EKAgYlnl8zqfuGSeu0MFzILR EbkPb52w8AAZe+NXBD X-Google-Smtp-Source: AGHT+IFqY9OKcjFLczHtiKTvE6IhTNLUU2I6lutyiHcX0MhifhK72ajDJWIgvdeNV7+Gi9tVtC3gZw== X-Received: by 2002:a05:6402:42c7:b0:63e:b49:c9c3 with SMTP id 4fb4d7f45d1cf-64555cf83f3mr29269462a12.31.1764435521892; Sat, 29 Nov 2025 08:58:41 -0800 (PST) Received: from localhost ([2a02:8071:b783:6940:1d24:d58d:2b65:c291]) by smtp.gmail.com with UTF8SMTPSA id 4fb4d7f45d1cf-64750a90d5dsm7227734a12.12.2025.11.29.08.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Nov 2025 08:58:41 -0800 (PST) From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Eddie James Cc: Ninad Palsule , linux-fsi@lists.ozlabs.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH 09/12] fsi: sbefifo: Convert to fsi bus probe mechanism Date: Sat, 29 Nov 2025 17:57:45 +0100 Message-ID: <04d44c0e6a41290948695b531f8a647db26f0fa6.1764434226.git.ukleinek@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: References: 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" X-Developer-Signature: v=1; a=openpgp-sha256; l=2272; i=u.kleine-koenig@baylibre.com; h=from:subject:message-id; bh=QIJjUzbPPEXixJC/UenX9JmaeP67xomil8h8VVKadW8=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBpKyYZB0GCozOUDotIiHSzZ44pSsaq0Nc1OFalf owR11Tghf2JATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCaSsmGQAKCRCPgPtYfRL+ TiXkB/wJRzBAioRxkpq/t36NTLDT2HyhA0Rnq4YsmUeZjlafohrSWpmecsPJeLjL59FYSpJWsO1 1mhjy3nx/yrRzbf/5yd3+DySCrRqzljUk7K/VyXFLNxajnhWs1mrLWFUbTr0eA/sIawc/5jWd5m 9r4fCFH0RzTHiSMQwPyGEcFn/Fd3HzphL7FvWJHSAZzUqKypTWPqL8Zrq0brsS/XdI49RaCnaCd /VEgE6WOmgqmuoch1xnt8Sfs52vohucW5+4SNsDRiXB0IcKEQD2OgSSzc0FjgSSeV78z6DDXHGK IvFcEmMiymZJV7nxQN+yt5RN+TYFvkjaq91LbYnPC0ku1iPK X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: quoted-printable The fsi bus got a dedicated probe function. Make use of that. This fixes a runtime warning about the driver needing to be converted to the bus probe method. Signed-off-by: Uwe Kleine-K=C3=B6nig --- drivers/fsi/fsi-sbefifo.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/fsi/fsi-sbefifo.c b/drivers/fsi/fsi-sbefifo.c index fde1c34743a0..6ca5817910cd 100644 --- a/drivers/fsi/fsi-sbefifo.c +++ b/drivers/fsi/fsi-sbefifo.c @@ -1022,9 +1022,9 @@ static void sbefifo_free(struct device *dev) * Probe/remove */ =20 -static int sbefifo_probe(struct device *dev) +static int sbefifo_probe(struct fsi_device *fsi_dev) { - struct fsi_device *fsi_dev =3D to_fsi_dev(dev); + struct device *dev =3D &fsi_dev->dev; struct sbefifo *sbefifo; struct device_node *np; struct platform_device *child; @@ -1045,7 +1045,7 @@ static int sbefifo_probe(struct device *dev) =20 sbefifo->magic =3D SBEFIFO_MAGIC; sbefifo->fsi_dev =3D fsi_dev; - dev_set_drvdata(dev, sbefifo); + fsi_set_drvdata(fsi_dev, sbefifo); mutex_init(&sbefifo->lock); sbefifo->timeout_in_cmd_ms =3D SBEFIFO_TIMEOUT_IN_CMD; sbefifo->timeout_start_rsp_ms =3D SBEFIFO_TIMEOUT_START_RSP; @@ -1101,9 +1101,10 @@ static int sbefifo_unregister_child(struct device *d= ev, void *data) return 0; } =20 -static int sbefifo_remove(struct device *dev) +static void sbefifo_remove(struct fsi_device *fsi_dev) { - struct sbefifo *sbefifo =3D dev_get_drvdata(dev); + struct device *dev =3D &fsi_dev->dev; + struct sbefifo *sbefifo =3D fsi_get_drvdata(fsi_dev); =20 dev_dbg(dev, "Removing sbefifo device...\n"); =20 @@ -1117,8 +1118,6 @@ static int sbefifo_remove(struct device *dev) fsi_free_minor(sbefifo->dev.devt); device_for_each_child(dev, NULL, sbefifo_unregister_child); put_device(&sbefifo->dev); - - return 0; } =20 static const struct fsi_device_id sbefifo_ids[] =3D { @@ -1131,10 +1130,10 @@ static const struct fsi_device_id sbefifo_ids[] =3D= { =20 static struct fsi_driver sbefifo_drv =3D { .id_table =3D sbefifo_ids, + .probe =3D sbefifo_probe, + .remove =3D sbefifo_remove, .drv =3D { .name =3D DEVICE_NAME, - .probe =3D sbefifo_probe, - .remove =3D sbefifo_remove, } }; =20 --=20 2.47.3