Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp615699rwd; Tue, 16 May 2023 05:50:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4R5epMjX9uRgUwxiUxXrcxL+V83iOsqf3T0acY2Zc4zdFovf18OixRmmCP3bEDwsNhqKK4 X-Received: by 2002:a17:903:2592:b0:1ae:2c87:f771 with SMTP id jb18-20020a170903259200b001ae2c87f771mr1239242plb.20.1684241453777; Tue, 16 May 2023 05:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684241453; cv=none; d=google.com; s=arc-20160816; b=K3PQKuQr7EHZQ9+tjOCqiuZxkPfAt9MQK6o8xF9AH1hiE1YL2UuiqK7U2iwuwfFIGU MRtHVnq+n9S7NYKobFT/sC9/f9mXSaCWvIxJuzaELjMuGjWjRz7mUTWUwoDkxVq074Oh vL8GLM3AKu85wDARJbPdyzS/RvIBEn1fwABYuCHwVLoOp0geGsBh8Ihl86GUVsJxT+SW +iLXN5RtOl/ckCBR1uNORrXvN6J901wWPy31irL7fajtfiu30f2YEzDApyM1JCxvARaH IzOan3lS/vkmRmc1SbUypUtdQMvByTZMj4DV39nh7+9SMfGSJFX2+cgqi0bvdeY2EaKh AFzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EFyzFi/FJzb3+cuUBgtu1sbG3tOxyFjX5lxlw0A0+Io=; b=UIrh/kxFE+e26mZTjwO9AuiMT61QwRzGzSVauGt5IXMKUS62WK2mu9vytSKWQrQiif 1Z/O2IWxDpKCnb9TcFdZkex/k5wzfTqSinKivEm8og89bn0dJOuTpKKKSuf2Kg7bPe0Q JWLC28Z/UwiK4R57txPUID5BfOOi6NNI8CwjatEtEDpKXmwCkApYder6Y4QSLNrvlf1Y vYsIgYOrFSNTpzNt9+HKpj9UPighi5qUeQgY9N+NsdbP4uU+1AOc2zZcWjzw/r/gKDpj vwSdfF13OuEaTKcD9YjtAWhfp9rkm+3KMqr+Mbllaj8DjRgz4NjcyRsIc9tOL3d5DUUx mZ4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bGztEPKF; 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 126-20020a630084000000b0052c998beef6si17347184pga.506.2023.05.16.05.50.40; Tue, 16 May 2023 05:50:53 -0700 (PDT) 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=bGztEPKF; 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 S233221AbjEPMZB (ORCPT + 99 others); Tue, 16 May 2023 08:25:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232714AbjEPMZA (ORCPT ); Tue, 16 May 2023 08:25:00 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DBA61FE7; Tue, 16 May 2023 05:24:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684239899; x=1715775899; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=1kZ67IohKTNXw9v48L99Ve76ncobxnQ7nLLOn/LyTKQ=; b=bGztEPKF1Ov+pXMZwo7x/7vcEdHRpNeEL7DcfevD2x9YZGx4uFVEaL09 NHo2034CpOo3G1NCRVB+8rhnq+vqu7TGkLaocANPHxYltlnzWp9mYBKzb ntUA65105/kCa1D0omrXEP6e3abCh8FRYkulOvjdcckynDexROuv/PSZ7 DIl3qdhyE7Wo8jo9O2GmcNcySTTOV4tX8Odbve4xwWCgjmyepUDPlTaVJ AyhaWE1prh51BwJBBryizRnJqud+s3NXEL7cjqHtQMYrg1wl1aBA7f0Pl wbuaWqJtd3le9q/dKzNdPrMh+dD3tTlzKkM6cqMLDpGIWfnbqQlmfeytZ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10711"; a="414868724" X-IronPort-AV: E=Sophos;i="5.99,278,1677571200"; d="scan'208";a="414868724" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2023 05:24:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10711"; a="771018670" X-IronPort-AV: E=Sophos;i="5.99,278,1677571200"; d="scan'208";a="771018670" Received: from stinkpipe.fi.intel.com (HELO stinkbox) ([10.237.72.70]) by fmsmga004.fm.intel.com with SMTP; 16 May 2023 05:24:53 -0700 Received: by stinkbox (sSMTP sendmail emulation); Tue, 16 May 2023 15:24:52 +0300 Date: Tue, 16 May 2023 15:24:52 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Niklas Schnelle Cc: Arnd Bergmann , Helge Deller , Greg Kroah-Hartman , Bjorn Helgaas , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Mauro Carvalho Chehab , Alan Stern , "Rafael J. Wysocki" , Geert Uytterhoeven , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-pci@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v4 37/41] fbdev: atyfb: Remove unused clock determination Message-ID: References: <20230516110038.2413224-1-schnelle@linux.ibm.com> <20230516110038.2413224-38-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230516110038.2413224-38-schnelle@linux.ibm.com> X-Patchwork-Hint: comment 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, May 16, 2023 at 01:00:33PM +0200, Niklas Schnelle wrote: > Just below the removed lines par->clk_wr_offset is hard coded to 3 so > there is no use in determining a different clock just to then ignore it > anyway. This also removes the only I/O port use remaining in the driver > allowing it to be built without CONFIG_HAS_IOPORT. > > Link: https://lore.kernel.org/all/ZBx5aLo5h546BzBt@intel.com/ > Suggested-by: Ville Syrj?l? > Signed-off-by: Niklas Schnelle Reviewed-by: Ville Syrj?l? > --- > Note: The HAS_IOPORT Kconfig option was added in v6.4-rc1 so > per-subsystem patches may be applied independently > > drivers/video/fbdev/aty/atyfb_base.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/video/fbdev/aty/atyfb_base.c b/drivers/video/fbdev/aty/atyfb_base.c > index b02e4e645035..cba2b113b28b 100644 > --- a/drivers/video/fbdev/aty/atyfb_base.c > +++ b/drivers/video/fbdev/aty/atyfb_base.c > @@ -3498,11 +3498,6 @@ static int atyfb_setup_generic(struct pci_dev *pdev, struct fb_info *info, > if (ret) > goto atyfb_setup_generic_fail; > #endif > - if (!(aty_ld_le32(CRTC_GEN_CNTL, par) & CRTC_EXT_DISP_EN)) > - par->clk_wr_offset = (inb(R_GENMO) & 0x0CU) >> 2; > - else > - par->clk_wr_offset = aty_ld_8(CLOCK_CNTL, par) & 0x03U; > - > /* according to ATI, we should use clock 3 for acelerated mode */ > par->clk_wr_offset = 3; > > -- > 2.39.2 -- Ville Syrj?l? Intel