Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5983557ybp; Tue, 15 Oct 2019 07:57:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7PekIuHdoasopxOtr1BErL8ZK9LvEoCpk8rU7bZP9CmjfNwxfvG6FGHlnooUEeO1itKhE X-Received: by 2002:a17:907:3301:: with SMTP id ym1mr35097064ejb.106.1571151425324; Tue, 15 Oct 2019 07:57:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571151425; cv=none; d=google.com; s=arc-20160816; b=aUJmrQr8xwDe84tp6FJFs1XeZihg36nu2GTwis+ZDEP0KkCLeUOMvwPC6qsCSCUGNs q/OtBgtVDYfVUis69MJNZv1AFE7YYsMqsCLMoIvDDclbDIbQS/zuAis4gCc6SbZXr0xj 8QzNdBD73DqNohmKGqZfVEYLfjZi/OHzZcyqiDrUPIR1F1LhCPcLukkS7yWVMuMo0POX uczdO9E9zGOs8YqGD0OFlwPiSrPTeu7IuoVpb8orWNSy/2oYcu5HVerRcQh9eqeuQOXT qjNegO0JKt6xWUnu3/8CDX/bB0NT8ten/w1owRsTUulCE8KC5Z+JhyIF5GE0ftrOxbao zhEw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=lR+fhPNWor2rYZMGYZDZtF6Wt6PhWh078oo5smcPWbw=; b=t8T88qnvLWdK9eIvmMnNMsZb1M6YPjdyTye4tLLtRpC4rKU4h03bapxwfIsIiACOCf oc6adTuwhZqxXL3E70csM/qZ5TZ5BpXsP01hls5pNQY2wC75nclo3bnFaLic0ecwrDTA cYu/Efz8G5ejoOw/oY3vWPaOlcSdVcPHhOStYi76UvfmSDjO1WocnQwUHbSkcWtTF5g0 8R9UtfAPelDwe4TcgY3EOZQ9RHl95+o8vCGItWA5V/DHvYRVIafigV7OuErh8aSGaulv zyyNLIG29Ym/meqgJLvGYDnNiPUzKAIvrnewWCvA1qoXfWA6Z3vpOVCZhtFHv9nSANA4 +DrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MJZ9w+VR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t26si15229254edd.184.2019.10.15.07.56.41; Tue, 15 Oct 2019 07:57:05 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MJZ9w+VR; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733071AbfJOOwv (ORCPT + 99 others); Tue, 15 Oct 2019 10:52:51 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:43367 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732738AbfJOOwv (ORCPT ); Tue, 15 Oct 2019 10:52:51 -0400 Received: by mail-io1-f66.google.com with SMTP id v2so46493344iob.10; Tue, 15 Oct 2019 07:52:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=lR+fhPNWor2rYZMGYZDZtF6Wt6PhWh078oo5smcPWbw=; b=MJZ9w+VR4SFMaPZYIna1r3mj3e36YkhvZ1IdOtv8qjqDmJhTXTlqITpoqccq7AwgWW NsTWW8ftDTCbwVR5fHTrtYCrjmjd2CtLBp8y1+RicahyIuZGeoONq8nwLSpJ66hZYGNj ZbpMNivy5IHSzWONETf1DHvVJO4ZCDG0M10fVpGdt3lyIw7FTGFrn7qxXZ8BgkbFdnOO NaAaxE2AOvqlMagIN/pFYvcYwdv7JpKn9t/GwWin5j0yTUtMtx/KY0bUuSfF4Hy6aNnO tZVdFU+m2NgFXiQK287gPdv3t4OF4Z9QLOb3BXRVnvHdS1O7mmJsWH0WL4yjRHtaK9sY r5wQ== 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:content-transfer-encoding; bh=lR+fhPNWor2rYZMGYZDZtF6Wt6PhWh078oo5smcPWbw=; b=euTFRlWMsfAd3ilpLFm2yYX9L+MCRXVKL+Xao/4huEa/cjkDPaXX2rS2Nyrry/xPbI 26Bx82PaVex5MoMjEaKzLrX0f8N48R5E7qDSQ29Ocp5YHBztXTzaITd4U3qdIYf6OZeA cJ7hSzIWlV8TQHUW8+zYkN3jPoICkrMdyOtcdmsxffR1i4xU74JY74AjkRhg47K7nIM+ uByHkiOq6LbWnYq6qLa0fIkW9wDtNKYEsefUPGtqpMNe8lGorKKQPeeKWebWAiiFw9aK airHL5WT22BXbndjLLEJ58u32b4pMSeiTbEXyTeaSLQd4fv5sI/m1GQmbNrvnJPJMP6x UbRA== X-Gm-Message-State: APjAAAWUq0KyPUT+ZZy5g4GVPS3AqI//3alMLdEXm6leq619ImxjAwWP l4SgjAtuTCnYmxohEqzueVD6cGws74sI29UQMpOdDQ== X-Received: by 2002:a92:6701:: with SMTP id b1mr912513ilc.181.1571151170241; Tue, 15 Oct 2019 07:52:50 -0700 (PDT) MIME-Version: 1.0 References: <20191010202802.1132272-1-arnd@arndb.de> <20191010203043.1241612-1-arnd@arndb.de> In-Reply-To: <20191010203043.1241612-1-arnd@arndb.de> From: Tomasz Figa Date: Tue, 15 Oct 2019 23:52:39 +0900 Message-ID: Subject: Re: [PATCH 01/36] ARM: samsung: make S3C24XX_MISCCR access indirect To: Arnd Bergmann Cc: Kukjin Kim , Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , "moderated list:SAMSUNG SOC CLOCK DRIVERS" , linux-arm-kernel , "linus.walleij@linaro.org" , Michael Turquette , Stephen Boyd , linux-kernel , "open list:COMMON CLK FRAMEWORK" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, 2019=E5=B9=B410=E6=9C=8811=E6=97=A5(=E9=87=91) 5:30 Arnd Bergmann : > > The clk driver uses both a function call into an exported > platform file and a direct register access to a hardcoded > virtual address for accessing the MISCCR register, both > become are a problem for a multiplatform kernel because > of the header file dependency. > > Make this an indirect function call through platform data > instead. > > Signed-off-by: Arnd Bergmann > --- > arch/arm/mach-s3c24xx/common.c | 3 +++ > drivers/clk/samsung/clk-s3c2410-dclk.c | 10 ++++------ > 2 files changed, 7 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/mach-s3c24xx/common.c b/arch/arm/mach-s3c24xx/commo= n.c > index 3dc029c2d2cb..ebf6bde67816 100644 > --- a/arch/arm/mach-s3c24xx/common.c > +++ b/arch/arm/mach-s3c24xx/common.c > @@ -667,5 +667,8 @@ struct platform_device s3c2410_device_dclk =3D { > .id =3D 0, > .num_resources =3D ARRAY_SIZE(s3c2410_dclk_resource), > .resource =3D s3c2410_dclk_resource, > + .dev =3D { > + .platform_data =3D s3c2410_modify_misccr, Thanks for the patch! Just one minor nit: It doesn't look very nice to pass a function pointer directly as platform data. Could we have a struct defined instead - with a kerneldoc comment describing the function pointer field? Best regards, Tomasz