Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp877593rwb; Thu, 22 Sep 2022 07:29:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4L7wRuIIdtJf0Hwd0TAN2AUZeepXP2/QpZT4Pvdblnhg1USdNxPDI77DxUdKNez2CdxJg9 X-Received: by 2002:a05:6a00:24d4:b0:544:abd7:c944 with SMTP id d20-20020a056a0024d400b00544abd7c944mr4076690pfv.44.1663856944976; Thu, 22 Sep 2022 07:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663856944; cv=none; d=google.com; s=arc-20160816; b=EPYqRxcfpXxlrRBuhljZks3I2ngjUsc582tALqpRtEgcoBXqx9gss+NnAXr6ysIypu NyNaw/Gi/2t+fOqUFaE7XSol/HS1Ple1hfziXOuIZKSP7jq6ZGL43r8bwTtQS7exalzu khAcC2nRV+6LiLXO9KeSfMtTvN3POhv6W1sParsMteo75mIpUrF5RV29D8Bq553O7iy2 YEu1p940Mmp27ofB/No9Z1wShHy0OeYpfQAmGk51WnuNaRx5BLoPv7YaII5n7K0lyhdP Bflxahjr9gDV2Bs5Ou77uJPQsAkGYgSuZwPMB+YHqQeMf1eEOwtKsykxMhFP4WQIF1YV QSVQ== 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:dkim-signature; bh=yu2dqhupNEC5iZs4+QvOOYP9YrBIF4Tg60Iod4b+qF4=; b=MQHwzrtqH+z7IrSYd2ImQWqLqML+pNnJCT4cLijPr7I3e4huYxpCurTP/GknH7yC5U vZ3Uw95IgSfrbDfCeeDRBI2oj39QGEbJBNAuBDfit5wG6N3zSQvfpwmFBHvHfkby57Zm YD7GgsfjGpBKdKqn9JHhLyur/StP86WAYVSfCgYQFUGdXk+fonuj14BEY/jxX68SQFdv ugHUpw7z3L4jGBGJ9vQ7VfB4/0phnlQ/XqP5Qt1uLzPdSJYqcYMpNs4qX5LiVzH1GCLK NazonVfAX+hZTbl75nHZBRCA/eEjTBrqOWe4TpFSGePuTF1KmTkzTrJv6Fy66AiiF5Rh RxoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=UqI9VdnJ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="ks14P5/5"; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a170902da8600b001788bf609f8si7052825plx.490.2022.09.22.07.28.52; Thu, 22 Sep 2022 07:29:04 -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=@suse.de header.s=susede2_rsa header.b=UqI9VdnJ; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="ks14P5/5"; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbiIVOEq (ORCPT + 99 others); Thu, 22 Sep 2022 10:04:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231612AbiIVOEm (ORCPT ); Thu, 22 Sep 2022 10:04:42 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5808BE06; Thu, 22 Sep 2022 07:04:40 -0700 (PDT) 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-out1.suse.de (Postfix) with ESMTPS id 072CB21999; Thu, 22 Sep 2022 14:04:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1663855479; 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=yu2dqhupNEC5iZs4+QvOOYP9YrBIF4Tg60Iod4b+qF4=; b=UqI9VdnJrGsbX9aHUXUR8RH53iDpu1pKXLbsNGDSjUCj+SGI/3OX2vQwDxftUd3QB1N+ew i3P2oY7o7EpyteyY4CCQUxBub5c5qGabAyn9jwjzdBa37W/XSmOJxHswmxKWGY4vP/L3oi lNjClDQL2+zZ+xWgCDnf4U0IT0YQPb4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1663855479; 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=yu2dqhupNEC5iZs4+QvOOYP9YrBIF4Tg60Iod4b+qF4=; b=ks14P5/57VzpYLvOWbdOQ3PzH3gualwQbiRB/GcAchUs+0nt+dFi8c8atQVZ53LLzlHGHe UIOBIbtWBuGwwvBg== 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 ECDDF13AA5; Thu, 22 Sep 2022 14:04:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 3xLLOXZrLGNUCQAAMHmgww (envelope-from ); Thu, 22 Sep 2022 14:04:38 +0000 Date: Thu, 22 Sep 2022 16:04:38 +0200 From: Borislav Petkov To: Hans de Goede Cc: Andy Shevchenko , "Limonciello, Mario" , Jan =?utf-8?B?RMSFYnJvxZs=?= , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, jarkko.nikula@linux.intel.com, wsa@kernel.org, rrangel@chromium.org, upstream@semihalf.com, Muralidhara M K , Naveen Krishna Chatradhi Subject: Re: [PATCH -next 1/2] i2c: designware: Switch from using MMIO access to SMN access Message-ID: References: <20220916131854.687371-1-jsd@semihalf.com> <20220916131854.687371-2-jsd@semihalf.com> <60a52348-7d50-1056-a596-e154f87c99d2@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 Thu, Sep 22, 2022 at 03:48:07PM +0200, Hans de Goede wrote: > Right, thank you for Cc-ing me. At least on X86 there are several platforms > (and 100-s of device models) which use a PMIC connected to the i2c-designware > controller and this PMIC gets poked directly from ACPI _S0 and _S3 > (power on/off) methods. So the I2C bus driver needs to *bind* to the controller > as soon as we find its description in ACPI, otherwise we get a whole bunch > of failed ACPI OpRegion access errors as well as various actual really issues. Thanks for explaining - I couldn't find the reason why it has to be a subsys_initcall. > So please keep this as a subsys initcall. Which means, init_amd_nbs() would have to be sorted to run before dw_i2c_init_driver()... -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH GF: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman (HRB 36809, AG Nürnberg)