lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250116035340.3838407-1-yenchia.chen@mediatek.com>
Date: Thu, 16 Jan 2025 11:53:38 +0800
From: Yenchia Chen <yenchia.chen@...iatek.com>
To: <jirislaby@...nel.org>
CC: <angelogioacchino.delregno@...labora.com>, <gregkh@...uxfoundation.org>,
	<linux-arm-kernel@...ts.infradead.org>, <linux-kernel@...r.kernel.org>,
	<linux-mediatek@...ts.infradead.org>, <linux-serial@...r.kernel.org>,
	<matthias.bgg@...il.com>, <tbergstrom@...dia.com>, <treapking@...omium.org>,
	<u.kleine-koenig@...libre.com>, <yenchia.chen@...iatek.com>,
	<yj.chiang@...iatek.com>, <yujiaoliang@...o.com>
Subject: Re: [PATCH] serial: 8250_mtk: Add ACPI support

> Wait, ::set_termios() is NOT optional.

Got it, will put it back in next version.

> This is a magic constant. Define a macro for this. Hint: 26 * HZ_PER_MHZ.
> Is it not/cannot it be part of the acpi table? What does MTKI0511 look like?

Currently clock settings are not included in ACPI table,  so using fixed clock here.

We'd like to change the flow as shown below to remove the dependency on the ACPI device:

	uart.port.set_termios = mtk8250_set_termios;
	uart.port.uartclk = clk_get_rate(data->uart_clk);
+	if (!uart.port.uartclk)
+		uart.port.uartclk = 26 * HZ_PER_MZ;

> Why is this only for non-ACPI devices?

In ACPI devices, these registers are inaccessible due to some related settings not being configured.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ