Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp11055100rwb; Fri, 25 Nov 2022 10:30:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DuyeUBHtSPIlgLekuEhbHM1CfWj4f68O3F4/giO7wznhgR/V31Nwy10gQ+Hf3FYZBhQIc X-Received: by 2002:a17:906:3fce:b0:7ad:bb54:75d3 with SMTP id k14-20020a1709063fce00b007adbb5475d3mr32865422ejj.484.1669401054773; Fri, 25 Nov 2022 10:30:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669401054; cv=none; d=google.com; s=arc-20160816; b=IP03jzekm0hBA1EYq7uymj9lXHm1ziKp15L5dbxANB0dXsVtqS/iOY6ktc+R1Ne0KA r+jOrIZaT8hJrADOqZXRTN5X7Ern8FIGa0b+MFdwJrpS6Y6OUh2jXcFMpqlaqlC8FER+ JYumx0peb2ndZjCt1f8raNo6Y2hx9ovUYtL80it/wVXLyDwbXQdZtEvAMlDD/Cel/QfT PRq7Ik2vN8nt1QsBnrCnAl4akO5zndQf+48YHIbwgrU3R5rwTxaXxn7Om1lYjG6ssece 2btfZcLT3YyDeLb7Ey5EkwcyqFAksG3iINhayhumFcA86FhaWDkCueeYw7p0tebTSch1 99jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=UGJmBQm2wAODwTXhRlTNRGeBP7uxYgyJuQ4UvFMh4Do=; b=W0OwbUH/TytKyD7XhEBfWfuoF14MXSQ4BGvuh3X+qwG9P+Dfqn4Yd1Ls86XZQ4cHQC vK/8/kHz/fMVyLiuTx13p4vsrcj8jhwpPj3BRxWy1CXJrqg//zLirbDEjP02LudLYhQJ JOotPZvt+rcAlUQajgszgdA5bebuBwcVU13mqpH+diJ6K5ujhv5UWZlUC00j/5FtYrc+ bKyC0KP5mSMQkg2wOsopTwad+Ts8jEMATI2lgqDK+aEG5X8Av1VvNzQueNgyjQFjua0F eXdtxwxfdzpeVK2WWHGLCzjfOdlZ3bSf+R499yD20hZYC6Ue8ZP0RzUmoot/ESUN8B8T i+ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OqWNJLCJ; 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 sb29-20020a1709076d9d00b0078d8cc2006csi4444474ejc.697.2022.11.25.10.30.31; Fri, 25 Nov 2022 10:30:54 -0800 (PST) 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=OqWNJLCJ; 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 S229626AbiKYSE2 (ORCPT + 86 others); Fri, 25 Nov 2022 13:04:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229851AbiKYSE1 (ORCPT ); Fri, 25 Nov 2022 13:04:27 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 171D32CDC5; Fri, 25 Nov 2022 10:04:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669399467; x=1700935467; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=cvo+wdxbGI7eQfNrQ+AeWW9IagbEwD8A5SKG0BtPBIQ=; b=OqWNJLCJTXLk51LoCe7y9h5tt0APhBjUQR7lwHs2jaJjcLPocPKGLB/V Km5kb/cjd0ZevrXiMlKrTLalEkXEqkeVm07aa40v9fzgoEpmI0+e4+P0E x/11LA8I3Br7SeFZyqtCgx4/1BZDs356CNEiM/3b9PWF85X6q6nptcCLO jfyLgeDvWD2qn9BfG5UD3AQL/1bS2KxA/ii7R1iM0Auczche0LYM6N1NN vPg3cXzbhk7vQnt48PMfwmktNWP9YAiREAGi1Nnl74P8rNer0220P0+Gq 8nAEv7qhuF7eU9Y/+jMnDT3oMRE+hUzfUz32dXGYkVHZRG7/VOLyMkuZ6 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10542"; a="316345438" X-IronPort-AV: E=Sophos;i="5.96,194,1665471600"; d="scan'208";a="316345438" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Nov 2022 10:04:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10542"; a="675445123" X-IronPort-AV: E=Sophos;i="5.96,194,1665471600"; d="scan'208";a="675445123" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga001.jf.intel.com with ESMTP; 25 Nov 2022 10:03:58 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1oyd3K-00HLRW-2S; Fri, 25 Nov 2022 20:03:54 +0200 Date: Fri, 25 Nov 2022 20:03:54 +0200 From: Andy Shevchenko To: Tharunkumar.Pasumarthi@microchip.com Cc: Kumaravel.Thiagarajan@microchip.com, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, ilpo.jarvinen@linux.intel.com, macro@orcam.me.uk, jay.dolan@accesio.com, cang1@live.co.uk, u.kleine-koenig@pengutronix.de, wander@redhat.com, etremblay@distech-controls.com, jk@ozlabs.org, biju.das.jz@bp.renesas.com, geert+renesas@glider.be, phil.edworthy@renesas.com, lukas@wunner.de, UNGLinuxDriver@microchip.com, colin.i.king@gmail.com Subject: Re: [PATCH v5 tty-next 1/4] 8250: microchip: pci1xxxx: Add driver for quad-uart support. Message-ID: References: <20221117050126.2966714-1-kumaravel.thiagarajan@microchip.com> <20221117050126.2966714-2-kumaravel.thiagarajan@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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 On Fri, Nov 25, 2022 at 03:45:01PM +0000, Tharunkumar.Pasumarthi@microchip.com wrote: > > From: Andy Shevchenko > > Sent: Thursday, November 17, 2022 1:55 PM ... > > > + case PCI_SUBDEVICE_ID_EFAR_PCI11414: > > > + irq_idx = idx; > > > + break; > > > > Try to make this entire switch-case more compact. It's possible. > > I am planning to use look-up table for this in-order to avoid computation > within switch case. Does this approach sound good? Maybe, it's you who decides, just show us the result and we will see. -- With Best Regards, Andy Shevchenko