Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1465762imj; Fri, 8 Feb 2019 01:50:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IYkLR1ehx8KieL2+6TLvUlMuGRoSUQPS1b3zSQiUZAsRUJFVvkN3bTbP3AnB4x9OAwQNH8H X-Received: by 2002:a17:902:778d:: with SMTP id o13mr21600359pll.234.1549619449861; Fri, 08 Feb 2019 01:50:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549619449; cv=none; d=google.com; s=arc-20160816; b=wvnrEfvRZlN8TqzSojMKvtqRT7ukAyUcjF/Uo8v+JtmcZlrgLVzFBubXnJshZmNnr2 TscURMXEAj+tvM/F+Ex9AdutBRrKzCVNEjdTxo2sG6nNOyDEu/3TuPV6FKJY9DFnelm6 APcjlhrHPPxuK3KVLA37aRloYBU6Zn5Ci23ciLy2sUdgQCa3M9tcZtnn+e/V5cxwrW+p DsTtad6j3GW0RqDuhXSshCatqLCDILUkPIyzAfnIYBmzTEDf9Qo3V80duV5GKI0NhY4E gthj2o5uXjvmZ50Rl2oyPAJFCrXk+EXYxRhYXmhLH9zbHLwHPqJKjm1ZercoTFBL0Bib ++hQ== 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:from:references:cc:to:subject; bh=GJ9a6VWAJaKodDjueaHu0SmcF4A5Z9W1KMmx+YJ8OIg=; b=Bz0n8RascYPEBlwSxKllD4bO+LJeL8SCZ4KgTA91uXQjSU4lZPxYdFtRoHFIzSHnM6 U0c0Ev8PzyeMPM6LizL7HWHciGDR1iiKnUq19j//wrKgPPSLgPeY+8aR2DTfQ3LLAY7J 0eKr6KKNMhKycA3AZD/9IYwy64PODBiK73PKB7qSKArJdUOANF1pbafNPMBQFvWZhNVv 4o1DBWdbx57lbFgxw39QfnLhflpRWJbatNJBfN+G4hqUD9a2lGFJxUjR+vHAhZT5yMfn 08OfBkvnLcQcrZfSaMIPVgYKBA33KFE27pXm/AVxFTgJPYEvrgd/g1kdoxRoXjv4MGPl AHlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b74si1384193pfe.47.2019.02.08.01.50.33; Fri, 08 Feb 2019 01:50:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727174AbfBHJtZ (ORCPT + 99 others); Fri, 8 Feb 2019 04:49:25 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:32890 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726081AbfBHJtY (ORCPT ); Fri, 8 Feb 2019 04:49:24 -0500 Received: from lhreml703-cah.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id 907D3A851F2BD9D4D5A4; Fri, 8 Feb 2019 09:49:23 +0000 (GMT) Received: from [127.0.0.1] (10.202.226.46) by lhreml703-cah.china.huawei.com (10.201.108.44) with Microsoft SMTP Server id 14.3.408.0; Fri, 8 Feb 2019 09:49:16 +0000 Subject: Re: [PATCH] HISI LPC: Don't fail probe for unrecognised child devices To: John Garry , CC: , , , References: <1546516622-46343-1-git-send-email-john.garry@huawei.com> From: Wei Xu Message-ID: <249f851b-e28c-c5df-7706-f7212162bae7@hisilicon.com> Date: Fri, 8 Feb 2019 09:49:16 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1546516622-46343-1-git-send-email-john.garry@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.226.46] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, On 1/3/2019 11:57 AM, John Garry wrote: > Currently for ACPI-based FW we fail the probe for an unrecognised child > HID. > > However, there is FW in the field with LPC child devices having fake HIDs, > namely "IPI0002", which was an IPMI device invented to support the > initial out-of-tree LPC host driver, different from the final mainline > version. > > To provide compatibility support for these dodgy FWs, just discard the > unrecognised HIDs instead of failing the probe altogether. > > Tested-by: Zengruan Ye > Signed-off-by: John Garry Updated the subject as "bus: hisi_lpc: xxx" to follow the style and applied to the hisilicon tree. Thanks! Best Regards, Wei > > diff --git a/drivers/bus/hisi_lpc.c b/drivers/bus/hisi_lpc.c > index d5f8545..19d7b6f 100644 > --- a/drivers/bus/hisi_lpc.c > +++ b/drivers/bus/hisi_lpc.c > @@ -522,10 +522,9 @@ static int hisi_lpc_acpi_probe(struct device *hostdev) > > if (!found) { > dev_warn(hostdev, > - "could not find cell for child device (%s)\n", > + "could not find cell for child device (%s), discarding\n", > hid); > - ret = -ENODEV; > - goto fail; > + continue; > } > > pdev = platform_device_alloc(cell->name, PLATFORM_DEVID_AUTO); >