Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp645666pxb; Thu, 2 Sep 2021 11:47:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+x++IDxQAV3tkzOj4iNMDmS3uajzxBZ1zlzsURjG3mJc4lky5CX/PfNSr/HGhNOviVD74 X-Received: by 2002:a5d:9355:: with SMTP id i21mr3991900ioo.12.1630608425768; Thu, 02 Sep 2021 11:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630608425; cv=none; d=google.com; s=arc-20160816; b=Hi4SDLMSgz+mIfj/1RjbNwHfySvuVaB9HoW38aiKfko6qBKCUDiJtaLWMoGrQ2S3VQ TNmRDiTSeTXovYjThjtJ6ro4diJtwft0aWNz8blzbtsA92lRlhqkT8bJpVc/hKZr0I8L X/IlPOMWymul3ySODwXORlXLmltHp+1WnzGsg7FIbdK5EKuQ2gDbfKEAPnlcQTLEYuRx pyhLjLEqXevEoX25t7WgGJXnOj0D8tQYesm0Sxci5OsgbWePGJHzKNxHXLzIFWYcEA7x hulvVDvt2RRac6p3LZVFXc7zGKl56PxUjkcPJ09AHkGqA4CJm3HU5Gg//hEpwyldlZn/ VBFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qwZd3ZgW1miLdOJZn1d5Cu4tzpdhZoJsS5ineoU+BfA=; b=u/nEkaznbIiMenTnVZqUeAWstfJa5bWtViGpmxYxdeK8tAILyENLyMHl7d+o8c7mf5 5hyENZPIeO0LGYyxgIpWT5npwSi3Dyl3SuCpYfd//MGLiDfpyQdeMlBLOFADITpOa51f lGQmS400aIjxl1M49udzahCRbyuj6SuAlurWsvfBr4mBNpM49r/DH28fVM8eYh1jvIUD 22d9y2RSoW279hgb09Wt17XcINrUj1r6RQk6bwwsBfbiOCk9pYLoqa0G128mwYtBEfGK pXd9u6SRyEXjUhco4pGdZKvNblK5t0SVMptAR0yhgJqk3ogjvVMuf7bHqDZ4cGHHanvT eXjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HetNYezZ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si3111733iod.38.2021.09.02.11.46.53; Thu, 02 Sep 2021 11:47:05 -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; dkim=pass header.i=@linaro.org header.s=google header.b=HetNYezZ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347103AbhIBSqm (ORCPT + 99 others); Thu, 2 Sep 2021 14:46:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347098AbhIBSql (ORCPT ); Thu, 2 Sep 2021 14:46:41 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 102C3C061575 for ; Thu, 2 Sep 2021 11:45:42 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id d16so5379799ljq.4 for ; Thu, 02 Sep 2021 11:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qwZd3ZgW1miLdOJZn1d5Cu4tzpdhZoJsS5ineoU+BfA=; b=HetNYezZiq683Y3J4WCiM5Hg96SBFY3UyHOYzuOuSeQvMR8LCzkNeJh0vyJBJYQ/5n NoOyi5QxmkrtKpk5eIu3xyfZdADSsAf15jLh2zy77AjUnBoTHfGtRXSA5dRzEgXuRLqa PR5GWN6MdMa2lxy8oC47IT1jhGkxS7fafnjRGLwMmRnQ39441osMkPcaZY+o9ZHofiW1 tJ5Qb98RkFMBtJugGA3QmbvfxxpGJJZZ6mG4Q3a6kr70534DNbj1q2nlRQFjUTkhaIbi 80KdJTTJ0MZ2tzRo0Prhqem4/yMOCQ2SaIX327Td6uBcTIGDnAOcGdijejwMYJ5YM5kC HnUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qwZd3ZgW1miLdOJZn1d5Cu4tzpdhZoJsS5ineoU+BfA=; b=GLRG1/j/fAlrBPRPFGFDCik3pq6RJBapooIZv64HyyBtI102uXFGSQe5Bp8Vt0TcS1 jlpJzIyffEnjnkA5AxHJue+xD4Ue1sUN03OYHwmKcK/FJ+ZH9NKxv0owFCLnRfVJqaru VpIw5HJYu2aqgfJhgtcFU8PGHp4rx1bd8fnnyBKUi5HesL3Ut2Db8Xb+C3xsf2x+6NCt +6//38xjqji+G3uxEJQwyi8exp58jlQEWP38vyVC2kzONgp9hLatAL2JIp40j+kgdrif 0tL6M/PUtbWhQ1mJOV76uUD9aoUHgFtl7K5pQt13MGMc1FsQ4Dx8QWX2XcuCtm0GclQX zsQQ== X-Gm-Message-State: AOAM533RmdpKoWo05ImQWKTNg/IydvciJ9Ny/R80nObDEl6lMrnxwotJ DnVRLfB94M0dkfa2HzLmEhCfjzcsHBVyM2muywEcgA== X-Received: by 2002:a2e:b5ae:: with SMTP id f14mr3862704ljn.170.1630608340407; Thu, 02 Sep 2021 11:45:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Stultz Date: Thu, 2 Sep 2021 11:45:28 -0700 Message-ID: Subject: Re: [PATCH v3 2/4] misc: hisi_hikey_usb: change the DT schema To: Mauro Carvalho Chehab Cc: Rob Herring , linuxarm@huawei.com, mauro.chehab@huawei.com, Arnd Bergmann , Greg Kroah-Hartman , lkml Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 2, 2021 at 4:28 AM Mauro Carvalho Chehab wrote: > > As there's no upstream DT bindings for this driver, let's > update its DT schema, while it is not too late. > > While here, add error messages, in order to help discovering > problems during probing time. > > Signed-off-by: Mauro Carvalho Chehab I gave this series a spin on the hikey960 booting in a number of different usb configurations (usb-c gadget, usb-c host, usb-a host) as well as switching between them and didn't see any issue or new regressions. Admittedly not super rigorous but the usb issues we have seen in the past usually took a number of days to trip over, so it's probably as good as I can say now. Tested-by: John Stultz I've also added it to my mainline tracking tree and will let you know if I run into anything over the next few days. But one nit on the patch below: > --- > drivers/misc/hisi_hikey_usb.c | 81 +++++++++++++++-------------------- > 1 file changed, 35 insertions(+), 46 deletions(-) > > diff --git a/drivers/misc/hisi_hikey_usb.c b/drivers/misc/hisi_hikey_usb.c > index 989d7d129469..8be7d28cdd71 100644 > --- a/drivers/misc/hisi_hikey_usb.c > +++ b/drivers/misc/hisi_hikey_usb.c > @@ -248,8 +237,8 @@ static int hisi_hikey_usb_remove(struct platform_device *pdev) > } > > static const struct of_device_id id_table_hisi_hikey_usb[] = { > - { .compatible = "hisilicon,gpio_hubv1" }, > - { .compatible = "hisilicon,kirin970_hikey_usbhub" }, > + { .compatible = "hisilicon,hikey960-usbhub" }, > + { .compatible = "hisilicon,hikey970-usbhub" }, > {} So with the gpio/regulator change on the hikey960 side, there isn't any more 970 specific logic, so should we unify the compat string? Also, I personally would rather use something that wasn't so "branded" to a specific board should a new device use the same approach (which is why we switched to the gpio_hubv1 naming instead of "hikey960_usb" that we had earlier). This is definitely bikeshed territory, and I'm not picky, but "hisilicon,usbhub_notifierv1" maybe? thanks -john