Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2416060rdb; Tue, 3 Oct 2023 23:39:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IED3Xlj3aIln8ZUco2YMU5dy/t4NxJVJwZqRxi2lq9Tw5dm84P80M1S23IF8lIYs1SRsR0I X-Received: by 2002:a17:903:258e:b0:1c6:1928:59b9 with SMTP id jb14-20020a170903258e00b001c6192859b9mr1610937plb.10.1696401549150; Tue, 03 Oct 2023 23:39:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696401549; cv=none; d=google.com; s=arc-20160816; b=HmdyBJl2H921r/Fu+9k3tUcLdYlgsW4aYjay1Bb8wWtL8Bc5aJB2PGn4767/4a6YDr 8GBGIZr8K4AEWaaX7y0WtX5C4HMi9o6746Q7Xxm4ZEzxGTyZyO/QFXFaCxt0upndzaSP QDLDpeJm8K4ZJuDgYBZ41U1cO1m0zDB6wyK54YrowbcWAuy6kwQFeSfvJ6XaNQyJNj1T elIn36uw43UOkmUP9G5hiLB4LrDSQ/cNxPbNmAEMmPpsi9F1MnXA9yTnDcf7UKG+NOEo irMNN0oG1UDJys/Csf/b1U04X4dy+6VMAM07tUHiOypVHn8AlyJSgbzv1jHk0FXQqAXs wjPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=vVULqIQxkx8IsxEb/CWWAc+AFUmUwyFUCiEJjN/g/cI=; fh=hAi8d0HT0QLGfF9DFfi6yta48cdoAxCjo4HNMSOfJMs=; b=SaS5jFto/vzDP60kHyHZ0dnwryH4gnostJRH2tuqa97uSS8r2rRXffAtsyiYIUuWyu JE8db4L2txpdPvlnR1SDCpoOPgMNWY8scrS5zcelrWHaPdIbJOPOykKicUBNMG0Q5p5L o+IEqP9DtHx8CZbqlttDzKKomaVWjPQolYAOAcUkgcHAoucw4BNFkScp7eFhdfIgzpdi WUBg9fmpHU2EwiuRacLFI7/Umm3xuPQLSDIaujLsKaPvce9PwXn6A+xeECuvGmo6H6HB Wlq8eApZkYFnCdNVfTPVLLLCRVm727BtJQsuDZKMlvvctz87/SS1JIlwQWYGixRSP10t Uw/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm2 header.b=CqohPlbO; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=O97LdEgA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id u7-20020a170903124700b001bb6d711625si3293162plh.279.2023.10.03.23.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 23:39:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm2 header.b=CqohPlbO; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=O97LdEgA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4993081CEB3F; Tue, 3 Oct 2023 23:39:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241391AbjJDGi7 (ORCPT + 99 others); Wed, 4 Oct 2023 02:38:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231894AbjJDGi6 (ORCPT ); Wed, 4 Oct 2023 02:38:58 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EDC0B8; Tue, 3 Oct 2023 23:38:54 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 1B4695C02A7; Wed, 4 Oct 2023 02:38:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 04 Oct 2023 02:38:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1696401534; x=1696487934; bh=vV ULqIQxkx8IsxEb/CWWAc+AFUmUwyFUCiEJjN/g/cI=; b=CqohPlbOWBQcywrpAL AMCCoG9IyfNm2o1HLGnmOSiQY/Z/o2XL9iZa9ekdZG9iEiYCnjyCZUnhnZbna0hI HvBUXHjAG9qQV4R6MaXJT2E8HL9usTVTdPLrewyfNq8zfr6aLcEdMJj612x9260j c+Pc/JzfhiQMsrJhUE6zXElAeOekEEauGpZ8kjERGIwXAhJ/MRYJYz76o0W+LCJx T6CXQ2xnCw4AB9PAK7uL+JzEn7Xppa1BVflVExE4zUjaxyRgmDDUatDlgj76JoZj /D38kx52rWCsy2yWSs731CVr+ykKyTiah9SRmtVuXIvi7lh5czbYZ7Yz143e820e eMOQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1696401534; x=1696487934; bh=vVULqIQxkx8Is xEb/CWWAc+AFUmUwyFUCiEJjN/g/cI=; b=O97LdEgA+mlVkqVUmfLDW8Wo2TqZk xmotTs+rgUzBidzCbD5kzbgjfU5K84kbTMtMTqq5rf4HdA0aldto9zWZ8kXEwqbr 6c9CvHSTtLm0hf8M7vh6cbhOQBMbK9xPztzkTma94e1z7fz7pf/eH1rltVDwIiUR +ox634+Eu9nRh4zKz77Jc1MwloC24h++iIUfpW/WT3mdIoHHQpHUDTO4DWGGXxZi 6E4sFyOHRx5ZmKJWbOgGNSzhqlELSdGN18g5FxvxUh5f8vaECT3LF0gYjPhFQK37 MQb3fjyoocXbxpHlmdxVTltqDOiKmgjemrBTq5Fru3eEX6U6Lmz3VsmWQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrgedugddtiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpefirhgvghcu mffjuceoghhrvghgsehkrhhorghhrdgtohhmqeenucggtffrrghtthgvrhhnpeehgedvve dvleejuefgtdduudfhkeeltdeihfevjeekjeeuhfdtueefhffgheekteenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhh drtghomh X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 4 Oct 2023 02:38:53 -0400 (EDT) Date: Wed, 4 Oct 2023 08:38:51 +0200 From: Greg KH To: Stephen Rothwell Cc: 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: <2023100430-padding-deranged-1617@gregkh> References: <20231004125531.0c61a99d@canb.auug.org.au> <20231004131432.40b7b946@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231004131432.40b7b946@canb.auug.org.au> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 03 Oct 2023 23:39:06 -0700 (PDT) On Wed, Oct 04, 2023 at 01:14:32PM +1100, Stephen Rothwell wrote: > Hi all, > > On Wed, 4 Oct 2023 12:55:31 +1100 Stephen Rothwell wrote: > > > > Today's linux-next merge of the tty tree got a conflict in: > > > > drivers/tty/serial/serial_core.c > > > > between commit: > > > > 8679328eb859 ("serial: Reduce spinlocked portion of uart_rs485_config()") > > > > from the tty.current tree and commit: > > > > 559c7ff4e324 ("serial: core: Use port lock wrappers") > > > > from the tty tree. > > > > 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); > > - spin_lock_irqsave(&port->lock, flags); > ++ uart_port_lock_irqsave(port, &flags); > ret = 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)); > > @@@ -2480,12 -2474,13 +2480,12 @@@ int uart_resume_port(struct uart_drive > if (ret == 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 > port->mctrl &= 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); > > + uart_rs485_config(port); > + > /* > * If this driver supports console, and it hasn't been > * successfully registered yet, try to re-register it. > > > -- > Cheers, > Stephen Rothwell Thanks, looks good, I'll use this when I resolve the merge conflict when it hits my branches. greg k-h