Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2954383pxk; Tue, 15 Sep 2020 06:43:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4pNqV/Y38nwPBx98MXo2iCJin97OKeV58eUZkh0mkJmOYFs9YNUQriCjXbeFbEQfjt3fh X-Received: by 2002:aa7:d04d:: with SMTP id n13mr23185515edo.354.1600177437576; Tue, 15 Sep 2020 06:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600177437; cv=none; d=google.com; s=arc-20160816; b=NyHHAzarbz5gmjeMLkKvWwpQ3mxSYWLD2SLTIt3vRj1FXdD0atwWWwyzeNmp0BO0XS FYxuE6HuqD56DbX+5gFuRHRVljff+3vkBLiJe2gAIUJHgRmij+E6c18zVN/ncvHm46gV eiVa8fhZNosX6Go+/YFnByXCkwmf3YI7IjMLoXgAbm1ZarPLyksUKrXNvV6UZlW0zFEh NB+fu0oLaQeMEY4ln8rQ2YL68rcGQAdR5Bs2BJDPG47Opg8qMhdrjPjL1e+jQodPsMSO qelppANUdrzKDJnPZJnr4+saL9KU81UJVbqnupYLm3uPlofa3zY0MhWEqp8Ce5xLKRct X9oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=M2dBEGMo6fjXFMtz/XZT1Mec7Hh8bDIOd4VbcREgyBw=; b=y71cCoaV6SDrBMKamvZBmKpNKBEazRxjU01ACQWJ4O6zBi+C3DL1F9mByEfaWPGCIM xPNaRgmWvIWcDrxuLdN+HeXb8ToZWhMKdcmwfDxnQ7nQAMB2vB7gW1THVetcPOwq2y4+ ZQPdUEvv7WXabtUQ4wZ+idL347aNfyQ3n1lGp/8ZDdVAKcIgDaXSER4kJlo5KHNZ4omm /D+cI8UrKV5dwkzHOI1qkoMHrbatIOF6Ofo2RuOFuUL2ynyMzp4rlNWRmC+eLYHyO4xH M9rHPFmy2TJKWufY5EPvDlXsUnpd8yjMXYURBGWSpVPhlaqBGnAv9K9IyBHYRRbxQOsy TxGg== 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 b23si6991396edx.34.2020.09.15.06.43.34; Tue, 15 Sep 2020 06:43:57 -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 S1726621AbgIONkh (ORCPT + 99 others); Tue, 15 Sep 2020 09:40:37 -0400 Received: from mga14.intel.com ([192.55.52.115]:5277 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726662AbgIONbc (ORCPT ); Tue, 15 Sep 2020 09:31:32 -0400 IronPort-SDR: kWaTX6pva6MODCDdzDkCiikrMnt/5VH3mdti3JqxNzAoKTnYzkQo3DSBavNUM1Y7HHFU5VThbJ 8L8DqkvWzRqg== X-IronPort-AV: E=McAfee;i="6000,8403,9744"; a="158537922" X-IronPort-AV: E=Sophos;i="5.76,430,1592895600"; d="scan'208";a="158537922" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2020 06:16:55 -0700 IronPort-SDR: Kf691X6We2njLLlvFwQ3Km+IAdktaTZ+646hQ2Xv1GzgdhxfI5mD870cVwnIT6XQ54bFOV9QKC 81DAbY0lJQJg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,430,1592895600"; d="scan'208";a="335650948" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga008.jf.intel.com with ESMTP; 15 Sep 2020 06:16:52 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kIApE-00GqTB-SS; Tue, 15 Sep 2020 16:16:48 +0300 Date: Tue, 15 Sep 2020 16:16:48 +0300 From: Andy Shevchenko To: Anders Roxell Cc: Bartosz Golaszewski , Linus Walleij , Mika Westerberg , Kent Gibson , Greg Kroah-Hartman , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , linux-acpi@vger.kernel.org, Bartosz Golaszewski , lkft-triage@lists.linaro.org, Linux-Next Mailing List , Stephen Rothwell Subject: Re: [PATCH 0/3] gpiolib: generalize GPIO line names property Message-ID: <20200915131648.GY3956970@smile.fi.intel.com> References: <20200908125813.8809-1-brgl@bgdev.pl> <20200915131228.GX3956970@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200915131228.GX3956970@smile.fi.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2020 at 04:12:28PM +0300, Andy Shevchenko wrote: > On Tue, Sep 15, 2020 at 02:01:56PM +0200, Anders Roxell wrote: > > On Tue, 8 Sep 2020 at 18:40, Bartosz Golaszewski wrote: > > > > > > From: Bartosz Golaszewski > > > > > > I initially sent this as part of the gpio-mockup overhaul but since > > > these patches are indepentent and the work on gpio-mockup may become > > > more complicated - I'm sending these separately. > > > > > > The only change is adding additional property helpers to count strings > > > in array. > > > > > > Bartosz Golaszewski (3): > > > device: property: add helpers to count items in string arrays > > > gpiolib: generalize devprop_gpiochip_set_names() for device properties > > > gpiolib: unexport devprop_gpiochip_set_names() > > Ha-ha, OF unittest is of_node centric. definitely there is no backed device. > > Bart, it seems we are stuck with fwnode interface. Hmm... There is a platform device. So, it means that it fails along these lines: return IS_ENABLED(CONFIG_OF) && dev->of_node ? &dev->of_node->fwnode : dev->fwnode; so, who should set fwnode for of_node? > > [ 6186.379069][ T1] device_property_read_string_array+0x40/0xa0 > > [ 6186.381741][ T1] devprop_gpiochip_set_names.isra.0+0x4c/0x200 > > [ 6186.384394][ T1] gpiochip_add_data_with_key+0x75c/0xf80 > > [ 6186.386876][ T1] unittest_gpio_probe+0xf4/0x1e0 > > > [ 6186.433241][ T1] Unable to handle kernel read from unreadable > > memory at virtual address 0000000000000570 > > [ 6186.437207][ T1] Mem abort info: > > [ 6186.438639][ T1] ESR = 0x96000004 > > [ 6186.440536][ T1] EC = 0x25: DABT (current EL), IL = 32 bits > > [ 6186.442791][ T1] SET = 0, FnV = 0 > > [ 6186.444660][ T1] EA = 0, S1PTW = 0 > > [ 6186.446233][ T1] Data abort info: > > [ 6186.447938][ T1] ISV = 0, ISS = 0x00000004 > > [ 6186.449749][ T1] CM = 0, WnR = 0 > > [ 6186.451222][ T1] [0000000000000570] user address but active_mm is swapper > > [ 6186.454000][ T1] Internal error: Oops: 96000004 [#1] PREEMPT SMP > > [ 6186.456422][ T1] Modules linked in: > > [ 6186.458232][ T1] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G B > > W 5.9.0-rc5-next-20200915-00006-g104c8fe4916b #1 > > [ 6186.462833][ T1] Hardware name: linux,dummy-virt (DT) > > [ 6186.465170][ T1] pstate: 60400005 (nZCv daif +PAN -UAO BTYPE=--) > > [ 6186.467910][ T1] pc : device_property_read_string_array+0x40/0xa0 > > [ 6186.470653][ T1] lr : device_property_read_string_array+0x40/0xa0 > > -- > With Best Regards, > Andy Shevchenko > > -- With Best Regards, Andy Shevchenko