Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5632318imm; Tue, 16 Oct 2018 13:25:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Egjyh/NOYJLeVBeaRiw5FSuGUKiP0N2aVBS83MoUSer8ZKHjvIEaipdzkDbfkEZ934O9c X-Received: by 2002:a62:4803:: with SMTP id v3-v6mr24311324pfa.89.1539721545079; Tue, 16 Oct 2018 13:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539721545; cv=none; d=google.com; s=arc-20160816; b=n62VV67mqnUHuSWIvuhIMzqqm1gTt9aVAmCuDu6qntvjvb+iQd4XRrxZ8BSIF6VpcL lBk7NHmNOu2uu4s8+ThD3QNQ2/qr1UKqcm29NTzbTWg4hKEPmowBS1oBTg+pKzaUzJxV OIoM8mv3MmWqNc+E/+HNf+T9UK4VJdIT+YBZoW6RUVKgtc1Bf99dcXqFQvzWM5AtIBii CWHx3tzx0VPgnhwTBYCNNr+t76emoj1YU5Ma69thxGe2OB5eXucVXLknJPacOgwa8IOS l61wBaKBDX6FU6+M8GDxZswlu8R/TzbS55msE897VJbKiPX0lEb7wFAwwAekZfA2ayqF JgZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=oOG9/si3oFUQBBr19f8zMSrCSy4/XHZFZZWajHYysw0=; b=Y1l0lfaQzf29qzJzgqmxmZ2lG5+7pca2pVsML+vyJiOHM08yR9D4JfYWmg6kX3lqhh M280zG1vhr70lkM+jnwYPGV76pHRvy3XQPXtcF7Mfi4ffA6cG/ANjCpj/p0JcJl0LhWf VMo/5jrbsapBdKpJ4GAhfK9m7i6Xdd3uhGD65bkqFnU8R+aSvp3K8O68QPxavThKOX6D wq2QWUxU/up8Wv9QEd0jJk6NJx3YMhtVU+wpd1XMyzqUQ9X32dLDfJx8GJ9ziW7K98QQ DbvRpQhr/6MB7x2UZpaeKg6mqLRRYsiYI2kOwhy/LJNVs31PJyLaZSwnC2FAb8nz2iw4 KaUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=NRKpC4Zs; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f38-v6si16088490plb.168.2018.10.16.13.25.27; Tue, 16 Oct 2018 13:25:45 -0700 (PDT) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=NRKpC4Zs; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726622AbeJQERL (ORCPT + 99 others); Wed, 17 Oct 2018 00:17:11 -0400 Received: from mail-vk1-f194.google.com ([209.85.221.194]:46800 "EHLO mail-vk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbeJQERL (ORCPT ); Wed, 17 Oct 2018 00:17:11 -0400 Received: by mail-vk1-f194.google.com with SMTP id h186so4318588vkh.13 for ; Tue, 16 Oct 2018 13:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oOG9/si3oFUQBBr19f8zMSrCSy4/XHZFZZWajHYysw0=; b=NRKpC4ZsMY5d/5JyI5qVbiRq+UvJnWXzfy+40fI7OcHuyQYkbhUbCSglB2foQHGREk vlpbjvdheov9et3E5kiAWUMYblTPgdVdtnkmTFK6C/E8SgRr8QuRePyPxTZontFO1Q7p b9gX/ZMoIk9iI8oXlE/3yuCP24nxR2OsUrYUigm5ADDsIVwtjLDrVCLv49E3gDF8OpKI KRkih4bGgPb6wnEGLrLkC1kQRWDmblbe8gesf98z++YTAchW9GABrRLlo2orl0LjSr0y iFWtexr7m1ZRUR6xSl1ObU9Zo+gRBXEa144yKbzsAODBVOoNemAM0HMkbWP5pLsHTlMl PLNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oOG9/si3oFUQBBr19f8zMSrCSy4/XHZFZZWajHYysw0=; b=AazQhVfT4e59prxLEgiPwzWKn9KduXxAZVWJWQwFkAZ4lELfRfcGqtQdS6zTj3wXUP F4RlOSmkE6Nrx4XAfYBSORt22jdVWvk34LuVgZeFUXJOnI0d3g07p3GvbzVx7cVKYGl5 g7Vn+Kq3KdiNWfU9yn38ymIdkc9dqotGtzvnODpY2GH07+FkD2ma1YhliQHdRhjGXBYS tlEl6zdcDrdE4eNyNhqHbuyg7bkgo80WyUP0pQ3YqTpnA1JFDS7RbipA0dnfUvHZW7pj 6gNIUJnxyMumFJmOxUS4kraSaam4V2hVnoeyFacNVM1o9+Wl9NZRYzdrYvSTYaPXFzjT tHCg== X-Gm-Message-State: ABuFfoi5R7TrSJe3UIctgLADdzGmNHcDkG7NpN91PEcX/VrdUGnR9QwY JYbixmYM9U0XwvbvYOlCjSXuAGeyk/kDHCoKlTiFdg== X-Received: by 2002:a1f:4c86:: with SMTP id z128-v6mr9393352vka.73.1539721503815; Tue, 16 Oct 2018 13:25:03 -0700 (PDT) MIME-Version: 1.0 References: <1539699060-3055-1-git-send-email-msavaliy@codeaurora.org> In-Reply-To: <1539699060-3055-1-git-send-email-msavaliy@codeaurora.org> From: Doug Anderson Date: Tue, 16 Oct 2018 13:24:52 -0700 Message-ID: Subject: Re: [PATCH] tty: serial: qcom_geni_serial: Rectify UART suspend mechanism To: msavaliy@codeaurora.org Cc: alokc@codeaurora.org, Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Oct 16, 2018 at 7:11 AM Mukesh, Savaliya wrote: > > From: Mukesh Kumar Savaliya > > UART driver checks for the PM state and denies suspend if state is ACTIVE. > This makes UART to deny suspend when client keeps port open which is not > correct. Instead follow framework and obey suspend-resume callbacks. > > Signed-off-by: Mukesh Kumar Savaliya > --- > drivers/tty/serial/qcom_geni_serial.c | 36 ++++++----------------------------- > 1 file changed, 6 insertions(+), 30 deletions(-) Looks peachy. Getting rid of all that unnecessary code and moving away from the "no_irq" suspend op makes lots of sense to me. Reviewed-by: Douglas Anderson