Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp167779imu; Thu, 24 Jan 2019 23:42:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN6lwuiYbGfxadAmskTRx81Jl0tnq/ghkBWr92lQjOf1k0xzEkorMiT9NX4HFu+DbCXXJeK/ X-Received: by 2002:a17:902:8687:: with SMTP id g7mr9799379plo.96.1548402167790; Thu, 24 Jan 2019 23:42:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548402167; cv=none; d=google.com; s=arc-20160816; b=A5FjCVWRzkemcPn80bweKDSQRRiWDKBd8k8XJnc2gyMurchBUkeSBLfU8TLU9nA+79 YzGt5INjal1+InQmXlu83xDR9bl0mPjtzS+dXab054EgJnSsHW29SyKjWC4iMfw4WzWe y0wmvXBJA9DkzH3LVrB0LjK/+SXFv/9KsPfkb0Z+/PVqMqZ2AscGUAY+s1KFBDvq0He5 uTVWkp82np0O4etPZx7XDd2WKv0MgdPNNyE0HTZvg4wBOWndnBvO3axq8FZ1S+fy4Q36 brZ09UlLBem+dhDb13dD33Y7yPeEPgSMHIe6fu0cpGJ3dI/KiVb4228IvBsnBAjKK4Sn UNkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=UkAAmquoQTxMloqA6R/g6lTOzUmFfR3eK9kar+gZ7Qo=; b=KcJE3ISmkdmS6YhZnrNLInNCAYZ1P9WB2ctPp1F1HaGTnf1YAybLE38WwztLaqb0sl rGaL1yV1cT2aJxyL+36M+ehCYO7qd3KP1luMqXAPe36StSUJW10JEzugHH5X+KSDkuAO hgXO9c4Ir5ZhRD9hKjSkyVrjGTfOU2kbo9MMbaJa24v+XZNCTF40uzJEaWioDDiyHNZ+ ZfA+SQLZdigQKXDyx6DavlvzOXyvC1QobOZKv1SweeFTbs6OnUfEb1zmn08d6NQllQKJ 5jsjWrhCyfhg8+KKSffZwa65c5T8dDxNm9W42Z+SxV1RGO7Qo6DyXs/NSGhplsZ3EeWb Jupg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p4si329754pli.432.2019.01.24.23.42.32; Thu, 24 Jan 2019 23:42:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728434AbfAYHmF (ORCPT + 99 others); Fri, 25 Jan 2019 02:42:05 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:37850 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726501AbfAYHmE (ORCPT ); Fri, 25 Jan 2019 02:42:04 -0500 Received: from marcel-macpro.fritz.box (p4FF9FD60.dip0.t-ipconnect.de [79.249.253.96]) by mail.holtmann.org (Postfix) with ESMTPSA id EBCDFCF172; Fri, 25 Jan 2019 08:49:50 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Re: [PATCH] Bluetooth: hci_ldisc: Fix for pty driver From: Marcel Holtmann In-Reply-To: <20190125035510.GA21654@myunghoj-Precision-5530> Date: Fri, 25 Jan 2019 08:42:02 +0100 Cc: Johan Hedberg , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <51535426-2591-4246-8425-65B3B1770955@holtmann.org> References: <20190125035510.GA21654@myunghoj-Precision-5530> To: Myungho Jung X-Mailer: Apple Mail (2.3445.102.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Myungho, > tty_set_termios() should be called with slave side of pty driver. So, If > tty driver is pty master, it needs to be switched to ->link. Also, > tiocmget() and tiocmset() operations are optional so we need NULL check > for some drivers missing the operations like pty. these are two independent fixes. Please turn them into two patches. Regards Marcel