Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1932994lqm; Fri, 3 May 2024 10:20:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYTJRJ7PSU4GDlbTLk0RqvWkWmLRcStMxFPGtetJrjJvGAHsVFaKG4IEREwGk4tSjMwx2OF5AUxmQnDFAHkQPWVnNgOcl/bS7IsscIAA== X-Google-Smtp-Source: AGHT+IGGjmLDmx77M1WFghVzgiIvMsKDywway4+XCuEvjL6nG+sORXHbUdBjA/TLj5zpHOh0NZOc X-Received: by 2002:a19:9118:0:b0:518:a55b:b612 with SMTP id t24-20020a199118000000b00518a55bb612mr2181778lfd.54.1714756833244; Fri, 03 May 2024 10:20:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714756833; cv=pass; d=google.com; s=arc-20160816; b=lGQB12aQx2W+jUcElGAj3Gbn4voI+2KfJFftQixq4PTYDjuS2+5IygMUIdiKQp4qJ3 iac+YzIAB+dr12CDfR7/6Pdrw5RZ++9pvgSjZR89ezUXZt/TVJbqYpWYTioo/N6LZogJ S7O7ziFRLYHjbkiG3NIiYp9/jiaWp9wUNC442aYrHqcX8KtytB3FIt+xJny3WDYFqT4m t0gMXqIobld+p3iaY4AxQ4FNLRIh0VN/aHhM9vBOVD/XZGKJrT+Kaq+n31pmi+j3eyv1 TxKsA67L5HEU1JLYkj2p4SzM50gPnnHPktSeb1Ctn9OJw1h2ZKv3Sy+aTcqHAxML/u25 e3Vg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=qW3WmHoDvnL0bLVsblr3Y63Dw1zrtxY9BeeSx/tSYVc=; fh=iJf5csy0r5ybD7NaLRHWR20RoYCcjF+JTLc5MGZ+RdE=; b=ROX3sxBaZjyT+aC9JmDLxUc3nQeskfPNMe/cx4eOEGI63WtvRRzeNrSh42cipcMdOY EmJr+mrZidAjDL6mFt6jmo9gTkrkFaz8msvl4XRubbmr7ZRsT5kbalqw/JGTZmsZrTGN 7Ei0gkh+XDiSIf7dYJ+V693oTpP29zL6o8m+u+hWrMA1+ov+47qvbTWarb7Cippj+3+t dZD184XzNz8J262lmpkdl1buFNd33DDbDqEB2GN0+Nt3LyaWt5gtEFULKwdtuTXlicmf TWoPC1YRNDpwDu9c77DQOuLQ7RdxW6SguGe0DVMfrD0fmNt8EVv0mUryV/xSICaO9gRY N1fQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DGxVYpHv; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-167961-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167961-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g16-20020a50ee10000000b0056c2909f23esi1519355eds.149.2024.05.03.10.20.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 10:20:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167961-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DGxVYpHv; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-167961-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167961-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id AFEF11F23AD5 for ; Fri, 3 May 2024 17:20:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4795B158872; Fri, 3 May 2024 17:19:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DGxVYpHv" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) (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 D2D27158203; Fri, 3 May 2024 17:19:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714756785; cv=none; b=MqSHgig02R4rqyLarNEehRVokPXW8E0PBw6Wy/GX2EV7yI+WDhACkle9+8o/hBLshZHYCD1gYoutwoh660opkngQyeCd2Z9o062fjz5vQkNJUOhw/3Mc68bFXggeo366WJJu2Az1c/sRmmsPiL0dtzs+U+jkthMoYS5kPS0vNtM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714756785; c=relaxed/simple; bh=8c8iP3FfxTPGyNOsn6h/6Zno90lXdQeEM+LI0vu8P7A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Cry05Noqo4LvcEM0zMEONkVun26Ovavjl/yWndJ7hzftooP29pkmO+gcbuj6E/JYe7kD3GeMh+uG5H9FX/Gdm798L95NwGP0c2yg7WY7GV9oDvGOK0otjIQxLftSIaAXyg4HcnDfMhXsbbQQWYq7H24lpfa/tiIuVldLsYnpSw4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DGxVYpHv; arc=none smtp.client-ip=192.198.163.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714756784; x=1746292784; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8c8iP3FfxTPGyNOsn6h/6Zno90lXdQeEM+LI0vu8P7A=; b=DGxVYpHvcLNcoZA+Qvy63Vm8AoapoBUbbpHDnWBeesYLakWHdS91G3zt 2gKISHorLs6sAobJKRBgfxFwDc1XbjjRQGqZ2ZUxGH1YZ/4k2ijfUo3wE 0aAWXL33KYM+/euUB/+o+yZbH1C5RbUjzOwpm9bkivIa4P5UzhLR0vlqR SqKLN3zfx3hECABmSzKmLVAHG3JRxX1YopVHViEr8ef7Ph7c557bhB/fg x7xt2kbCezsoIjxGEWJlFfEweiDgDqCdX4IaIeSHSfPtFu5hqWKNuBIOH k98a0FYjwEKOoZb5KjOVr4UUrie/3rgVQ2Q11drfbX5zgrpqLi+LmfIpX g==; X-CSE-ConnectionGUID: qZEu6/DjQEqvaNFD3YtDfQ== X-CSE-MsgGUID: 4J2hlghTQKKxbAwThideCA== X-IronPort-AV: E=McAfee;i="6600,9927,11063"; a="11107802" X-IronPort-AV: E=Sophos;i="6.07,251,1708416000"; d="scan'208";a="11107802" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2024 10:19:41 -0700 X-CSE-ConnectionGUID: W58FNlqnR3WRr4kBXcJHZA== X-CSE-MsgGUID: WT028gfPS5i4u6L8v5aKyg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,251,1708416000"; d="scan'208";a="58415414" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa002.jf.intel.com with ESMTP; 03 May 2024 10:19:39 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 1D0A719E; Fri, 3 May 2024 20:19:37 +0300 (EEST) From: Andy Shevchenko To: Parker Newman , Andy Shevchenko , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Cc: Greg Kroah-Hartman , Jiri Slaby Subject: [PATCH v2 00/13] serial: 8250_exar: Clean up the driver Date: Fri, 3 May 2024 20:15:52 +0300 Message-ID: <20240503171917.2921250-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit After a rework for CONNTECH was done, the driver may need a bit of love in order to become less verbose (in terms of indentation and code duplication) and hence easier to read. This clean up series fixes a couple of (not so critical) issues and cleans up the recently added code. No functional change indented by the cleaning up part. Parker, please test this and give your formal Tested-by tag (you may do it by replying to this message if all patches are successfully tested; more details about tags are available in the Submitting Patches documentation). In v2: - fixed the EEPROM reading data loop (Ilpo, Parker) Andy Shevchenko (13): serial: 8250_exar: Don't return positive values as error codes serial: 8250_exar: Describe all parameters in kernel doc serial: 8250_exar: Kill CTI_PCI_DEVICE() serial: 8250_exar: Use PCI_SUBVENDOR_ID_IBM for subvendor ID serial: 8250_exar: Trivia typo fixes serial: 8250_exar: Extract cti_board_init_osc_freq() helper serial: 8250_exar: Kill unneeded ->board_init() serial: 8250_exar: Decrease indentation level serial: 8250_exar: Return directly from switch-cases serial: 8250_exar: Switch to use dev_err_probe() serial: 8250_exar: Use BIT() in exar_ee_read() serial: 8250_exar: Make type of bit the same in exar_ee_*_bit() serial: 8250_exar: Keep the includes sorted drivers/tty/serial/8250/8250_exar.c | 459 ++++++++++++---------------- 1 file changed, 203 insertions(+), 256 deletions(-) -- 2.43.0.rc1.1336.g36b5255a03ac