Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp886040rwb; Thu, 22 Sep 2022 07:34:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6LIi4zW5aBZjaYkUMaPPAihldaEJpTeRvQJoDz95WbCTQsXSxI8liNDCRvVcCXB0XzWaoe X-Received: by 2002:a17:906:8466:b0:77b:43e9:48b5 with SMTP id hx6-20020a170906846600b0077b43e948b5mr3082749ejc.254.1663857281871; Thu, 22 Sep 2022 07:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663857281; cv=none; d=google.com; s=arc-20160816; b=Y/szHF+RmokuQdc3tX5BesOlUxEXsRl2Vz6GGr1IC9QeMtFNA2T/FXhxUVUx2iE0vf XbTezjtUTO2VjKv0xSVwdsJv0YUjzuJsnsRVmsNXACp2Px9fAoaJNFwVgnIMxGu6HA2H WBa9GBwLuLNBYeydtPFba3+oAJtE8USnU+nWMCjzvr5kn7t9OXRjqfBnvHiNi1TTrQmu 8vxiTiodHuPu0dLCqYyTqUuQCLIYQUQj14zFhuOfM7LuNZ52kIhDCYQ0RY9jqBLgW4Ht Zo8fs0dth6W6KR8hDZ6XLgcxNrLfR07bYrph/CrholCjKA5DQO+uTAmy45rxaGs1l0m1 ZH9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HxUZD2Yl2mBpvSCeHuLxWU5WRH+vQvCPB+MlfCo1+9o=; b=m4C9d1QUkR7ctKZOAUxOErweJVUF6Rt+DZwOVy4XA/lnahnilZiZ5PfZaLOfyTk+tN X8K7SKGd1NzYpdWWXSbEalM0b/RtkIsLYUOM9cGLhm/ALipmuAbA0Zpok9+tZtl2uoDj gogO5TX3yBivs1bRoBXbUj7OpPBtWtHB3t+ATZ4JMyZt2aq/mILiQ4mmkZ4u0CDqKlbS CdR9AEufGi+MC/q9AAJApmyTw3qszr4mcnbO8g5BLrB0VNvGlvmoA9quifN2AkdnIn14 bdrPnrnCme0mzoORyy83AplpMnZh9MC+Zkdnk4NFVaZD/vMgMadXuSeBmHjmCmUgEGjr oAVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z2cdjgjP; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q1-20020a1709064c8100b007386f4ab2a2si136619eju.638.2022.09.22.07.34.14; Thu, 22 Sep 2022 07:34:41 -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=@redhat.com header.s=mimecast20190719 header.b=Z2cdjgjP; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230075AbiIVOaD (ORCPT + 99 others); Thu, 22 Sep 2022 10:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230073AbiIVO37 (ORCPT ); Thu, 22 Sep 2022 10:29:59 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D54A48E9C for ; Thu, 22 Sep 2022 07:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663856997; h=from:from:reply-to:subject:subject: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=HxUZD2Yl2mBpvSCeHuLxWU5WRH+vQvCPB+MlfCo1+9o=; b=Z2cdjgjPZ1Mfg8vLKOZomAHiYA9xazQRbG8PxhDSAnMprSPaNMeX5n4dYi3AIK6L5Lm9J9 Uba7qdpCqlIzMgT68VjoSlMoYbC98lxgRxXvPCgdFjg5eWrOtiOiAD4tze2AoLh6pwV3Qe DUS8HQAm9dBpggBc1aIkXKOfPXD9u8I= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-609-BXlUBpjDMraxqB1MpLLubg-1; Thu, 22 Sep 2022 10:29:56 -0400 X-MC-Unique: BXlUBpjDMraxqB1MpLLubg-1 Received: by mail-ed1-f69.google.com with SMTP id x5-20020a05640226c500b00451ec193793so6835732edd.16 for ; Thu, 22 Sep 2022 07:29:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=HxUZD2Yl2mBpvSCeHuLxWU5WRH+vQvCPB+MlfCo1+9o=; b=qAnOoeZ+Fhf7BohHq39YETLmgz5aKIQHZSc/e10BeNR8XjMa5KHyxBgQ/1/C2L/GZg HI3hS6ija7ZvmsGhITC8kSrGQAIWFw4qZz5s0IOBCVIWPfO1o9yu2istOaLwbjipjUhs vp0+Riu5dGhDt1HKXLzQHcXT+PgD0u9jQrZGGFCIkZAxdxmXvHihnDLwv6RQzkT8BJ/c i+E2m7e1ZeDuCsorCbX3h7v96TClxSE9mBaACmO4uGaPiMm/cfE0Cmxb5oO7pqpKJEqz 06B2Yjbi5tbJpXSTD428BJyy8q8Cz2BaSr4H4xalX1Ij4iuVV32TCqmEnxVLhRQ0umC4 2tWA== X-Gm-Message-State: ACrzQf1NzdhZhGJhBdh8uIgx0g+mTzlDbRcKs6QzuZlVz3wAMF/4Hf6M kjpkZ+Ms7UeuJkf0wcgoOyzycyjScsHqjnjG5OZzYsxHEovUt+RLALfPE8hWSiNg6uQPXNuTgwt d0iuh5/ZQLpSlzS2yd0aO6VVO X-Received: by 2002:a05:6402:b85:b0:44e:dad7:3e24 with SMTP id cf5-20020a0564020b8500b0044edad73e24mr3735585edb.264.1663856995243; Thu, 22 Sep 2022 07:29:55 -0700 (PDT) X-Received: by 2002:a05:6402:b85:b0:44e:dad7:3e24 with SMTP id cf5-20020a0564020b8500b0044edad73e24mr3735559edb.264.1663856995055; Thu, 22 Sep 2022 07:29:55 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id o6-20020a170906768600b007386a8b90c9sm2788398ejm.13.2022.09.22.07.29.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Sep 2022 07:29:54 -0700 (PDT) Message-ID: <33d5cc27-474b-fdec-a6b0-84ac16f7d386@redhat.com> Date: Thu, 22 Sep 2022 16:29:53 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 Subject: Re: [PATCH -next 1/2] i2c: designware: Switch from using MMIO access to SMN access Content-Language: en-US To: Borislav Petkov Cc: Andy Shevchenko , "Limonciello, Mario" , =?UTF-8?B?SmFuIETEhWJyb8Wb?= , 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 References: <20220916131854.687371-1-jsd@semihalf.com> <20220916131854.687371-2-jsd@semihalf.com> <60a52348-7d50-1056-a596-e154f87c99d2@amd.com> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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, On 9/22/22 16:04, Borislav Petkov wrote: > 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()... Yes if possible. One solution might be to make it a arch_initcall_sync() which AFAIK runs after regular arch_initcall()-s but before subsys_initcall()-s. Regards, Hans