Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2331495rdb; Tue, 3 Oct 2023 19:15:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhcedj4h1t8vK3D/qt8KIK1OdtX2Tr6VU+xf2e6j8SJzGw02k0dl54xONtv2CFYeUt0mym X-Received: by 2002:a17:903:22d1:b0:1c6:2b5e:824e with SMTP id y17-20020a17090322d100b001c62b5e824emr1311243plg.28.1696385704768; Tue, 03 Oct 2023 19:15:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696385704; cv=none; d=google.com; s=arc-20160816; b=DFo0XS/gNUUQJfNqTfijF0+gkRbcp+c9t53npz8mAk2e8FXnN6NVaP1miokisEfFok khu75LonZygsq97z5Xc8cC7EdgPAz4UqGL6WR2hAIYuzByU4h3iBj6y4EnpT8+Xev4pd e5vJHCJeXFpvgvdGB10UwnHo0pSdouhe8eFLgY0m7tWZc7chm+6j4iq2ktzLugvoCI9m 2TkHoLqChJ3u+E4oGxubqQyiI1Z+wWXQ/E2dzcnXd/yvp+H0dhSmm0rZG2XaTXI4YZA1 RVfnH1cBr22AClFhCE6qtn9O7ZGK5olDPzy1ufbS7SoQoIg2cs9UHhB6cDypLH/ZctVm zLQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=wL/gvsprhjEZszRQWXUhRI7tvZHZz1TYH1dWVu/QSw4=; fh=PYaRO5AJAuyozJwYuoZZ5tLbJuCD89pi+gLFe+75L7w=; b=SUTTHhr6rGN8dd5dhEPgMm9BJqbEaSYyqschyoJeCQCfXkAfgpXOw6I4u1mBDxK/IZ 9cU2uHs8nUt9yzhFPbDA5Jkw6IcRXYp7RAFYH7JEGemgm/SSf87zFRFmbTtBs5JDRTiN cT/9LlobSG8R52dIBLJe0RL4P0bbAChPz3LGOA0kY+S41U6HVVlsiqkxSjLGleaGxC4l +bSa/EHIDHAlWRqrsOZ0VHn10UP2NVvjn9gGlMU8PW09TRh48r5CwURwIcoMkSNYT3jJ 1UR4VcHn/plbQ9H9mj5cOHqf1YzyUWzRQg7G6lVbShOA+42p3PEETzsodcmw3eGb0i1V 4QMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=DhxiBrng; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id bg5-20020a1709028e8500b001c75ed2e4a6si2561209plb.106.2023.10.03.19.15.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 19:15:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=DhxiBrng; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canb.auug.org.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 6A971822B2FB; Tue, 3 Oct 2023 19:15:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240553AbjJDCOi (ORCPT + 99 others); Tue, 3 Oct 2023 22:14:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbjJDCOh (ORCPT ); Tue, 3 Oct 2023 22:14:37 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C0FDA9; Tue, 3 Oct 2023 19:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1696385673; bh=wL/gvsprhjEZszRQWXUhRI7tvZHZz1TYH1dWVu/QSw4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DhxiBrngDKnaeCE3NffpmXN3231Il4f4EgQGtMOQDQ8olMI8InwXfVWqxhlzaOsMZ 7l2w98CJJL4qdJU/3ACLY8rdVGhdjGxyTEGR5S1tf8nvHjMsFYXYbiBClSZXZVXxeF nQyE7BEmpPLJss/P3bFnT6BGVgYpCeBoxmt74wG6SxIQLL1+nqC0vdJ00nfIyXtubP Dhp+YJNjLWVLQIdmW334BgL0Xj5JiMeyXDGr6awR7pZmsWceW1h6LmQSteGSgEuWCp 9O87It+qu0oND14uArrwJbLY9TBQesO3McpEgByo1tbyXQ1gZOOHPrrTuIfgKlYSwp xcIT9kMvwd2QQ== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4S0dYN5xvDz4xF2; Wed, 4 Oct 2023 13:14:32 +1100 (AEDT) Date: Wed, 4 Oct 2023 13:14:32 +1100 From: Stephen Rothwell To: Greg KH Cc: Greg Kroah-Hartman , John Ogness , Linux Kernel Mailing List , Linux Next Mailing List , Lukas Wunner , Thomas Gleixner Subject: Re: linux-next: manual merge of the tty tree with the tty.current tree Message-ID: <20231004131432.40b7b946@canb.auug.org.au> In-Reply-To: <20231004125531.0c61a99d@canb.auug.org.au> References: <20231004125531.0c61a99d@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/cWj/Urpy0XUJTATI._GPFnB"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=1.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SORTED_RECIPS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 03 Oct 2023 19:15:02 -0700 (PDT) X-Spam-Level: * --Sig_/cWj/Urpy0XUJTATI._GPFnB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Wed, 4 Oct 2023 12:55:31 +1100 Stephen Rothwell w= rote: > > Today's linux-next merge of the tty tree got a conflict in: >=20 > drivers/tty/serial/serial_core.c >=20 > between commit: >=20 > 8679328eb859 ("serial: Reduce spinlocked portion of uart_rs485_config()= ") >=20 > from the tty.current tree and commit: >=20 > 559c7ff4e324 ("serial: core: Use port lock wrappers") >=20 > from the tty tree. >=20 > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. Not quite right :-( This is what I used: diff --cc drivers/tty/serial/serial_core.c index ca26a8aef2cb,b32bbd7aa3d3..ae1d6782ea0e --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@@ -1413,9 -1409,7 +1413,9 @@@ static int uart_rs485_config(struct uar uart_sanitize_serial_rs485(port, rs485); uart_set_rs485_termination(port, rs485); =20 - spin_lock_irqsave(&port->lock, flags); ++ uart_port_lock_irqsave(port, &flags); ret =3D port->rs485_config(port, NULL, rs485); - spin_unlock_irqrestore(&port->lock, flags); ++ uart_port_unlock_irqrestore(port, flags); if (ret) memset(rs485, 0, sizeof(*rs485)); =20 @@@ -2480,12 -2474,13 +2480,12 @@@ int uart_resume_port(struct uart_drive if (ret =3D=3D 0) { if (tty) uart_change_line_settings(tty, state, NULL); + uart_rs485_config(uport); - spin_lock_irq(&uport->lock); + uart_port_lock_irq(uport); if (!(uport->rs485.flags & SER_RS485_ENABLED)) ops->set_mctrl(uport, uport->mctrl); - else - uart_rs485_config(uport); ops->start_tx(uport); - spin_unlock_irq(&uport->lock); + uart_port_unlock_irq(uport); tty_port_set_initialized(port, true); } else { /* @@@ -2592,10 -2587,10 +2592,10 @@@ uart_configure_port(struct uart_driver=20 port->mctrl &=3D TIOCM_DTR; if (!(port->rs485.flags & SER_RS485_ENABLED)) port->ops->set_mctrl(port, port->mctrl); - spin_unlock_irqrestore(&port->lock, flags); - else - uart_rs485_config(port); + uart_port_unlock_irqrestore(port, flags); =20 + uart_rs485_config(port); + /* * If this driver supports console, and it hasn't been * successfully registered yet, try to re-register it. --=20 Cheers, Stephen Rothwell --Sig_/cWj/Urpy0XUJTATI._GPFnB Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmUcyogACgkQAVBC80lX 0GxhSwgAoWBiU6AXSuU+LOvF6GWSl/l9bJUpOBnHtkO4tYs2hs328WU6eb+kEYiK 4ty2iDeVbi+cXId0F84ktivq1C+jmZ9t8sW7qsp2jQHMDYUsa7D9oW0j7zdbxmiJ I6Go/7gURmRDg7qzx+3zuaSOno1qPGFw1y9JhXN7mC8mkUXKvoMWqmv5Myx4Y+Yk P9hXSqcEWcmMWGEDVDyG9dcmNDV8r2HnUEafak+ItadarxaWi7UfhkV79tmUdKAN Ne583pp68VgUBTihNSUeuL9IzJNOlUrRPfHT6EBrMN8kIGQUi33fh6/QKRkaXdhP Ji/m0P2iQuXl5JQe1Z7ReZmF7muY5g== =4GaI -----END PGP SIGNATURE----- --Sig_/cWj/Urpy0XUJTATI._GPFnB--