Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3989872pxb; Mon, 27 Sep 2021 07:09:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3qgzpZeKoNWdeLKHVpCdY61H7LhPQIXZuGrHNq3VXFdeW3+YL3cABfh2D5uckuOHjXGnG X-Received: by 2002:a50:8206:: with SMTP id 6mr65751edf.220.1632751795813; Mon, 27 Sep 2021 07:09:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632751795; cv=none; d=google.com; s=arc-20160816; b=wHB439njhJu8a6L/TFNeMrnvSk9KWqQv4dbJLwl2MqIiom+LbAj6HveVRq8Q5HqngP MU8P7mun79LsAV7LMdH/otas3SWHWJstuScKarN7hF6ccL0ECf2E/JSasn31GQNWVcvo fE7spNCwb8/Tvbh8eD3QX8q0onhqG7Pka4JHfhIRthpKZStfMU5vdSaDyNY6k7MwWDTH E9t18W0GZpD6RtYaLNtPmvGdrhkYFimRPc1/n1uA1ya1KlRD+UEaAcc3meA1atRu5dNh h/h2TBH8JP9WTFELgKvA6dnEQGBMkzCxHSDVLvJchfCahKq5u0h+FZ5mzptxsnlk3Msp IJTg== 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:dkim-signature; bh=RfI7UXmHXvZKgn/wzz9myO7x7o1RD47ZTKIvckHmoB4=; b=sqSnEyjlcloe6FfJzQ1TQa7bdBh1nR18zqIdxuep7X84wuV1EiPC0YchaQOOD2HAuO xXA58ewD5mRHjyQFUEjOmCYcmF5VcMT2MQLQwDcu0IiL03DOHF/868l0dU4MTnmf7Bcf J41Zy24jo7BLlpS8PqtEVgckJy1qZoy4NeHnI0GOMIQJPE6Bcl0ohehNDIBn89SJkp3w Te792miUcU2Zfz08DygfMggynx5Sal3gZWiU033GCbZA7fJ+CqqMMoIi6oRKilOWqSCc +kmMl3x8LtnbLPfraFSbWh8CRZ5ptPNedPz8tViq2ub4S0p9O9SR0D+PmFdV+9IWvdBc BpLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zs7AHqdC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si18496258ede.406.2021.09.27.07.09.29; Mon, 27 Sep 2021 07:09:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zs7AHqdC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234700AbhI0OH3 (ORCPT + 99 others); Mon, 27 Sep 2021 10:07:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:52178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234461AbhI0OH1 (ORCPT ); Mon, 27 Sep 2021 10:07:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 457AD60F46; Mon, 27 Sep 2021 14:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632751549; bh=6VROViTQrHqhxIEB6/H5ChtA2FaNKxLZXhP74mU/Srk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zs7AHqdCHiOKiAq0eNsgaiimlkEPCatu+nACNpXC3yTOp8BJYfDeYp6DThh5oRmUX 8ayUntOGkOtmubwGLS79GH3JdZz0FD5+YMIwuUJqN58Nu2zeKSRoZtpsnMhK7NIZo8 Yy0gqjkVUC84QQnC46OVh2+L7H2j7a1EltC/hdwIhHP+F4FgrLXTOSJp06MITtZVR4 OqVuIyfSIMlxSfSUPofKTQ82EB/2Dxfou6HDpph4EwPxD9p72xjCOfBS/7vyKWvLpm id1tzNao8SFJzNu2uNrra3RLxADwHR1Izyv7wE9NFrc3iWA9nBjMkCAYFe9ZvP2TMz x5KMD90mWrvyw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1mUrGN-0001wu-UU; Mon, 27 Sep 2021 16:05:48 +0200 Date: Mon, 27 Sep 2021 16:05:47 +0200 From: Johan Hovold To: Tony Lindgren Cc: Greg Kroah-Hartman , Andy Shevchenko , Jiri Slaby , Vignesh Raghavendra , linux-serial@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/6] serial: core: Add new prep_tx for power management Message-ID: References: <20210921103346.64824-1-tony@atomide.com> <20210921103346.64824-4-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 24, 2021 at 06:09:18PM +0300, Tony Lindgren wrote: > * Johan Hovold [210924 14:38]: > > On Thu, Sep 23, 2021 at 06:02:27PM +0300, Tony Lindgren wrote: > > > > No need to be patching line disciplines for this. > > > > > > Do you see issues with handling the errors in line disciplines? > > > > It's just conceptually wrong to push retrying up the stack, possible all > > the way to user space in case of non-blocking opens, just because the > > device isn't already runtime active. > > Yes, I don't see a way around that currently. Maybe if we start making > use of uart_tx_stopped() or something similar that could be simplified. > And we'll be still hit these line discipline error handling cases > anyways depending on how long the serial port wake up takes. I didn't really look at the ldisc change so not saying it isn't needed for other reasons such as a full write buffer. But then I'd expect it to be presented as a bug fix (perhaps it was). Johan