Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp200971pxv; Thu, 24 Jun 2021 06:11:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGys2DfpfrlHZnOu05zkHW/Oslc4hGyuSRPGJRjtg73/ZNoOadjdUc7kix26kEOtot7L0d X-Received: by 2002:aa7:dbc3:: with SMTP id v3mr7098088edt.63.1624540275955; Thu, 24 Jun 2021 06:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624540275; cv=none; d=google.com; s=arc-20160816; b=kItXZXgvpVNQNKjbkxChoSh6SpSSx/co3oBrxiVaoNzZG+eVeaj55oNiENl7JJMfCw gWx1K1oOyxtFJgPp3xz1MbJsV6yBRmAuq/rOAhAEQPMJImSMz77QqV0QvKN54Cz3enKY hDCvR78gbLCPZj8knKUoXMe0kgkFnqZ5jXq+kqEWBhXG86ipDu0GhhBoKdYrJor/Jkx0 r9G/Y2Gq0HxMXV/EIM3Qx76ipC174ss1R332nwuDkHqD8O9b0DN0F7plpJxyUznuQnUH q4g2yz6hkBOjj1PeIbvKZ56/HGMAQXKWx+w02UP6P87D1dXsbU4zfLAkJoBzoN+KA4XB d60A== 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=pk8VWCLjTbhZPGsPwDRbWX2rHBKZhkqAD8GsHeJG+qk=; b=J3hV4kmWnoQh8qfXUfsKyZmgDc8D3JW00urO02UKL1TKKY+1cFKvzZvy4UNgR0bz3T 9fCgVDXIqYidfrntQP4FOkosKJd0ymOETwfejIxALmBPi2tgJdHXpH+s6clLzQwmyZgF PPfoM+i4XKqd98mYeLioj7MPux3Zrz/1iWaKYxW8BRiCdsgIicazJm/woPgADqX3Y7Dc /wBYcp+2j+qDcRk4vK0YbSKUgp/zjugWQPNmdH//TSraJzMymbYH72XD+BxRndWbtUIT +2CpDc41ojRhFMhi4zqU6vfPcrsGxJiWqOtPF10YJS3SSTiKmkE8l2mB3xaEUrbXWHp3 Jo8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=q2Po7VQ2; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx12si2533839ejc.381.2021.06.24.06.10.50; Thu, 24 Jun 2021 06:11:15 -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=@linuxfoundation.org header.s=korg header.b=q2Po7VQ2; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbhFXNJx (ORCPT + 99 others); Thu, 24 Jun 2021 09:09:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:47904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229881AbhFXNJv (ORCPT ); Thu, 24 Jun 2021 09:09:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B4D03613F6; Thu, 24 Jun 2021 13:07:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1624540051; bh=nik1xFcO54CLXrylWhRVNwQOg1iEtMgXWsXyd08Z8ts=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=q2Po7VQ2CLXrr8Hz0Eai4V6b2W0orVBH2NO2vkx9Cyl31ci67koMJ9ItY9Z5a9rzY 34w/MJJUV+b6RrnrGJeoZSI9n0lJ9gErwqr7JO5vNAhRyjUb23WaI2lDfwaal7N35I t9vx3saYgtN0rlvVN8wnBgJZ2tMyIxtE/1y/6/N4= Date: Thu, 24 Jun 2021 15:07:28 +0200 From: Greg KH To: Saubhik Mukherjee Cc: vgupta@synopsys.com, Jiri Slaby , linux-snps-arc@lists.infradead.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org, Pavel Andrianov Subject: Re: [question] De-registration does not remove port Message-ID: References: <3e131267-e1b3-1b83-f8be-0577da479223@gmail.com> <7af6c0a5-c990-5a40-104e-13f44b1cb4c5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7af6c0a5-c990-5a40-104e-13f44b1cb4c5@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 24, 2021 at 06:33:01PM +0530, Saubhik Mukherjee wrote: > On 6/23/21 12:44 PM, Greg KH wrote: > > On Wed, Jun 23, 2021 at 11:42:36AM +0530, Saubhik Mukherjee wrote: > > > In drivers/tty/serial/arc_uart.c, arc_serial_remove always returns 0, > > > instead of calling uart_remove_one_port to remove uart port from serial > > > core. The comment says "This will be never be called". In my understanding, > > > a port added using uart_add_one_port should be removed during > > > de-registration. > > > > > > Is there a reason for this behavior? > > > > Did you test the code to see if that function will ever be called? > > I would like to reformulate the question: Suppose arc_serial_remove is never > called. Then I would like to know how the driver de-registration is > organized since the UART port is never removed? I would like to reiterate my original question, have you tested this?