Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp956101rwb; Mon, 26 Sep 2022 07:56:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM48X+4FP3gvf2kAroLuVt9DFsl++d4Nn+6eSXP+0fi63vnYLeH2JI+BlqB5QU+wDML2bl7e X-Received: by 2002:a05:6a02:190:b0:43c:7997:4d69 with SMTP id bj16-20020a056a02019000b0043c79974d69mr10990794pgb.15.1664204164843; Mon, 26 Sep 2022 07:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664204164; cv=none; d=google.com; s=arc-20160816; b=RnFZw1ySwqNypHDnaEQCpRYBIhd9fPiJ1gJoYYueTGtbFBZfhdI9V1mpz1EwUxLIlD c9BSmPzwiIIIzKLmQaI0SZgpgfjk6ddgskyuuPmLb/k6zlmMnNZtr3yGNGBO3lAvBpbt H3m184qV8UeXn6kfXI0HagWStaZm5uhoaph0nbNBOEDZREuHYMLsUebBbYwXmWkode64 SG6sJzgELFAq+1mISORDYQT1jvYjQCxychbHtyqMurTj0+3ZbKfRQZZPYdhlGHcZc23l aH1PKsduT6D/oLF+gE/cHMQv2wN0cJ1GZAmvGBNVzN2Wqj/A009PNHSR1b4tStNVmaZC cfkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=SyCdAz3/ecUtDFfQmC1TuMy7jcuE/dDqGILRTJaH9kM=; b=KI8v3Q3pGIrnWvz2vh/fLCqvlohRjJfjyKSVFGelpDagEN2tkVboM5BMvgmXTZYe/l cRUE/7Pd+YRZKcAuHrteyRHeVSZCorSXB0MBgA9px3jJfbFIiPh2bHihp9CGHzD6ip8k zVP1gSK6f9y7MynnnYVsd3T5Crr5HgG3GYJuLvQ68tkZkGSd7LqlkQ2wYGYNu3kEd4hA fmNphq538WZ/gApsrA0K88xwn/qoMPWLLzQlPmTlUGj7RDfMKytuhj/FOw6Pgig4zksn UVrv8TIGniru7cey0kZ3Ia4IIOyQ9R3sNT/LFRxEHt6YxRxDG2tXA0W8OdDJ4bdBzTZu in7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@semihalf.com header.s=google header.b="OT/5lOeQ"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d3-20020a056a0024c300b0052ea6666960si21173388pfv.337.2022.09.26.07.55.22; Mon, 26 Sep 2022 07:56: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=@semihalf.com header.s=google header.b="OT/5lOeQ"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=semihalf.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234543AbiIZOeB (ORCPT + 99 others); Mon, 26 Sep 2022 10:34:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233163AbiIZOdG (ORCPT ); Mon, 26 Sep 2022 10:33:06 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFBB125E7 for ; Mon, 26 Sep 2022 05:49:24 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id x1-20020a17090ab00100b001fda21bbc90so12278912pjq.3 for ; Mon, 26 Sep 2022 05:49:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf.com; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date; bh=SyCdAz3/ecUtDFfQmC1TuMy7jcuE/dDqGILRTJaH9kM=; b=OT/5lOeQ4YTZyfXlumqodv+v5oQvD8xxX4AUIYiSC2ReE1YVrHF0E8aI0MGhWfQoSJ uS+pc0fuPq6MdGBKK7WSqG+zO7KzjNdjAwVr3GHR4/HsQvYlQZ45eMnB4nTigK6d5HGS HmrdIID4CRJ7DJJn1/osW6mVWHOQJKtA3/euumGUZaJEWC7WzlweV7OfBDJFeBODgx0L P1HjgxWsCi/bLYKQGWWV1ZTJVGZnM9CjMwGIzO47oZT4kV8RM1QZ8Btb8Dm8lOotqfst yzQt/12StddSnVJGrcUbzcEYUnphUOkoV2cHmsnN9P75iMiFjvHsdwVulfap5gYaJTDY le2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=SyCdAz3/ecUtDFfQmC1TuMy7jcuE/dDqGILRTJaH9kM=; b=vatJn3dTnhRC5GdQYpAW3KgLoenzCEwwPQjHFOB5Rnj4zykH8yJ1DCg+OdA/etA9IY ZS8SH/Lptsjvq45gppbLq/QE433x+EgNtg897MDcP5jAgppWIEYtQunN+/5Hs/UvKCKQ +VCxHg25z+ukyZ9K6tP2+/I8+ce4+BuTpyUPx9JGgls0v4QDR0CmFhbSlPKPz5zEjO6b v8+OAZCFX50oEnZ652NgROFplq9n6PD53p3TaEqeEq3XGKUkyLlM0+/LP2pJI+fDCN74 aSM5SpcsrxTmeOavK9i8I/p9xNsvFv+MXJOwnX8D+Zelt/0NFFRMKI/RzeRh7YKXrRbo JbHA== X-Gm-Message-State: ACrzQf1ZA87CMGyAklNvmveBLpsaJJng4EbDZs22pt7ogHG03Zh17d4O WR+nhVz8c6BPAQ9yJH88bEs7w1Px5xGuk9MtR0F2ZQ== X-Received: by 2002:a17:90a:fd8c:b0:200:8cf9:63f4 with SMTP id cx12-20020a17090afd8c00b002008cf963f4mr24332702pjb.201.1664196564264; Mon, 26 Sep 2022 05:49:24 -0700 (PDT) MIME-Version: 1.0 References: <20220916131854.687371-1-jsd@semihalf.com> <20220916131854.687371-2-jsd@semihalf.com> <60a52348-7d50-1056-a596-e154f87c99d2@amd.com> <33d5cc27-474b-fdec-a6b0-84ac16f7d386@redhat.com> In-Reply-To: <33d5cc27-474b-fdec-a6b0-84ac16f7d386@redhat.com> From: =?UTF-8?B?SmFuIETEhWJyb8Wb?= Date: Mon, 26 Sep 2022 14:49:12 +0200 Message-ID: Subject: Re: [PATCH -next 1/2] i2c: designware: Switch from using MMIO access to SMN access To: Hans de Goede Cc: Borislav Petkov , Andy Shevchenko , "Limonciello, Mario" , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Borislav, czw., 22 wrz 2022 o 16:29 Hans de Goede napisa=C5=82(= a): > > 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 plat= forms > >> (and 100-s of device models) which use a PMIC connected to the i2c-des= ignware > >> 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 c= ontroller > >> as soon as we find its description in ACPI, otherwise we get a whole b= unch > >> 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_initca= ll()-s. What do you think about this? Best Regards, Jan