Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp117781rdb; Thu, 21 Dec 2023 04:41:42 -0800 (PST) X-Google-Smtp-Source: AGHT+IGhM3vE20gZuVVao24RLRBjas8hab9iMfkD71p++fezVJt6aka7HE8cjHBLqReXmDfR8Kit X-Received: by 2002:aa7:dacf:0:b0:553:a693:af09 with SMTP id x15-20020aa7dacf000000b00553a693af09mr2438980eds.7.1703162502464; Thu, 21 Dec 2023 04:41:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703162502; cv=none; d=google.com; s=arc-20160816; b=KqfsNXaocL2Rol75qIQuLC3p5HsDQkMBjYC1uzYGx+EM7+zx+Xg3CiZ2MPkMdg2ecc GiNHa0KOn/mH4HFYjYTvHiDe3G9tjUeWOU+Ad9jLtQns2zqx6kTf8u65Wf/byTkgyaYR MZa88kpvHCqAxiIw9P9calpaOqrIHIALwo5jsQIKUD9lq5A1KVcP9HUAoBhtXjrgn3dN gvYvmHkVz+9UEyCs3C9eWwq3XH4yPz6ijU6qm3ApTdmrW+LzFOkCUccP7rb1a8enCC8O xQpnX3XDvGrn1dARSh6eioNdCxfcTYKQpZ0mmU7fhDXc3vn6ZYBNTSPceb63g8z3lph2 vj9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=WaQURdAs+0bt63ykEL+SoMX8xPiVVD/3HU6wbIp9OqQ=; fh=pYdDu9DD54qrsLRm35nTzkDxj2UcmzzCVGHnKe6mJSc=; b=BgW+4yBq9AOPUcms+hdIG7Qxa0HzH8wcwuUwU0lJRjnD5vHXoQxS4jRo9MIJ9xeleB gEKhfW3CoBbb4LF2pUD8LbSlxvJIjaoPYnVtSyuR81gfnBJ5tyFriosONl19itoBTdXL vMhzN8MRKnXZHioEoDtkx3Kd13TmowaXJQSs6g2L/MfuKkT9mvVlN/wOYjbhBuj1NH6A c1IcgfRg7MilxeLtKPAZXc8kuDD2BUrVy8vosuMedfpp6JgEX14eFDP6b+M090tIbo6u yj5JyIbqC3VDhKBQT06/+a3WanLcq85A9jwNgFM3gnx7IXlr5LkLdKHtYtow3BPqu1PC iILA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EV8B6e3T; spf=pass (google.com: domain of linux-kernel+bounces-8353-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8353-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s1-20020a056402520100b00552a6476223si844759edd.270.2023.12.21.04.41.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 04:41:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8353-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EV8B6e3T; spf=pass (google.com: domain of linux-kernel+bounces-8353-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8353-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 38DBB1F21C9C for ; Thu, 21 Dec 2023 12:41:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A89756EB64; Thu, 21 Dec 2023 12:41:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="EV8B6e3T" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01D4E6EB4D for ; Thu, 21 Dec 2023 12:41:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703162494; x=1734698494; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=lsmG7fipfeogrSZNkFVhTw0jNcxSpeksRFqeTjy2V8s=; b=EV8B6e3TDYBV4Ml6LHF6BrI7vblfxfdS6OTBc/z8xrM/H3gJc58BDvch bSS6THBUrUGlTtfFBFjE6xq4pt357ZdDC8DexVicjw+EoHQomeKgvea8+ bjfVOpK6FTadZuIQjByThO/AYzPvPheVgfxJHtTLjLpEqdldxEMm95aDm GZ0ShE71QqFSMeGUzCBM7LH3n47PV3aE7dKmNxdlxyf1tb/aZQVMiWs3A /qvz7f8OxoyZz80RhcpyQZQ1OWHOun/Ge+lOSKeoh4Z7TJhouBO+dR444 AVwHNm7xonS/TnqBZVgu9kOIWgik7Q8kj3dTshpVddrAxsDaIlwhMYfXR g==; X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="375455866" X-IronPort-AV: E=Sophos;i="6.04,293,1695711600"; d="scan'208";a="375455866" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2023 04:41:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="949918527" X-IronPort-AV: E=Sophos;i="6.04,293,1695711600"; d="scan'208";a="949918527" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2023 04:41:31 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rGIMi-00000007qsM-0Eol; Thu, 21 Dec 2023 14:41:28 +0200 Date: Thu, 21 Dec 2023 14:41:27 +0200 From: Andy Shevchenko To: Aleksandrs Vinarskis Cc: hdegoede@redhat.com, lee@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] mfd: intel-lpss: Switch to generalized quirk table Message-ID: References: <20231220073148.19402-1-alex.vinarskis@gmail.com> <20231220205621.8575-1-alex.vinarskis@gmail.com> <20231220205621.8575-2-alex.vinarskis@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231220205621.8575-2-alex.vinarskis@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Dec 20, 2023 at 09:56:20PM +0100, Aleksandrs Vinarskis wrote: > Introduce generic quirk table, and port existing walkaround for select > Microsoft devices to it. This is a preparation for > QUIRK_CLOCK_DIVIDER_UNITY. Thank you for the update! Some nit-picks below, after addressing them feel free to add Reviewed-by: Andy Shevchenko ... > - { } > + {} No need to change here. Also I'm not sure about "}, {" style. Lee as the maintainer can clarify on this. ... > const struct intel_lpss_platform_info *data = (void *)id->driver_data; > struct intel_lpss_platform_info *info; > + const struct pci_device_id *quirk_pci_info; > int ret; I would preserve reversed xmas tree order: const struct intel_lpss_platform_info *data = (void *)id->driver_data; const struct pci_device_id *quirk_pci_info; struct intel_lpss_platform_info *info; int ret; ... > + quirk_pci_info = pci_match_id(quirk_ids, pdev); > + if (quirk_pci_info) > + info->quirks = quirk_pci_info->driver_data; Can you confirm that there is no compiler warning if you compile for 32-bit? ... > +/* > + * Some DSDTs have an unused GEXP ACPI device conflicting with I2C4 resources > + * Set to ignore resource conflicts with ACPI declared SystemMemory regions Please, mind the periods at the ends of sentences. > + */ ... > + unsigned int quirks; Depending on the above (32-bit compilation) this might be converted to unsigned long. -- With Best Regards, Andy Shevchenko