From nobody Fri Nov 29 18:26:19 2024 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 12608188A24 for ; Tue, 17 Sep 2024 17:17:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726593426; cv=none; b=ojlDJT9MmaVOhv6GFepzocFNKbYjZk4zrcAbiHQwmOlUP12KMh8DmH4s96mz/qzjPVJJKEE+lXIlH01R/c1m1ZGXI5qux2BNDgGymSUyLwjgekU55VJQf3JZcSiggFy8/1YJO5wgFUHkZ6PHpn4IcGN79iEizaolQTIi4wmoMl8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726593426; c=relaxed/simple; bh=pcaPH5Ml70DzQQiV10Q0FbRbKfH/Qiby0VbENfxPW+M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JttfsShWctOE4nHxS5vJfca3Q9L33ztRlsdy1BZOXtb/wMuIVWGxNghkp3lm8PPiOiKEM1XNFnK5eLIkiFFdUNXZfCflBFPgR28Xn+CZ3zfjbYGXHRcNIKD+C1oH9EYv7fWbrUepyc+dg5o8VLMmZiqpctNlm6qbXWz4XZPdql0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=iDdFbaeX; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="iDdFbaeX" Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48H8APJr006402; Tue, 17 Sep 2024 17:16:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=pp1; bh=X1uQkj2ybvtAU 5zyG4+kAarHL2hC9hYMaou7f5b+m2k=; b=iDdFbaeXvouWPhmQbFFXhH8rV7hQS Oyv1pHTAot5rQeGhO4+i9xCZR6xoM+3Vm1xDKSV0OVoVgjEOY2357+8BbDTnmr1d vJzTNv39IdNw+jLFyFs0ahqnqqWVnEehITaO1icPviCJUhAd+guGXySWPhRGZ5kj /z2sdCHeg6UUgPFqLCf/rNyXgClYa4zFQ9UjxmZA3a6U2BekitNDab1Vj5HhbiqT nnAHaNcf/ksAtVvQPFkcUVC0CdD+AUfovDJwzl2ATAL94PKWRvrIoFv/7zW3lw2N Xxztft9hGd1QUdmIj8areTwZumzaZA58fwg7ei0bzujMCZkQa14VebWlQ== Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 41n41agwbt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Sep 2024 17:16:50 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 48HH175I001860; Tue, 17 Sep 2024 17:16:50 GMT Received: from smtprelay07.wdc07v.mail.ibm.com ([172.16.1.74]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 41nqh3p4ms-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 17 Sep 2024 17:16:50 +0000 Received: from smtpav01.dal12v.mail.ibm.com (smtpav01.dal12v.mail.ibm.com [10.241.53.100]) by smtprelay07.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 48HHGmcE55640430 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Sep 2024 17:16:48 GMT Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 30DCC58057; Tue, 17 Sep 2024 17:16:48 +0000 (GMT) Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EEB6258063; Tue, 17 Sep 2024 17:16:47 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.93.228]) by smtpav01.dal12v.mail.ibm.com (Postfix) with ESMTP; Tue, 17 Sep 2024 17:16:47 +0000 (GMT) From: Eddie James To: linux-fsi@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, alistair@popple.id.au, joel@jms.id.au, jk@ozlabs.org, andrew@codeconstruct.com.au, eajames@linux.ibm.com, ninad@linux.ibm.com Subject: [PATCH 01/15] fsi: hub: Set master index to link number plus one Date: Tue, 17 Sep 2024 12:16:33 -0500 Message-ID: <20240917171647.1403910-2-eajames@linux.ibm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240917171647.1403910-1-eajames@linux.ibm.com> References: <20240917171647.1403910-1-eajames@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-TM-AS-GCONF: 00 X-Proofpoint-GUID: phjYRyY6kR5uU5DRK8U9r_lulInoWZqx X-Proofpoint-ORIG-GUID: phjYRyY6kR5uU5DRK8U9r_lulInoWZqx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-17_08,2024-09-16_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 lowpriorityscore=0 suspectscore=0 mlxscore=0 mlxlogscore=903 bulkscore=0 impostorscore=0 phishscore=0 priorityscore=1501 spamscore=0 clxscore=1015 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2408220000 definitions=main-2409170122 Content-Type: text/plain; charset="utf-8" This makes the hub master indexing more deterministic. Signed-off-by: Eddie James --- drivers/fsi/fsi-master-hub.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/fsi/fsi-master-hub.c b/drivers/fsi/fsi-master-hub.c index 6568fed7db3c..3bfd0cea6f77 100644 --- a/drivers/fsi/fsi-master-hub.c +++ b/drivers/fsi/fsi-master-hub.c @@ -12,6 +12,7 @@ #include =20 #include "fsi-master.h" +#include "fsi-slave.h" =20 #define FSI_ENGID_HUB_MASTER 0x1c =20 @@ -229,6 +230,7 @@ static int hub_master_probe(struct device *dev) hub->master.dev.release =3D hub_master_release; hub->master.dev.of_node =3D of_node_get(dev_of_node(dev)); =20 + hub->master.idx =3D fsi_dev->slave->link + 1; hub->master.n_links =3D links; hub->master.read =3D hub_master_read; hub->master.write =3D hub_master_write; --=20 2.43.0