Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3417849ybt; Tue, 23 Jun 2020 01:35:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbwpy+69Wg2GlOd71wtsV+ZmkF1lFgGR2EJdkJ3OepclIKXLBtER52LoztdTxgNKK4G4zp X-Received: by 2002:a17:906:9381:: with SMTP id l1mr19724366ejx.380.1592901354552; Tue, 23 Jun 2020 01:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592901354; cv=none; d=google.com; s=arc-20160816; b=XUof8nLwc8qKTu67bCdU91cfdhnDn/pgaaKCiuxH1EACrQ9PpGQcoLrDpU8fvVTQKh JBMsMaaelD8uelMH+ysNWCysCdIfx1vjBBeDZSiQKEiw38xYd0oub2JrPE6glfc0KhV2 qg6ztvJJJmT9wCd5Am6Om9zd1DzdwsOsj92IqJeHjq+S0ZeiwG804LtMppL5HqnoeDE1 NtRkZTHIOCuip6BH17MiBJZ9x//+nB9XgpXEB1DuIUbdoclDNMRsiy2RCcV8omnntHNm ZWNQzbawv3WmzJJm1fLk014brALbElEYSr6qw8ZZ530NEwMP3EedO13nOtXh2ZDjPrc0 xeoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:ironport-sdr:ironport-sdr; bh=r00Sa+BVy6UvKhdYtYHoSga5rbs57iWFqSQDHSPcCR0=; b=0r7bZGslnkRdGghy9jFmXUiXSRivEdHfK+mHknxld430NNCxnWRM22JkQL8fLCT3Ub D1Q/P0dudxHAm9kucTWA2tGsqII/mBJbYwD8FW3os7ME/xrxldbykr2UBtJ3IqmXJnTe lfCjKADsz6aL0dCxBaY/2MFJBPvHl2JxbHwiHfr/ofeDKfu0Xrf+RGBLbAHO6BYNSsEl pGfPEmrgT59WJXTyPilgfHx2rSerLmUii5BWEgPohQQyjV6NiKl2u1nsDIl9xvnAc4Ha HihDlcYRC6TgwfEnh/X0YjrX9Sn2OywKfUl+YbLjMwP/Qa/DNyoFrdeYAUaXGl1XegmP UfUQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si5581186edv.497.2020.06.23.01.35.31; Tue, 23 Jun 2020 01:35:54 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731783AbgFWIdd (ORCPT + 99 others); Tue, 23 Jun 2020 04:33:33 -0400 Received: from mga17.intel.com ([192.55.52.151]:54205 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731579AbgFWIdd (ORCPT ); Tue, 23 Jun 2020 04:33:33 -0400 IronPort-SDR: FDGEW1N0Bq4pEde0OtEtv/LQZzM4mlIrTE+z1pbGdW1j4XCeOqkXFEyIh9ghzobNU5ZL0m9KUg cSxYEosBRzJg== X-IronPort-AV: E=McAfee;i="6000,8403,9660"; a="124262267" X-IronPort-AV: E=Sophos;i="5.75,270,1589266800"; d="scan'208";a="124262267" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2020 01:33:32 -0700 IronPort-SDR: VcuRFLa3aMgDYJ1ODJzyyswd2p2S6MJd1FWN3QstouzkItwFoYqOy+yoiy7dx39ldYrJYBW7Ig 1tpAJH0qHEWA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,270,1589266800"; d="scan'208";a="353737239" Received: from mylly.fi.intel.com (HELO [10.237.72.87]) ([10.237.72.87]) by orsmga001.jf.intel.com with ESMTP; 23 Jun 2020 01:33:30 -0700 Subject: Re: [PATCH] i2c: designware: Fix functionality in !CONFIG_ACPI case From: Jarkko Nikula To: John Stultz , lkml Cc: Andy Shevchenko , Wolfram Sang , linux-i2c@vger.kernel.org References: <20200623025144.34246-1-john.stultz@linaro.org> Message-ID: <96ea5e42-0632-4c8b-03c2-4958b9eea8c5@linux.intel.com> Date: Tue, 23 Jun 2020 11:33:30 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/23/20 10:59 AM, Jarkko Nikula wrote: > Hi > > On 6/23/20 5:51 AM, John Stultz wrote: >> On the HiKey board, where CONFIG_ACPI is not set, we started >> to see a graphics regression where the adv7511 HDMI bridge driver >> wasn't probing. This was due to the i2c bus failing to start up. >> >> I bisected the problem down to commit f9288fcc5c615 ("i2c: >> designware: Move ACPI parts into common module") and after >> looking at it a bit, I realized that change moved some >> initialization into i2c_dw_acpi_adjust_bus_speed(). However, >> i2c_dw_acpi_adjust_bus_speed() is only functional if CONFIG_ACPI >> is set. >> >> This patch pulls i2c_dw_acpi_adjust_bus_speed() out of the >> ifdef CONFIG_ACPI conditional, and gets the board working again. >> > Andy: what you think should the i2c_dw_acpi_adjust_bus_speed() fixed to > return adjusted speed or zero if not found (also for !CONFIG_ACPI) and > move above lines back to probe? It looks more clear to me that way and > should fix the regression I think. > Ok, I sent a patch what I was thinking. Care to test John does it fix the regression you are seeing? -- Jarkko