Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp298592rdb; Sat, 17 Feb 2024 08:46:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWoNNPk/D9JJdIh6M6LTAZBk2Rb/bgGRrHVw5Me4liuikWJ2t0P1DVJAhDpXCC0TC8KDDYwaavni5UTIc2rxskIC11tAfaNEhcXqPBI0g== X-Google-Smtp-Source: AGHT+IFpVvkgx4IpTIC1g6ZtfmnibCEAUA1iqMpVSMvHSTw0p5Z0vtm4KvgP+XOSWenu5o7Pm6Xe X-Received: by 2002:aca:914:0:b0:3c0:3306:a379 with SMTP id 20-20020aca0914000000b003c03306a379mr7399871oij.55.1708188382586; Sat, 17 Feb 2024 08:46:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708188382; cv=pass; d=google.com; s=arc-20160816; b=DaaY+vGK2Vsfzga8/HxJ4LA7xVWDkkxIJLSnYTn+H7gW7CNgGx1JuUzu4DVHP/O5zO ZwjEy8irPJ6c6GfZleXuYS9oAUSQGG5HphCDD3NSlKWEEiL92GTCV3vNyxDGS6UT3SPf bh5IxPmNkDwtQnitCgosYFZV5VDQMJ4Mj/L6hRLbSRhyiEUOpR8ryDol02D7B/tLi3P0 imn0/AIcnCgxXvneZycP0O4NLkr9wFGVu5JgS+FpVXq9jpYokMoZOXCnpXV63Ya2DRoJ omtEZnrjPHoR8jBz/ze1s2zfbKYG8Jr9p3UTQauBHpVA+JzsvIBGdTKnVsIs83vyQnZX +F2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tpW4kDFbWdGfVnKHguSqImANty4JnXlXzi+gPOz8YT4=; fh=ulycs4ADKDmGvtmF0tqnYN9bw74uiTCWBg/IeFhiAQI=; b=damoxxFDM/Lwm4SnJFDkP7BYsb3qsLtODpXU1N8GbNudtmWPBoc9DIPHWlvZz41HoZ Ut4hxUbGeAbq5eA2HqWqOmzIBlHHT0T6IuBrXW8bPSVpplrVsKXuaCsoCHuAojPiEySK dh9OiMVG+CkLnU9V6+lCwiaf7J4IJ1EVWY0lEAj+Cy9twI8AQQ7XXmgkZFmaLrUyxO6M vI99mvC3w4NBBxmBL6hFEO2EZ+2B1RSRkORohbWjgF7uVg5bKWDeMiYxKwN450jqeYuc aABAFy9m+QsdJvJApntPHuHnakF4heR4FxFBh0Avwa01652NWYN3rwnM1+JW5lsqXiJz h5Ig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AOsZ1fOy; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-69976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69976-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dv10-20020ad44eea000000b0068f3deec524si2393100qvb.512.2024.02.17.08.46.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 08:46:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69976-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=@linuxfoundation.org header.s=korg header.b=AOsZ1fOy; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-69976-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69976-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 549831C20A15 for ; Sat, 17 Feb 2024 16:46:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C5267D403; Sat, 17 Feb 2024 16:46:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="AOsZ1fOy" 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 533AB7D3E6; Sat, 17 Feb 2024 16:46:05 +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=1708188365; cv=none; b=KcEZ0oD7e7jYiAwH9u3NtozYYXCsMozT2H8XymB1B+Q5sZZ/D1ys8ZiBSqbb2HhFuy9D5qeSv8okk7Oja+PoeNepzx2p+5THMIVFuX64WbKVQT/LvOEdjLbQ8Y6oWmBSYrWljz9DVltNfOLhl6gWGlEbIh4I1drbGe2Zd3wHqTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708188365; c=relaxed/simple; bh=x7XoWYctPcqETeBiz20slgtZGVDKxSwbVTWu+34DE1Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LW4/cOwDoB7mrkLlJLHwExZRasvm/Xq2nU2cG/1muuYh4nKPRfTlfkQO3DfbVkAq5VGVUe2wNen80g3ye06Cj4HXi6GTK1BL+/L48TgahVWieGoWLFQRinnRcvoJQUFHP/wPgF1/sJQbaa+m7J7fbaWa7HRC86eFNIY+xAofQaw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AOsZ1fOy; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B071DC433F1; Sat, 17 Feb 2024 16:46:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708188365; bh=x7XoWYctPcqETeBiz20slgtZGVDKxSwbVTWu+34DE1Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AOsZ1fOyTaQZnklis6YBOFEm5gFnbFyXCXObYMF/xDGytNZUcGwD3UfySXN9RTAp2 pmThqbz7llCGmiuEFOupV0HFr65jGthYLy6rq8uVaMrsp9jt5NMQ29+E3clS9yH+IU sMDflX5k7DQn8tr1ypkyPIxU/UrUUChaRq0D/yI0= Date: Sat, 17 Feb 2024 17:46:02 +0100 From: Greg Kroah-Hartman To: Andy Shevchenko Cc: Rengarajan S , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Kumaravel Thiagarajan , Tharun Kumar P , Jiri Slaby Subject: Re: [PATCH v1 1/1] serial: 8250_pci1xxxx: Drop quirk from 8250_port Message-ID: <2024021747-material-variable-ed02@gregkh> References: <20240214135009.3299940-1-andriy.shevchenko@linux.intel.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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240214135009.3299940-1-andriy.shevchenko@linux.intel.com> On Wed, Feb 14, 2024 at 03:50:09PM +0200, Andy Shevchenko wrote: > We are not supposed to spread quirks in 8250_port module especially > when we have a separate driver for the hardware in question. > > Move quirk from generic module to the driver that uses it. > > While at it, move IO to ->set_divisor() callback as it has to be from > day 1. ->get_divisor() is not supposed to perform any IO as UART port: > - might not be powered on > - is not locked by a spin lock > > Fixes: 1ed67ecd1349 ("8250: microchip: Add 4 Mbps support in PCI1XXXX UART") > Signed-off-by: Andy Shevchenko Breaks the build: drivers/tty/serial/8250/8250_port.c: In function ‘serial8250_get_baud_rate’: drivers/tty/serial/8250/8250_port.c:2684:32: error: unused variable ‘up’ [-Werror=unused-variable] 2684 | struct uart_8250_port *up = up_to_u8250p(port); | ^~ cc1: all warnings being treated as errors