Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp175399rwe; Fri, 14 Apr 2023 00:37:24 -0700 (PDT) X-Google-Smtp-Source: AKy350ZdSkpbLbmqwPzO0ONm570SWqsI9Fb5UXL1Ed29CqSihsw5sbHlaoMrZy6IXxe6XBW3wpzx X-Received: by 2002:a17:902:c943:b0:1a6:4fbd:d5c0 with SMTP id i3-20020a170902c94300b001a64fbdd5c0mr1730657pla.53.1681457843876; Fri, 14 Apr 2023 00:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681457843; cv=none; d=google.com; s=arc-20160816; b=t2JmG+/be4bFayNAWHN4bACAPL9VebB/eIcmY9QHNjHwC9XwAaNXT7Vt4WXs7kZs7y YhnajtzxEqJ8u8jAfS0LyGzFOgZbZylPuo8VggGMzn30ovk6nw8Jc6RYrIVeFWqLNrTC 99VWu/RH8vgQg/bI66m85FtxhB0LSeub0DSIci36c6Zhgej89aG0XdHqLgiZSSvau2KJ m8UQFwSk1H562Ir02UFaOXMcFEM8aKi6QWw6oj/DVrgtY8sEIKfg1c0OCgWfY66o7Z77 OnsxisXqhXJ9wK56gl0bgjKBgxz70nSfLzlUZJqWEH+OCGfr/eK4DHvUw6LhkGVnHhgh kbdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-id:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=8qqrvjgDPUJc71mkxAT0rTaKlgQhNvNFX9xCT+Ma7rk=; b=kCWflthvaGy43L5ja2Gobluv6YZ/+DE1sRtS3981CUhe7pvPpSQ1g0owrz7xhb39XT McJdSvtV9KZCdrPpmnXMYIZE80UB2iSv1dNC+qnVDprI9q4gwIe4226oVv7g8tRaScFH tfBqA1/LrN8iMyJ5r+XXdsKhwENfM3PuM0uG3Rt/08Tcue0x7TNsSHO4dCADxjw/ylEJ 39ROVTp5IC5D22+0awG4BEL1kvNoKRmYjabh9JMXPaNhXQ2mtVScTaAnME7abb5V+hPQ iaQ5cmywyRZ+YkrAuz0XqgUH0SI32B6qC7JamqNYXmHx6RRTwJwYuBlcq6Mutu0qz1Ko tO6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Bjzoy4ly; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t5-20020a170902e84500b001a63d07af3csi4297462plg.41.2023.04.14.00.37.12; Fri, 14 Apr 2023 00:37:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Bjzoy4ly; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229992AbjDNHg6 (ORCPT + 99 others); Fri, 14 Apr 2023 03:36:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbjDNHgw (ORCPT ); Fri, 14 Apr 2023 03:36:52 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B12265BD; Fri, 14 Apr 2023 00:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681457794; x=1712993794; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version:content-id; bh=j9H4XhOqaXRXw7mwZWQX3WnpgTOtPmDyR6IZ2uVoQVM=; b=Bjzoy4lyTBJM0PRSE1SxTEx0gTL4JoUDxb7WyeuGeIxaSLHLXa4v6eRS vjEy+cLhjtNX7Yzt1N/UD6T3u/CP0MHmwUu+YEahRspR1ahahLcbjphA/ IAcBI80xK7HAEspcWvDh3xTF5dfE8PZ2jHScH6LTvFqhsE0yoGVSLQwHe N6YP71EkO1MVZgnXUWe34TEQchRfFDjW4TQK640AJ/huvNPz0zPcafA5+ VfAE2WASMV0rMBkrbn31+zWkk28lOJlHp4sf3/ayBsxaBtCmsFovo/WUL SCW0o6S/uCy7A9eTSlxOvsP6aCo8F4hXv4LfP5fDxT7r9FUi8rO4ntx9J w==; X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="324757843" X-IronPort-AV: E=Sophos;i="5.99,195,1677571200"; d="scan'208";a="324757843" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2023 00:35:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="689701419" X-IronPort-AV: E=Sophos;i="5.99,195,1677571200"; d="scan'208";a="689701419" Received: from smiokx-mobl.amr.corp.intel.com ([10.252.57.49]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2023 00:35:37 -0700 Date: Fri, 14 Apr 2023 10:35:31 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Tony Lindgren cc: Andy Shevchenko , Greg Kroah-Hartman , Jiri Slaby , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-omap@vger.kernel.org, linux-serial , LKML Subject: Re: [PATCH] serial: 8250: Clear port->pm on port specific driver unbind In-Reply-To: <20230414054726.GE36234@atomide.com> Message-ID: <63b333cb-13c7-db58-9cf-697aa1c4c48a@linux.intel.com> References: <20230413070342.36155-1-tony@atomide.com> <20230414054726.GE36234@atomide.com> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-247702714-1681457540=:2245" Content-ID: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-247702714-1681457540=:2245 Content-Type: text/plain; CHARSET=ISO-8859-15 Content-Transfer-Encoding: 8BIT Content-ID: On Fri, 14 Apr 2023, Tony Lindgren wrote: > * Andy Shevchenko [230413 16:06]: > > On Thu, Apr 13, 2023 at 10:03:41AM +0300, Tony Lindgren wrote: > > > Let's fix the issue by clearing port->pm in serial8250_unregister_port(). > > > > Sounds to me like a fix that needs a Fixes tag. > > Maybe commit c161afe9759d ("8250: allow platforms to override PM hook."). > > That's a bit unclear though as the hardware specific functions were > available at that point as they were passed in platform data. This can > be seen with git blame c161afe9759d drivers/serial/8250.c. To me it seems > the port->pm became potentially invalid if a serial port device driver > started implementing PM runtime? > > Maybe just tagging it with Cc: stable is better if no obvious Fixes tag > can be figured out. I'd just put that c161afe9759d there. It seems quite harmless even if it would be unnecessary before some driver commit which is much harder to pinpoint (and it would likely turn out old enough to not matter anyway for the kernels stable cares about). I forgot to give this earlier: Reviewed-by: Ilpo J?rvinen -- i. --8323329-247702714-1681457540=:2245--