Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp280456rwe; Fri, 14 Apr 2023 02:41:50 -0700 (PDT) X-Google-Smtp-Source: AKy350a4D4/Jp3mbdnCcg3JS8kJoPv93mngEQohXv8n6n3nnkGn6BYRNMisXd4zkXse5+TWGuE0w X-Received: by 2002:a17:902:bb92:b0:1a6:9ec6:6a92 with SMTP id m18-20020a170902bb9200b001a69ec66a92mr1435959pls.55.1681465310616; Fri, 14 Apr 2023 02:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681465310; cv=none; d=google.com; s=arc-20160816; b=dzHRSaaP6xwh81cGyqRfWzya0tJNUrgdZv1SKD9Ih1XmPhhNE91ScS32b48tjVqhkW /arsGaCa56unm23rYY3CTsJ09kZELdYeX5iFzEObANoUvfJq6HAfhZPybWB1iZpXk+am fOtkrJEV1RAWUsV2emhWlVl3BmSt9Y/a1fHgK9y/xZPls8W5fn8DPVOfavgbWM4XVgB3 Hm51qZ+8isdwLZOprWye9Hz6m1H/TdWTBH4silahaoL67T1fIC5W0v6twX6HUjWs+srX PYf3WkSqvfAVTaAwWv3I0M5RtriJrAkEFAxJ/irj2DR8hNbCEAmS+8I73mMR65MCA6nD sq4g== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=C4S6KDQCgnzzqa0jc92qKEmA1n5sKA8j28OF+08VTyM=; b=nAF3M2yssc0VtPa8qaD1DIRB8uvu+SCojqxLT+//klCmCQ1nAQ+LCFHPaORFmU08lj 0iQ38NOvXLcfkc/SFPRFRrXdFxvlfU6Z5vordkJjZ3wnnShSOpAzoOAQrlxRj0U/6Mmm mjbQ6s2Jq0dVh5kN5Dsq2cEreh4Oc8Zcx+Lj1Fp3fOE0w1hPm8c36CtNYyRVON6nA4mf Phin9qEr3BKTzU+5jO9QhV3WGvQ89jrxtpCUewlbfzehgM1qmhRWbDLpC3d7zto1N4up z+iCYmKwnNIlI1wueDEZb+VwZcHz0no/JLnRADDIlYH58l/M0OYA7ZWQ82Q9jn2m4WTi jvZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k37-20020a635a65000000b00518a1800624si4402163pgm.307.2023.04.14.02.41.37; Fri, 14 Apr 2023 02:41:50 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230063AbjDNJkj (ORCPT + 99 others); Fri, 14 Apr 2023 05:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjDNJki (ORCPT ); Fri, 14 Apr 2023 05:40:38 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A67721BD0; Fri, 14 Apr 2023 02:40:37 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 8D20980A6; Fri, 14 Apr 2023 09:40:36 +0000 (UTC) Date: Fri, 14 Apr 2023 12:40:35 +0300 From: Tony Lindgren To: Ilpo =?utf-8?B?SsOkcnZpbmVu?= 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 Message-ID: <20230414094035.GF36234@atomide.com> References: <20230413070342.36155-1-tony@atomide.com> <20230414054726.GE36234@atomide.com> <63b333cb-13c7-db58-9cf-697aa1c4c48a@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <63b333cb-13c7-db58-9cf-697aa1c4c48a@linux.intel.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 * Ilpo Järvinen [230414 07:36]: > 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). OK works for me. I'm now wondering still if we should clear all the conditional hardware specific functions too in addition to port->pm that get set in serial8250_register_8250_port(). Maybe best done in a separate patch as needed.. Any suggestions? > I forgot to give this earlier: > > Reviewed-by: Ilpo Järvinen Thanks, Tony