Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1690918pxb; Wed, 9 Feb 2022 02:17:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLJbeCCJ17avc/E/c0MHn8XzvjNagOZ6MKlL5nE+1UitYe+naoC835bV7cEcJy1Q3mQAct X-Received: by 2002:a05:6a00:1789:: with SMTP id s9mr1536666pfg.71.1644401871650; Wed, 09 Feb 2022 02:17:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644401871; cv=none; d=google.com; s=arc-20160816; b=Q4ELj2PzLtHcmIaSdMq9jWuC1xQwGC8BLoWozQunwthCyrEpVTMdBUSR6fzDTdiuBN un7h0Cp6eJvs5Z+VLP8nkwwfquj47YfW/tAmQ1Ne3BerKKTJz5/qB0XxHK46mc7b/+3h yHYM6GwBLWbPowX73j+r+PIAOvRg5d7iV1ane93189yIarjaC0xLWWdEjCooqh7rKDR7 8q278Gm2jHAlV12zhCigye0SB2rdEEIkmLWAhkHCO0C95s3lOJRzDkL864cGjH5BMvZO xQCLml3+lk3Vl83iIVZY1JIBNi5upX7AXlzxZLIbK4hhIqGpAP5CI/4IOON0nNKruCNY 8lDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:dkim-signature; bh=14+YAqkdK4axOiTegzrzO0E6aDxKTtVCtQylKKevsmg=; b=if0G5Bt8K5MuZqrhnx+RqPprSlE3euJV39V/8QdQ4PmvfE1+XFBo2A3XRQYR4fVge0 PTGyqdeK+1ybmAL8Q3SE5Z/Td215nrIyfDnkNeSqN6TEk1OOUqNYgBZV/Z15WTKRVys1 F7fXqgNvjd31PkqZB/EHn3zYcWaS2DYCXGIqbRbRJoEh5uqQ7ARrqfzWWGAT3mU5iawO a4HcNysObbS5HxM3lsbxUXszGX7cFzKsFLrBsuPuuxBggCq5CAIXHzGPdfvk7vFRlJpA Rqz+yIEcVUMM1LWHqeaWTkuVWsCcmL98u9BkbEY4vvuQY7xhemdh8cd+UF0mrX0F9LKt MxBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Pv5ZQnEb; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk16si5689536pjb.87.2022.02.09.02.17.37; Wed, 09 Feb 2022 02:17:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Pv5ZQnEb; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379133AbiBHPJf (ORCPT + 99 others); Tue, 8 Feb 2022 10:09:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242199AbiBHPJd (ORCPT ); Tue, 8 Feb 2022 10:09:33 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6591AC061577; Tue, 8 Feb 2022 07:09:33 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 170821F383; Tue, 8 Feb 2022 15:09:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1644332972; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=14+YAqkdK4axOiTegzrzO0E6aDxKTtVCtQylKKevsmg=; b=Pv5ZQnEblTD1n9al0SE+nO+a0N0C43bhFWhDSXPXCZOoYrNKhxnsSr87cKanmCpiE9fTNU 4uUoF9iwN3IRvYoi/lcLk7AiJ8fdiMhr4p+qfxSmjt5cLh9SCMkLsgRVkTQbaf42Brn8cb J4xUCypQ8uovjyS8/VU8T0Z1Wet04LY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1644332972; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=14+YAqkdK4axOiTegzrzO0E6aDxKTtVCtQylKKevsmg=; b=ZFvfnIqn21S7KTfLaC3j/sG3FwpaZb8GI07vOT8OSg7emFT0DsBlOabFhPK+iV2O8igL+B TAvq2r2BhgvLiMCQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8920913CBF; Tue, 8 Feb 2022 15:09:31 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 9knWH6uHAmJ3GwAAMHmgww (envelope-from ); Tue, 08 Feb 2022 15:09:31 +0000 Date: Tue, 8 Feb 2022 16:09:30 +0100 From: Jean Delvare To: Terry Bowman Cc: , , , , , , , , , , , , , , Subject: Re: [PATCH v4 4/9] i2c: piix4: Move SMBus controller base address detect into function Message-ID: <20220208160930.4140ed73@endymion.delvare> In-Reply-To: <20220130184130.176646-5-terry.bowman@amd.com> References: <20220130184130.176646-1-terry.bowman@amd.com> <20220130184130.176646-5-terry.bowman@amd.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Sun, 30 Jan 2022 12:41:25 -0600, Terry Bowman wrote: > static int piix4_setup_sb800(struct pci_dev *PIIX4_dev, > const struct pci_device_id *id, u8 aux) > { > - unsigned short piix4_smba; > - u8 smba_en_lo, smba_en_hi, smb_en, smb_en_status, port_sel; > + u8 smb_en, smb_en_status, port_sel; > u8 i2ccfg, i2ccfg_offset = 0x10; > + unsigned short piix4_smba; > int retval; > > /* SB800 and later SMBus does not support forcing address */ I suggest not moving variables around unless there's a compelling to do that. Else you make your patches larger (and slightly harder to review), plus it increases the risks of context conflicts when backporting other changes. Thanks, -- Jean Delvare SUSE L3 Support