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

Commit fe655de1 authored by Kumar Gala's avatar Kumar Gala Committed by Greg Kroah-Hartman
Browse files

tty/serial: earlycon: Fix print for implied MMIO case



For the case in which we just provide an address as an argument to the
earlycon console type like:

earlycon=msm_serial_dm,0xf991e000

We would report this as an IO port based mapping and not as MMIO.  Simple
fix to use the port->iotype to decide which message to print.

Signed-off-by: default avatarKumar Gala <galak@codeaurora.org>
Acked-by: default avatarMark RUtland <mark.rutland@arm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 28e1445c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -98,7 +98,7 @@ static int __init parse_options(struct earlycon_device *device,
		strlcpy(device->options, options, length);
		strlcpy(device->options, options, length);
	}
	}


	if (mmio || mmio32)
	if (port->iotype == UPIO_MEM || port->iotype == UPIO_MEM32)
		pr_info("Early serial console at MMIO%s 0x%llx (options '%s')\n",
		pr_info("Early serial console at MMIO%s 0x%llx (options '%s')\n",
			mmio32 ? "32" : "",
			mmio32 ? "32" : "",
			(unsigned long long)port->mapbase,
			(unsigned long long)port->mapbase,