Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp674971lqs; Fri, 14 Jun 2024 02:08:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUeoYobXB0vgwfPnAjZ5me6ozF4ashEqQkkgzt6S85HHpG9oeaNgx4eob7Un+mBqGHWrGDNTpmVxbgsqnzFdsJohmYM7xLKm70PpXc29w== X-Google-Smtp-Source: AGHT+IGploeeWa5JMdoauolhU45S/32v/YpkxIxMonrZXwGyJ1sudj/8WTzUAkUqRefvNXW7IpB0 X-Received: by 2002:a17:90a:f60d:b0:2c1:a068:ba83 with SMTP id 98e67ed59e1d1-2c4db23bf08mr2143670a91.11.1718356104830; Fri, 14 Jun 2024 02:08:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718356104; cv=pass; d=google.com; s=arc-20160816; b=SX8TBhSwgA3IiwaRtSuh9qlRWYdC6F8nncw+958QH9WLnVv9QDH3R8vLq+Q5UAIq5o u4sRY2IohhooHt90al5xH/MUhOZyo//kif8lAl+ih52lqirSgNzLwa8tFCph9+HlSXgj DsiFMee8zmfO9gpaiBodlaI+BC+Oe1TIHEmxQNF1lFpD/ZqzR60o68NoUDBFOvXkyGhZ Qryl0ehlD745/OwfOlOojE9i6MSFAmNQ+dYgMrksVpvuyOsuwo3vgpb36DXUqEH9XKqh INTVj191ZS65IekVGmVAlRYpA6BWXfv0nfqm47+Bp4pX2JbrDvq3Kn0U4Of7fKBenZBB rMcw== 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=E3KWzgG6EkDr8dt1jZ2YrnfHqT6MZkRgcAZH4QC+QjY=; fh=9duhRHiWVIDsk6qSdR4MTGj7od200a+OLznAWYJD21I=; b=tVF/w5gymfWCzP1SDVmgkC5+dfPxQQhwYMT6wP8IbGPkpzkbHlP84D053rf8eQDJkU lQuecKUeogYjWNwtlCGkZPWyqGDnVj6Z2BUxP3pY405gfYoerYhoK6nFwoGFMSzegDvC /4b/QhnOeAaoTTszuSK6C4BdfEtNfNvVQtrfgkQpTroePaH3bFPypIsQJQ9cvdVuGW1G QQDmHGu7wB9gk9xEj1qPVBUi/pMhb5qRGoRguWhfNMkPAlgqMIR6WpZdgIdVnJCSFJmU 25AEdF9JrzNC716BREPexqViVnzKLdYqclMfT0g0Jrs8O0nw9uh8B8yLCvfmojzO0ir0 nhxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EijsRRR3; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-214610-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214610-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fede81ffa9si2989106a12.194.2024.06.14.02.08.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 02:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214610-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=EijsRRR3; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-214610-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214610-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7E01A283C54 for ; Fri, 14 Jun 2024 09:07:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56CB11922C7; Fri, 14 Jun 2024 09:07:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="EijsRRR3" 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 6C4A81487E9; Fri, 14 Jun 2024 09:07:33 +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=1718356053; cv=none; b=Zj0uqZ+vq1otNQ1wQcNQoo2qomHqGgsJ+DLTWVEtpJVJp1ke42ocyaAMr1dsq3uIQ9P6JJ1g3usHph311jy8WutZc1x6LZxQokHK9kwcYPyp2Tyb4WRMJwUrLGMH+SFM/xwe/NMwh4G2/U9RG8FAJ/cB/R5FcXytucyy3RzSdQg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718356053; c=relaxed/simple; bh=YzndSkdmYyM1m4OnS6tSHoY/XZcUglagXcQvICViWYc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mDtIbQLkPi+i9YMJzddNCilGlAIn6i6PTPu6MSfK9jjfB5FqJ5eiioaL51zsLgZHoI18VC8O1PgEqGXLdRBm/KuAXJ/CVcTM8AqGN6zZ4ZFnnb/70QV4LqpirvfW5PapYqJTSOwVw/MpvnpzaWzyvacNSznh+NrN3Q6+xAn3nOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EijsRRR3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F3A9C32786; Fri, 14 Jun 2024 09:07:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718356052; bh=YzndSkdmYyM1m4OnS6tSHoY/XZcUglagXcQvICViWYc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EijsRRR3G0TXmpDeNS2FYgGYt/aKTBB3SxmvWFz5ws+djrSzomZqXeAMri2G+ftCg S9uswQ1nIIJsLER8DLLucQITw5+SkVnSXvapO3+Mx/OKVj15/Ev5xQMHXVnNX2uk5S 9za9m3b3RunIl2UzkourNWQZlEMkpxaR3olwW/k8= Date: Fri, 14 Jun 2024 11:07:29 +0200 From: Greg Kroah-Hartman To: Crescent 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: <2024061406-simmering-sanded-17ef@gregkh> References: <20240614090322.2303-1-crescentcy.hsieh@moxa.com> 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: <20240614090322.2303-1-crescentcy.hsieh@moxa.com> 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? thanks, greg k-h