Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1230787lqs; Fri, 14 Jun 2024 23:18:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWMUva7Or1wPprVS1E8XS8IUyrbk/ChAIGKUkQ+dy/Lw/ggEb6SXHKHJThDczw6oqnSbjSdoblMzFXgibSbpT36loZBAwauxpzbFDZf6g== X-Google-Smtp-Source: AGHT+IGDbHI98uY9SF67GAq9IuE1yQYkRe/JWFiVn14+AK/IdD8544I79Gv/g19QN21WvWt8lfuU X-Received: by 2002:a05:6808:211c:b0:3d2:18c1:bf35 with SMTP id 5614622812f47-3d24e936d94mr4913285b6e.33.1718432339129; Fri, 14 Jun 2024 23:18:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718432339; cv=pass; d=google.com; s=arc-20160816; b=dR6YfWQi0JDWoL0FvfGliAY6aDsFiKU8XnggMSxGAerrrzyBcSJkLNuF5q/k3P2z4H EXb4qz1Tzoppk/r2nM/e0xomCED1MyTcbRr+7RsbNES/H/7MspI+Xvezb+uAQXrFpl3/ 3c0h2vqbDC801bsG2MmddQ9Y9xmMuv+pTaKLDn0nrzLKQBbc/GH7bSz16gjhC/OYOi56 DPmKKs4t0jenBsawcUveUymwvcoYi/l72si5b/ZOILyF0p3nq89WqLP7FV6I3aTJUdkM WbxFWWtwLqXTKvwca+EXgFGKdrJKlCS92Iy99GwP7ygomXNh/JogAdH4x2TBlL9nsLqy H2Sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NpkplPPu7pGkXcrxeXO8mW1S3SewZJ58jrFgVrjg0CM=; fh=sEmGzW4ud8A35m0iOqlFl2izBctG7piW4Tucgkf7iYM=; b=Vue/acnipiYW880OPKGiw48+3s+bEYVu9E1QSx35Y3OI7pv3GwSA4fTQFHWBO7Uab1 ZNSFuhBG3A5+9KfmJ6+27suO6K7qRZTgDiRE3iZk4tkDuGJhEzHRGd5V8//XbD+jQzUi 2cymwnLXQd1ZZekNkk2q8MgmeVvMSbr2WbyAKktgtcWLMTabV+k6IsOct0RguupEWqXo EMbp8w+srUZTQZJZNxkvjJlrmR3DAPD5t5un+2lu8nlmmLZcEplAZ8CG35m6iKn2SieG jc2XPMhyDObyAw7GDPtavoKH9G3SbJFemZ4kUF0g/OA67qgtdYeYXTsKTUHAIQm7PN/q S/pg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="flXAQD/S"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-215720-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee5776b09si4728360a12.751.2024.06.14.23.18.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 23:18:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215720-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="flXAQD/S"; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-215720-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E4447B222FA for ; Sat, 15 Jun 2024 06:18:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3355F15AC4; Sat, 15 Jun 2024 06:18:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="flXAQD/S" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2006619D89A; Sat, 15 Jun 2024 06:18:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718432325; cv=none; b=VMmkey4kWUwJa9tq2MWtqHg64QJX0dVwfnmqzRQ0LGBDn70QSx6fj2u0kCAtVOdQRgkGSTlVZ4HdrtTyJNwlPRrmnFQDDOOfJNtYL4Jm4CtOWhPm0Z3x/+CLQfZehG9Kh99y8W8hBplakyyT2F64j8m4VKo40fKgf9jjFeDGgYY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718432325; c=relaxed/simple; bh=wUDzTZAcFgqMo7Vchp9Bb7fHO8cLL3h9QNHdzUzdTxE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iCKNcakNURKV+7mAxQr+qOf2DiXVHh1wstThylxfa6tqJvn/95j8VFMbqEr5H0Aj0FR6GZO0KXa/WBLzTNuNUR9OAkNZEnQe9T9iFOtnfNqooJto2fEB1FmpQ3QGcY+cIjtFKeRPQxE5F2tivroi+3nrXrEbb07pCF02S7M37lM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=flXAQD/S; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 249F6C116B1; Sat, 15 Jun 2024 06:18:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718432324; bh=wUDzTZAcFgqMo7Vchp9Bb7fHO8cLL3h9QNHdzUzdTxE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=flXAQD/SbDxL86CWc9TeHXz/wqtS/fuZoOQvxmCRKSq8oxDeQzbs8WrdldmTePHec KC7n2iCqCIHCfs6Au8JTqfiwH6mzfQKIT4X1bkFN/bsQEgJb7TTEcckjUgigZwxNUL UJlfQe+12F7b7v4a/Y9mkuPBrXWNhAPfgOLEMu58= Date: Sat, 15 Jun 2024 08:18:41 +0200 From: Greg Kroah-Hartman To: Crescent CY Hsieh Cc: Jiri Slaby , Andy Shevchenko , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH] tty: serial: 8250: Fixes: Fix port count mismatch with the device Message-ID: <2024061500-jeep-upchuck-6b3a@gregkh> References: <20240614090322.2303-1-crescentcy.hsieh@moxa.com> <2024061406-simmering-sanded-17ef@gregkh> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sat, Jun 15, 2024 at 01:36:52PM +0800, Crescent CY Hsieh wrote: > On Fri, Jun 14, 2024 at 11:07:29AM +0200, Greg Kroah-Hartman wrote: > > On Fri, Jun 14, 2024 at 05:03:22PM +0800, Crescent Hsieh wrote: > > > Normally, the number of ports is indicated by the third digit of the > > > device ID on Moxa PCI serial boards. For example, `0x1121` indicates a > > > device with 2 ports. > > > > > > However, `CP116E_A_A` and `CP116E_A_B` are exceptions; they have 8 > > > ports, but the third digit of the device ID is `6`. > > > > > > This patch introduces a function to retrieve the number of ports on Moxa > > > PCI serial boards, addressing the issue described above. > > > > > > Signed-off-by: Crescent Hsieh > > > --- > > > drivers/tty/serial/8250/8250_pci.c | 13 ++++++++++++- > > > 1 file changed, 12 insertions(+), 1 deletion(-) > > > > What commit id does this fix? > > None, it's just a normal patch, I might have mistakenly added the "fix" > tag. You say "fix" twice in the subject line, and it looks like it actually does resolve a problem in the current code. Or is this all just a "cleanup" change? confused, greg k-h