Thread (31 messages) 31 messages, 6 authors, 2025-09-14

Re: [PATCH 02/15] nvmem: microchip-otpc: rework to access packets based on tag

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2025-08-05 06:50:20
Also in: linux-arm-kernel, linux-devicetree, linux-iio

On Mon, Aug 04, 2025 at 03:32:06PM +0530, Varshini Rajendran wrote:
+static struct mchp_otpc_packet *mchp_otpc_tag_to_packet(struct mchp_otpc *otpc,
+							u32 tag)
 {
 	struct mchp_otpc_packet *packet;
 
-	if (id >= otpc->npackets)
-		return NULL;
-
 	list_for_each_entry(packet, &otpc->packets, list) {
-		if (packet->id == id)
+		if (packet->payload_info.packet_tag == tag)
 			return packet;
 	}
As mentioned in bindings change, this looks like breaking all the users.

Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help