From patchwork Wed Dec 4 15:58:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 847551 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12E692144A3 for ; Wed, 4 Dec 2024 15:58:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733327898; cv=none; b=CSUsEpn4DwMRuDWaxFOKsHND+iDDUvMlhtBHgm9Au9AOfUA93jgf9WmfXZf+dB3vLbkvA1ZTGCyMLLNFe3wPtsmr8sKTeG/NSqP1gHaUPbZa1MaPluWJmcwQlkFLqkd3CP80xNmlNE1P0GRbhxCiS1ZcwY7XmNmUzF4GqOyydMY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733327898; c=relaxed/simple; bh=vVMilANw4305qRJE+mP/zriYLgYpMDHwTKIWeVMIaYg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gMX0xbdP1GJAPrsiIbzh/ipd+5NQIe5NEVzgvkCAoxCipC9ZD1AaQtaGcKahMHMxBA4xy/MiT5u0jytkvE86NiXnsb8zTM+VE2lQtuU6iORU5H7vu+YSmGgvUrEnBjQjw4dP1TGGdwFfPV/3jB4UfBUSSQtonwUOHN8Zw7iesZk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=bGXbu7bS; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="bGXbu7bS" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4349e1467fbso61370405e9.1 for ; Wed, 04 Dec 2024 07:58:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1733327894; x=1733932694; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rCa75btXGR+JBvjWE4MSNe0BWB1SJNgQ2NyGvR5jDOE=; b=bGXbu7bSGx3NmZRiGhOywXh+x6fwEJfAIvm+sEnm08v3fJSBxAspKs2djyH3GkPCSp /Qn+bkl8439rPKphEfZvmnxMoF4+D3faRNOPN/4Ukg4gkOv+81v5+1Fraq/GR1hbfM42 1dxWlCN4jq9o0oQQznsPWqfBtTb3nDJJ0rqNYYAhWWcArFWeWgPK8oHF2JB22EAjYy27 sC5VKq0YWjnZe444QmxtNU+08VC3BjctfM+zrQoQcbsawJzgT3T8Cpr3ok3BYXQnTHtJ XSkperLmNNtBsLai8vA8rIjDRBg8PyT2lzTBFKOrteewKbt5MYMIdHFR40t+HMWbV7OW 9oqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733327894; x=1733932694; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rCa75btXGR+JBvjWE4MSNe0BWB1SJNgQ2NyGvR5jDOE=; b=LBzWnzwBu6BOAPMMWwvK+wFGct97nC2PT3sRqBCLqYU++aOa4zOU5e9IpFGNU7zjU1 g7yHV+c4KXx5UPJNtmLii+QBTXYezZ2QI8aUiyRyICiMBy9c/BTwKUXkjdbMJEbYbA27 okI61jdUz/VlYEqFBcL4GalyKVstuAT41rA9fjHiCl5AxlJNhBHz4/fn3PMQCy+xbBVu vVAl9XGRLB2RdKInw32H9H2NQoM44ArMwWdDs3R2L8Od51FX6vnMun8bSma6nU00Fi+X ZiLK25o0nW9QLzaLaqsx05mShx/ozkdhq1sDRzMbopVAO4Jlu6NzvxaEDWIipNX1DQMb EBgA== X-Forwarded-Encrypted: i=1; AJvYcCVdngTjddc5zgRY/v3U33ihBlwnu7EIMOIDJ90oVvT3wPZi2pqX0RMpGsciO0n6ifSKsCeTXMFLV2SbRa0=@vger.kernel.org X-Gm-Message-State: AOJu0YyeNElWdRsfrupr6D0YYFwraWTjtrSr7BseztxAHwJUdjERZWY9 kO1JH1wAsS0lPBLoAV1kIczp6xJNyO9V8PLFOIipKJ0YcD9lVli3DmKFXFzA25Q= X-Gm-Gg: ASbGncspBbrW3AO5oOGFk3Yt17YZUJbiDp50vCD6LO1QhJy6mdSCA8jFe3Yertgw36D FlcHGAzU6hciB9Iis1mCOtNd5OLOO0WlvWMT+XstfR0XcXzBvWXi4ru+Kmi3x9oNVpfGYd3tJZQ diQkiKhvOZlp3OkrNzsUcUjoPOWhlCl4lSTzf29EAv3uLj+QbHWDyWn87JUD7DICNcXxEh5q69M kVlVtWHPVjd+ZHjEK/txPcL3W4Yp8HjlUHeoIVnx4W+JEFTgtrb6hJNjnbb+bIru9clDtBV28WG ycCH X-Google-Smtp-Source: AGHT+IEhS9vjmVrzP9oYWIqvMT/vBgUQO27+Wg3FLUUWaMq97U4rJ5LeXOih8bwGbMJrzOhbenEGqQ== X-Received: by 2002:a05:600c:524d:b0:431:5aea:95f with SMTP id 5b1f17b1804b1-434d09ce368mr64118675e9.16.1733327894161; Wed, 04 Dec 2024 07:58:14 -0800 (PST) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.161]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434d52b5677sm29043695e9.37.2024.12.04.07.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2024 07:58:13 -0800 (PST) From: Claudiu X-Google-Original-From: Claudiu To: gregkh@linuxfoundation.org, jirislaby@kernel.org, wsa+renesas@sang-engineering.com, geert+renesas@glider.be, prabhakar.mahadev-lad.rj@bp.renesas.com, lethal@linux-sh.org, g.liakhovetski@gmx.de, groeck@chromium.org, mka@chromium.org, ulrich.hecht+renesas@gmail.com, ysato@users.sourceforge.jp Cc: claudiu.beznea@tuxon.dev, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Claudiu Beznea Subject: [PATCH RFT 0/6] serial: sh-sci: Fixes for earlycon and keep_bootcon Date: Wed, 4 Dec 2024 17:58:00 +0200 Message-Id: <20241204155806.3781200-1-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Claudiu Beznea Hi, This series adds fixes for earlycon and keep_bootcon on sh-sci driver. Patch 1/6 was initially part of [1], then posted as standalone fix at [2]. Patch 5/6 was integrated but then reverted as issues were identified after that with it as standalone patch. I added it in this series to keep all the sh-sci fixes in the same place. All these fixes are prerequisites for the Renesas RZ/G3S SCI support. Series was tested on the boards with the following device trees binaries: - r8a7742-iwg21d-q7.dtb - r8a7743-iwg20d-q7.dtb - r8a7745-iwg22d-sodimm.dtb - r8a77470-iwg23s-sbc.dtb - r8a774a1-hihope-rzg2m-ex.dtb - r8a774b1-hihope-rzg2n-ex.dtb - r8a774e1-hihope-rzg2h-ex.dtb - r9a07g043u11-smarc.dtb - r9a07g044c2-smarc.dtb - r9a07g044l2-smarc.dtb - r9a07g054l2-smarc.dtb - r9a08g045s33-smarc.dtb - r9a08g045s33-smarc-pmod.dtb (not integrated in the latest kernel tree, but the device tree was posted at [3]) in the following scenarios: 1/ "earlycon keep_bootcon" were present in bootargs 2/ only "earlycon" was present in bootargs 3/ none of the "earlycon" or "earlycon keep_bootcon" were present in bootargs 1, 2, 3 were tested also with renesas_defconfig on r9a08g045s33-smarc-pmod.dtb. Please give it a try on your devices as well. Thank you, Claudiu Beznea [1] https://lore.kernel.org/all/20241115134401.3893008-1-claudiu.beznea.uj@bp.renesas.com/ [2] https://lore.kernel.org/all/20241125115856.513642-1-claudiu.beznea.uj@bp.renesas.com/ [3] https://lore.kernel.org/all/20241115134401.3893008-9-claudiu.beznea.uj@bp.renesas.com/ Claudiu Beznea (6): serial: sh-sci: Check if TX data was written to device in .tx_empty() serial: sh-sci: Drop __initdata macro for port_cfg serial: sh-sci: Move runtime PM enable to sci_probe_single() serial: sh-sci: Do not probe the serial port if its slot in sci_ports[] is in use serial: sh-sci: Clean sci_ports[0] after at earlycon exit serial: sh-sci: Increment the runtime usage counter for the earlycon device drivers/tty/serial/sh-sci.c | 121 ++++++++++++++++++++++++++++++------ 1 file changed, 102 insertions(+), 19 deletions(-)