Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 377b8fc6 authored by Asai Thambi S P's avatar Asai Thambi S P Committed by Jens Axboe
Browse files

mtip32xx: minor performance tweak



When checking for command completions if the register value is zero, proceed
to next register.

Signed-off-by: default avatarAsai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e602878f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -970,6 +970,8 @@ static inline void mtip_process_sdbf(struct driver_data *dd)
	/* walk all bits in all slot groups */
	for (group = 0; group < dd->slot_groups; group++) {
		completed = readl(port->completed[group]);
		if (!completed)
			continue;

		/* clear completed status register in the hardware.*/
		writel(completed, port->completed[group]);