Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1143592imm; Thu, 4 Oct 2018 08:49:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV61Ud9h09Omtr/luIShLy68kj6hk8xgAf7+ydMBsxXOwrXT/yPKdQygPxHUS/cQkWv/gBhlE X-Received: by 2002:aa7:850d:: with SMTP id v13-v6mr7416662pfn.83.1538668191766; Thu, 04 Oct 2018 08:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538668191; cv=none; d=google.com; s=arc-20160816; b=UCzsuZ2Z52+MaX5HNOCG+Wnxep/z2UdNia0OAIyqX2yHkh1Tr8FB0x94Q6MGo7IKeS W9BD1M/hskTrHVG4fW4X/lo5bqtTEYq9Ij4m3DUeKV6XC+ZwkmvZHkwM28Ic618PlcWd lnBGhuF8jRUvpROX6c2froBc1x9T20DwkTPyxcxEN+L7KeUmnXys2X2hz8Dxbb89a3vq L8O6pMzVjf2AW9Aul2xiHyTG3w+XTuooUXBI2Ad2GSG6vt3HKfeM8WXcJk1yzlBlBPN+ eTInOpIJOF5tuSCJxRr/71TCSun1GPtBcvRceOVhEXUmEyEVx4yVmcVolPapv5uX2P/Q QP3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=pxEyAP1FQzBnXc++CA05arJHRcsUYbKwfaHrJl+FtlE=; b=gaQ9LCJoGZM86OWbotPDs1DggFW6HjZ4VtWtQj0yR6zIeKkRojglb5UlwPaW5tCz3v KpK8TLUQtFwuPNnZAb4WDsNT/mI2dNHEhFEeA6gOQni31vJ0oVJhhlLSCTAKpZ07BYPw /KEL26qmbdEMizoBA6wxtU51luhZHOY+kRSOokeBxo+LqrMWIqEfo5yhVdmXkh+MOl1a /adiaSbQiAW4/4LHsYNIkRlVACD+CUXjR5cmL9sbIdVFncqWMWKRYlEX9MlfcUQFRBK5 04Vq3tFriTcIx0FkpExW0CMd+cTgJ8rvg8qLqX/f0AySG0O3p3H9pCE2ZjWnarhCzPf3 uF6A== 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 j24-v6si4729525pff.42.2018.10.04.08.49.35; Thu, 04 Oct 2018 08:49:51 -0700 (PDT) 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 S1728110AbeJDWmw (ORCPT + 99 others); Thu, 4 Oct 2018 18:42:52 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:33880 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727540AbeJDWmw (ORCPT ); Thu, 4 Oct 2018 18:42:52 -0400 Received: by mail-qt1-f194.google.com with SMTP id x23-v6so10420525qtr.1 for ; Thu, 04 Oct 2018 08:49:00 -0700 (PDT) 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=pxEyAP1FQzBnXc++CA05arJHRcsUYbKwfaHrJl+FtlE=; b=G4cmlTu84XxRIh0eTWkSCgluHlvChtoPYaRZW+1aCrHFIh4/ielqH53rAFnrF+WTEz QGWRicoHWvUgtVYGh/1WAJyo3q2zlm/M+DpFWYzQYehJDWTG2rNjDo/Y5D3pfJJq3M9q bR1YLyXHbiqE8dWyh346ZcATwdaFzkA1/hjkUp28rXTpLZ96W5o7FvUnkJ/KdYyaIGKM d16UsqIUKBZMBWxTJAj5/a6GZqsXRKfdazJ1QznweltR6v1V8dlr1b42YmOo5BBtIh9u +V8ANh6xvXUdKcaHDioOtO41FGk9QVRcASfbtk1t4kk3ZjAejxL9iQK34hkpmyMbZBcp Z/gQ== X-Gm-Message-State: ABuFfoi04S1pqmQrdvSgoESJ3XNYH2IkXMpYSlBUPIHgkoIAT19UEpn2 fBJeyoOq5Z/qtP9EGC6g5dj3917Uqds6S2TQp6I= X-Received: by 2002:aed:3f08:: with SMTP id p8-v6mr5819035qtf.185.1538668139993; Thu, 04 Oct 2018 08:48:59 -0700 (PDT) MIME-Version: 1.0 References: <20181001225827.21946-1-leoyang.li@nxp.com> In-Reply-To: From: Arnd Bergmann Date: Thu, 4 Oct 2018 17:48:43 +0200 Message-ID: Subject: Re: [GIT PULL] fixes for soc/fsl drivers for v4.19 take 2 To: Laurentiu Tudor Cc: Leo Li , arm-soc , Shawn Guo , Linux Kernel Mailing List , Linux ARM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 4, 2018 at 11:39 AM Laurentiu Tudor wrote: > > > ---------------------------------------------------------------- > > NXP/FSL SoC driver fixes for v4.19 round 2 > > > > - Fix crash of qman_portal by deferring its probe if qman is not probed > > > > ---------------------------------------------------------------- > > Laurentiu Tudor (2): > > soc: fsl: qbman: add APIs to retrieve the probing status > > soc: fsl: qman_portals: defer probe after qman's probe > > There's a similar fix for bman portals [1]. I was under the impression > that you plan to pick that up too. > > [1] "soc/fsl/bman_portals: defer probe after bman's probe", found here: > https://lore.kernel.org/patchwork/patch/992009/ I've pulled the first two into the fixes branch for now, but it does sound like we need the third patch as well. The new interface seems a bit odd, since it does not pass an instance pointer at all, but instead relies on the idea that there is only one qman/bman instance in the system. While this may be true in all cases, generally our driver interfaces should be based around device objects instead of making assumptions like this. I assume that is part of what led to the bug in the first place. Of course that is nothing that can be changed easily, and the bug needs to be fixed, so I have pulled the fixes for 4.19, but it would be good to see if the interfaces could be restructured to behave more like other subsystems in the future. Arnd