Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1768729pxb; Wed, 9 Feb 2022 04:11:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbMo2G6Pi7c/k+BW4KHlpMy6epIhKmhXKvswIz2Ek2Mz7VTglGPfqyEmwZGJBKVCPWKSBu X-Received: by 2002:a05:6a00:ac4:: with SMTP id c4mr2051265pfl.70.1644408718440; Wed, 09 Feb 2022 04:11:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644408718; cv=none; d=google.com; s=arc-20160816; b=AfnL2j128qrE8tSV+gvh3BoTKiNtS5jJJRlM/8Ea0wmHksk/XwMb4pdW37fpiBiijo F8i1EttTBCYwlRvM0sB5vw9X36+Xi00ACQCT1vndnmLvMg5ts8whpLgKEiA3mKOxBY3R oQyzH3aJvsiE8Zwycbd9IfXwOLQECfjXq+VT9Cl63prU2FvA6Qjq7v1Ptnet7HeSjJ+J DbMeUcZZReiKO3vH5PGAoMBdQ3kuVLfXeuYtsHq4z/DOtVXvqT7v4MK23t7VyNrgNZyW YtienW2Ww4YRiS8LuC75ra6BA9OUtbHTC2DczxFIpC6lxfWd4cfXZGfGValbw3RH2ac4 8UTQ== 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=GIf2zFho4Sxk/tEjlY27tIR95Enmi/ydcgbRVDALqAs=; b=Ch8PMvg+7mr2az9No8vj6XUUjJPQmzFMVjWuKc2HB7kwiofV457r+mcgcIQ+ZNpFnp nYUYGBar5cNlw49xJB8wpSh4/ioclONyIyVkGz8Gs65+GFcafrO2NRe3YZcBHvvw+Pk7 OxBdwjwa3DMyqznC1cvAD/m5MaFQj0NoeB/ZYV0bGrP+bDWIm6dYYFpYBMCsOZQUY0f6 I4KYO5lpOdrf4pMgHSPg6F0I/o3isL9d1vxQHTwOvfzDpNprf879VkBGrnnS4F3t85y+ rkFpBIksyXh3SO+n91Fk4fcjtxQ+MEovubm/jwW1X2J+W8TxYCF6gJfwVsiHheMI+VNS l0BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=LfYkvuBx; dkim=neutral (no key) header.i=@suse.de header.b=ZmimtIw9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u4si14405661pls.5.2022.02.09.04.11.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 04:11:58 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=LfYkvuBx; dkim=neutral (no key) header.i=@suse.de header.b=ZmimtIw9; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AB309E085BCF; Wed, 9 Feb 2022 02:09:21 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383000AbiBHQTq (ORCPT + 99 others); Tue, 8 Feb 2022 11:19:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382974AbiBHQTp (ORCPT ); Tue, 8 Feb 2022 11:19:45 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EB5EC061579; Tue, 8 Feb 2022 08:19:45 -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 BC8FF1F383; Tue, 8 Feb 2022 16:19:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1644337183; 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=GIf2zFho4Sxk/tEjlY27tIR95Enmi/ydcgbRVDALqAs=; b=LfYkvuBx8JmP+5ga7pRD2fN7t297lYU37VEKxjoX7PGVLj6tuLKv9MUoR6Jr+jvEBkaooI zy2NwJj31hPtuIdMBSRpMuUSzi/RpMi7h8EWjEQGqOLJyTivpcilgovRP7ekqiOx1fRYg8 G88K0NI/VbBmHtSblrD8uJCEmI1MZRg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1644337183; 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=GIf2zFho4Sxk/tEjlY27tIR95Enmi/ydcgbRVDALqAs=; b=ZmimtIw9vp4e/tTgLXcdDYoaPa1Y8Kdtt/+9qhjy581HECLqAeqJGUVVKYZy70lQYXhsIY eNugADZh948UA4AA== 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 3D1E713CDC; Tue, 8 Feb 2022 16:19:43 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id fVRSDR+YAmJTQwAAMHmgww (envelope-from ); Tue, 08 Feb 2022 16:19:43 +0000 Date: Tue, 8 Feb 2022 17:19:41 +0100 From: Jean Delvare To: Terry Bowman Cc: , , , , , , , , , , , , , , Subject: Re: [PATCH v4 8/9] i2c: piix4: Add EFCH MMIO support for SMBus port select Message-ID: <20220208171941.18156714@endymion.delvare> In-Reply-To: <20220130184130.176646-9-terry.bowman@amd.com> References: <20220130184130.176646-1-terry.bowman@amd.com> <20220130184130.176646-9-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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Terry, On Sun, 30 Jan 2022 12:41:29 -0600, Terry Bowman wrote: > AMD processors include registers capable of selecting between 2 SMBus > ports. Port selection is made during each user access by writing to > FCH::PM::DECODEEN[smbus0sel]. Change the driver to use MMIO during > SMBus port selection because cd6h/cd7h port I/O is not available on > later AMD processors. > > Signed-off-by: Terry Bowman > --- > drivers/i2c/busses/i2c-piix4.c | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) > > (...) > @@ -765,6 +774,7 @@ static int piix4_sb800_port_sel(u8 port) > > return (smba_en_lo & piix4_port_mask_sb800); > } > + > /* > * Handles access to multiple SMBus ports on the SB800. > * The port is selected by bits 2:1 of the smb_en register (0x2c). We indeed want a blank line here, but it should be inserted in patch [5/9] (which adds function piix4_sb800_port_sel), not in this patch. -- Jean Delvare SUSE L3 Support