Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751403AbeAPCRc (ORCPT + 1 other); Mon, 15 Jan 2018 21:17:32 -0500 Received: from mail-ua0-f176.google.com ([209.85.217.176]:44148 "EHLO mail-ua0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812AbeAPCR3 (ORCPT ); Mon, 15 Jan 2018 21:17:29 -0500 X-Google-Smtp-Source: ACJfBov83DFTeGXmScCJ81NlLxrqbHIFaKQ50hQ+6YikRPmHgvkjy6p4/ClTGCIDKCOTs26nBG2Dbg== MIME-Version: 1.0 In-Reply-To: <20180115171614.14474-40-thierry.escande@collabora.com> References: <20180115171614.14474-1-thierry.escande@collabora.com> <20180115171614.14474-40-thierry.escande@collabora.com> From: Tomasz Figa Date: Tue, 16 Jan 2018 11:10:55 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 39/40] drm/rockchip: analogix_dp: Fix invalid implementation of unbind To: Thierry Escande Cc: Archit Taneja , Inki Dae , Thierry Reding , Sandy Huang , Sean Paul , David Airlie , Haixia Shi , =?UTF-8?Q?=C3=98rjan_Eide?= , zain wang , Yakir Yang , Lin Huang , Douglas Anderson , Mark Yao , linux-kernel@vger.kernel.org, "open list:ARM/Rockchip SoC..." , dri-devel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hi Thierry, On Tue, Jan 16, 2018 at 2:16 AM, Thierry Escande wrote: > From: Tomasz Figa > > Current implementation of unbind dereferences the drvdata pointer > assuming that it's its own data, however the ownership belongs to the > analogix code, which means that the pointer is dereferenced with wrong > type. Fix this by using the recently added platform data .cleanup() > callback to do Rockchip-specific things at unbind. First of all, thanks a lot for taking care of these patches. Much appreciated. One thing to note, though, is that the four patches (31, 32, 33 and 39 in this series), which we initially made for fixing the problems related, were later reverted and replaced by a cleaner solution. Please take a look at this series on our gerrit: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/442390/ https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/442392/ https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/442391/ Perhaps we could skip this intermediate solution and just go with the above 3 patches? Best regards, Tomasz