Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1192665lqm; Thu, 2 May 2024 07:46:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNd9xt5/mzyaV3I/3RT95+iWWY12BfKmjS20FDH/1NBNOtWjQCXWyhufbKEd5nc1C8fpZCjvYWzFef2BT9WDTrrb4zL5AFWeFhMMzhIA== X-Google-Smtp-Source: AGHT+IHr3NSFLvsjDrVcyLSnBnVVmzhOLKVyY1dJYjOeDudANpF4i9PPTOeWsdfqgown7FWwmF2X X-Received: by 2002:a05:620a:5e4c:b0:790:efef:af55 with SMTP id ya12-20020a05620a5e4c00b00790efefaf55mr4983861qkn.3.1714661219589; Thu, 02 May 2024 07:46:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714661219; cv=pass; d=google.com; s=arc-20160816; b=Pr4fgbmhv6tjLG3anD66BdQbCVm1uqqa2ar6n+wCfhxCDwXV5vVkQWAt3vUFKksVKp JVkwBXyGKeijNWJt1yKejNh5Jle4hmuR6rSpGJUM2D5/32h/FKUYbET/ZiJQXEo0PQvW rMi2v63YNoyyWR+Vm4JTqBoEIPmmFTOUWPIl0Exfu9mp8dXPVzuu0kf1w56+HuBEwW92 2ltqUP5rG1cSFtdjbZ3NN2RZ61p8mTxJPaQG5PXjT/jD488wXyqF0oJlUD27HUkBse4N 4amd60gDgSaSF6GQLMSzNjDmc6Bs6vbN9tu62q9JIwvTDgxzn8CQ9dODiIoyju2iqh/O MXQw== 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=H6tDixAgVs1CbNurK7oJ8DZ+hPJwfE6VM3f0kGYfPNw=; fh=iJf5csy0r5ybD7NaLRHWR20RoYCcjF+JTLc5MGZ+RdE=; b=itaaOQDO2fc1o9oRrT/VSJeRKh6JR2938AzA7ey3LZIuGAOMG34BjLcI+zWomBKlqM vYN3lwWfhBp5ZNkQL25NTr7T1XR9i2dlXV0x5p/6Fe+gC6aSSpyxfovFeGHJuFRQCeHQ htOsCryzZXwOIC1+lZhQLkhoyLkGvtc9ZCssjzsq8HzE0/kATPjOUIEHgJSBt7k+PzqQ 906ZVxTLdCVYCGpEkht5WyR6MlOOMe6gwE1sTZYXmYr0vCPxMnxNmi5lygCEY3+K1VL6 8XL4QWL81M5VL11lzYm98z/RVm4Zu8FxOwCtky+sJIaYF2sm9JVXsRejDmzuvlC7VKkZ s9qA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TzbQefYl; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-166580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166580-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v28-20020a05620a0a9c00b00790702ddf86si1051616qkg.102.2024.05.02.07.46.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 07:46:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TzbQefYl; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-166580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166580-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D933A1C21620 for ; Thu, 2 May 2024 14:46:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3F1915380C; Thu, 2 May 2024 14:46:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TzbQefYl" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 3CC5913C68D; Thu, 2 May 2024 14:46:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714661195; cv=none; b=blSy5BuKTPjIPosOqgjXkSaQKwGGKR2WY19K2XX8Jc2ZWJKxlwrPFmORoUZ9oi1fyIYAp9c5QHi/PFnDf4y8I+YzLDg2lyoLkDLOHzkz5aQrxfQN4lj4WKfm92Ha0tL5NSObTMwGXV9nxWktcQkriFv2HfQXSAIGz1PsBcekIf0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714661195; c=relaxed/simple; bh=XptqbUg5xNIQKmQKuni+sa4YXQiyH4WIn+t4Dt1W1MA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=K2OWXSetx1RnLpe/7/uZFr5v4p+XqOSPbYO4LDLv7LwQBQL3sU0sIgiP61XWsv5dNC3B5EcdFp65jdQevRRpQM/tqd8EAFQJ2+KFdVbsZ2ywFiC110yKhfjckxxlKP+ZJGSPLqbkJW/5wREkV3MKYeWFsxMiuYjmx2AUKvVLRi0= 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=TzbQefYl; arc=none smtp.client-ip=192.198.163.19 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=1714661194; x=1746197194; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=XptqbUg5xNIQKmQKuni+sa4YXQiyH4WIn+t4Dt1W1MA=; b=TzbQefYlZfoO4Ied6SJD86PSCr3VjWq7dCi0jyiB1DRZ+/lnwP84omaB YYWJycfkECXnbxhoMywYIN+8d+fL7B3DNsn50ZoaT8uTp4kaD+q1863mI C7/kCQKWSsGJWR0PCfEPWBKB6yoQ0MXnunv7wluKcc5XdQtSgPe3Ilfw3 OB6BocLi+VDgs6e8wqQKv2EPT8991g+ahVRP6apSRcyjpUcj7NHB/ENa1 nkV4qCC8zmDrvVfv0jzo9yPz9NFW4SLu/NaTJ4+kslF9wiCF8CdlUIMXo Cy/mYfmpPV21VhESmJxDQVc/vGIwvy7IA6auJsxeN/h3hH4xgoNd3B2tu g==; X-CSE-ConnectionGUID: vHCHbcF2Tti5eRWqocDCGQ== X-CSE-MsgGUID: Hx/Ip/E3QcqrTQeqT/oNvA== X-IronPort-AV: E=McAfee;i="6600,9927,11062"; a="10306065" X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="10306065" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2024 07:46:33 -0700 X-CSE-ConnectionGUID: qIjp9/dATeyAA7Ij6nuAeA== X-CSE-MsgGUID: ivJ0cS98Tg2/N32pmd+ugQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,247,1708416000"; d="scan'208";a="31632823" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa003.fm.intel.com with ESMTP; 02 May 2024 07:46:32 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id B087817E; Thu, 2 May 2024 17:46:30 +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 v1 00/13] serial: 8250_exar: Clean up the driver Date: Thu, 2 May 2024 17:43:54 +0300 Message-ID: <20240502144626.2716994-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. 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 | 454 ++++++++++++---------------- 1 file changed, 200 insertions(+), 254 deletions(-) -- 2.43.0.rc1.1336.g36b5255a03ac