All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ramon Fried <rfried.dev@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/2] MIPS: add empty arch/clk.h
Date: Mon, 17 Jun 2019 22:24:55 +0300	[thread overview]
Message-ID: <CAGi-RU+n_hWcW7kTdzEirXDR=5_dpmHeK0AC_6EpLokdrTC4-A@mail.gmail.com> (raw)
In-Reply-To: <CACUy__XAB=S3_HPEe8OZ5RpwWE48J6K3Qqc5SKYBRmjyRkdyDw@mail.gmail.com>

On Mon, Jun 17, 2019 at 2:42 PM Daniel Schwierzeck <
daniel.schwierzeck@gmail.com> wrote:

> Am Mo., 10. Juni 2019 um 20:05 Uhr schrieb Ramon Fried <
> rfried.dev at gmail.com>:
> >
> > The file is needed for compilation of various
> > drivers (IE. macb).
> > Add empty implementation so compilation succeeds.
> >
> > Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
> > ---
> > v2: Moved the new file to the correct location.
> >
> >  arch/mips/include/asm/arch/clk.h | 11 +++++++++++
> >  1 file changed, 11 insertions(+)
> >  create mode 100644 arch/mips/include/asm/arch/clk.h
> >
> > diff --git a/arch/mips/include/asm/arch/clk.h
> b/arch/mips/include/asm/arch/clk.h
> > new file mode 100644
> > index 0000000000..c01e0973cd
> > --- /dev/null
> > +++ b/arch/mips/include/asm/arch/clk.h
> > @@ -0,0 +1,11 @@
> > +/* SPDX-License-Identifier: GPL-2.0+ */
> > +/*
> > + * Copyright (c) Ramon Fried <rfried.dev@gmail.com>
> > + */
> > +
> > +#ifndef __ASM_MIPS_ARCH_CLK_H
> > +#define __ASM_MIPS_ARCH_CLK_H
> > +
> > +/* Note: This is a placeholder header for driver compilation. */
> > +
> > +#endif
> > --
> > 2.21.0
> >
>
> the macb driver pulls only some SoC specific enums or functions. This
> shouldn't be required anymore with driver model or clock framework.
> Especially if this driver is shared between different SoCs and
> architectures. Maybe you should rather fix the macb driver to not
> force asm/arch/clk.h e.g. by wrapping it with #ifndef CONFIG_CLK.
>
I totally agree with you, I created this patch as I thought this is what I
was expected to do:
I followed what RISCV did:
/arch/riscv/include/asm/arch-generic/clk.h
Thanks,
Ramon.

>
> --
> - Daniel
>

      reply	other threads:[~2019-06-17 19:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-10 18:05 [U-Boot] [PATCH v2 1/2] MIPS: add empty arch/clk.h Ramon Fried
2019-06-10 18:05 ` [U-Boot] [PATCH v2 2/2] MIPS: add dma-mapping.h implementation Ramon Fried
2019-06-17 12:01   ` Daniel Schwierzeck
2019-06-10 18:05 ` [U-Boot] [PATCH] MIPS: add compile time definition of L2 cache size Ramon Fried
2019-10-18 11:03   ` Daniel Schwierzeck
2019-06-17 11:42 ` [U-Boot] [PATCH v2 1/2] MIPS: add empty arch/clk.h Daniel Schwierzeck
2019-06-17 19:24   ` Ramon Fried [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGi-RU+n_hWcW7kTdzEirXDR=5_dpmHeK0AC_6EpLokdrTC4-A@mail.gmail.com' \
    --to=rfried.dev@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.