Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp567341pxj; Thu, 10 Jun 2021 07:34:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziAWXIcPj90662WBfhmBXnc5KHW6NuV5cLJtPlNfe834XN8vr2lmugqGBr9gpUPQuKXmWv X-Received: by 2002:aa7:cc19:: with SMTP id q25mr5031023edt.56.1623335679410; Thu, 10 Jun 2021 07:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623335679; cv=none; d=google.com; s=arc-20160816; b=TYGefNVikB5js6sYVUG3RhI80g4CcIHozqYns13F0FgusPXXC276rz+ShLA6QHms/D 30Cn3WveO9hC/f9POvrFVePFFJ7J8YOKLO1G+J/JHbx2kqsYZfojwnTo1EogKfWTtJcq pwQNjO/JtEn/yl4wEzjP/Zq4spUV6vB+xLhbzy67LzgD3/6Sbn23DdbcLDj2KyVwHLF3 OsHULAPJeZNqBBtBDNCju7L6yIY9CcJmbd9tSf3L9dpGicub+axfFyYAkLKYXnr2m197 ap8tHcfiAtYYzx8uQotZgKgTWxY1lL2WZP3cTwmL9t7h2scNT59HklggaS4b9vtImvco 1lXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=O3OfshaAKqtAiSiLcMCFLY66GM7ArWNVUl7t/hoSBKQ=; b=cwQZoYCZv2WRYcOT1KcPeCL0mu6EcSAWSVXiiTsoKK/gjtvLoBx6CG2xQQXA0qBfGF XHPM3iN+6sAakQvQX37Vr84HKPmKk0CCeNw7cDBNSxnS/ta2ho9qQtmTfmgyefbu6dLV x6tBLGI1iu3PL8seLsj4OsU8K3Bd1UXg4cATkyxsknO3yDtA5Oq6ZhS6u61Ss3L9zQR1 s7hMLH1Aq6NhzGP7PtlkXxlbE2A3unrZS51ofA2a7mWDZ7e5DmE6yXH5N1gZX54sdVY7 a2jx16d+ijWjx8RRQMLga18OqoExu4p/KqHjtKjXoEmGwpiIEMBHTScICOHMMXLpndFJ ENiw== 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f24si2503027ejz.234.2021.06.10.07.34.15; Thu, 10 Jun 2021 07:34:39 -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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231440AbhFJOfL (ORCPT + 99 others); Thu, 10 Jun 2021 10:35:11 -0400 Received: from mga18.intel.com ([134.134.136.126]:36675 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230153AbhFJOfL (ORCPT ); Thu, 10 Jun 2021 10:35:11 -0400 IronPort-SDR: VRQXk7bPXe6jnMheEG6UBQEtYDWODn4WMOV03qpOBOvHEsm7U8JUG61vz6kYMlriGrwQ9AdCFX +ghpHxZZbD0Q== X-IronPort-AV: E=McAfee;i="6200,9189,10011"; a="192624645" X-IronPort-AV: E=Sophos;i="5.83,263,1616482800"; d="scan'208";a="192624645" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2021 07:32:51 -0700 IronPort-SDR: 8uDDKdrfy1Mxx0drDVGhpbL++tNhkiIuRRyYQA0/KVeB9ft4qtJOj+rxFDu81KmgSKMve3m9Yb 1zweDXmSa1Ig== X-IronPort-AV: E=Sophos;i="5.83,263,1616482800"; d="scan'208";a="402879486" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2021 07:32:49 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lrLji-001AjR-Ql; Thu, 10 Jun 2021 17:32:46 +0300 Date: Thu, 10 Jun 2021 17:32:46 +0300 From: Andy Shevchenko To: Henning Schild Cc: Mika Westerberg , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , Andy Shevchenko , Linus Walleij Subject: Re: [PATCH] pinctrl: intel: fix NULL pointer deref Message-ID: References: <20210609062722.9132-1-henning.schild@siemens.com> <20210609130816.3631f0aa@md1za8fc.ad001.siemens.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 05:25:04PM +0300, Andy Shevchenko wrote: > On Wed, Jun 09, 2021 at 01:08:16PM +0200, Henning Schild wrote: > > Am Wed, 9 Jun 2021 13:33:34 +0300 > > schrieb Andy Shevchenko : > > ... > > > In order to use GPIO from the drivers i need to make sure > > "broxton-pinctrl" comes up even if p2sb is hidden. > > > > Long story short, i thought the patch was simple enough to merge even > > taken out of my special context. > > > > Currently intel_pinctl only works if "ps2b is not hidden by BIOS" or > > "ACPI tables are correct", lifting the ban on the hidden p2sb seems > > like a useful thing in general (i.e. sysfs gpio interface). And i was > > hoping Andy would take the lead on that. It is something my Siemens > > drivers would depend on, but really a generic thing as far as i > > understand it. > > From p2sb series discussion it appears that this patch is not needed. > The case is when BIOS already provides an ACPI device. > > So, the initial bug is in that series that needs to check if the ACPI device is > exposed and forbid platform device instantiation in that case. Actually, I'm still thinking how this ever possible. We have all drivers to provide SoC data pointers. match data may be NULL if and only if the ACPI device provided is a new one that doesn't provide a SoC data. So, w/o seeing ACPI table, I'm really puzzled here. -- With Best Regards, Andy Shevchenko