From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [PATCH v2 1/8] clk: mux: Add support for read-only muxes. Date: Tue, 23 Jul 2013 15:22:44 +0400 Message-ID: <51EE6784.2090808@cogentembedded.com> References: <1374536965-3545-1-git-send-email-tomasz.figa@gmail.com> <1374536965-3545-2-git-send-email-tomasz.figa@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1374536965-3545-2-git-send-email-tomasz.figa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Tomasz Figa Cc: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Kukjin Kim , Mark Brown , Mike Turquette , Arnd Bergmann , Olof Johansson , stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Sylwester Nawrocki , =?ISO-8859-1?Q?Heiko_St=FCbner?= , Thomas Abraham List-Id: linux-samsung-soc@vger.kernel.org Hello. On 23-07-2013 3:49, Tomasz Figa wrote: > Some platforms have read-only clock muxes that are preconfigured at > reset and cannot be changed at runtime. This patch extends mux clock > driver to allow handling such read-only muxes by adding new > CLK_MUX_READ_ONLY mux flag. > Signed-off-by: Tomasz Figa [...] > diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h > index 1ec14a7..9487b96 100644 > --- a/include/linux/clk-provider.h > +++ b/include/linux/clk-provider.h > @@ -327,8 +327,10 @@ struct clk_mux { > #define CLK_MUX_INDEX_ONE BIT(0) > #define CLK_MUX_INDEX_BIT BIT(1) > #define CLK_MUX_HIWORD_MASK BIT(2) > +#define CLK_MUX_READ_ONLY BIT(3) /* mux setting cannot be changed */ Please align BIT(3) with the above BIT() invocations. WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: sergei.shtylyov@cogentembedded.com (Sergei Shtylyov) Date: Tue, 23 Jul 2013 15:22:44 +0400 Subject: [PATCH v2 1/8] clk: mux: Add support for read-only muxes. In-Reply-To: <1374536965-3545-2-git-send-email-tomasz.figa@gmail.com> References: <1374536965-3545-1-git-send-email-tomasz.figa@gmail.com> <1374536965-3545-2-git-send-email-tomasz.figa@gmail.com> Message-ID: <51EE6784.2090808@cogentembedded.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hello. On 23-07-2013 3:49, Tomasz Figa wrote: > Some platforms have read-only clock muxes that are preconfigured at > reset and cannot be changed at runtime. This patch extends mux clock > driver to allow handling such read-only muxes by adding new > CLK_MUX_READ_ONLY mux flag. > Signed-off-by: Tomasz Figa [...] > diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h > index 1ec14a7..9487b96 100644 > --- a/include/linux/clk-provider.h > +++ b/include/linux/clk-provider.h > @@ -327,8 +327,10 @@ struct clk_mux { > #define CLK_MUX_INDEX_ONE BIT(0) > #define CLK_MUX_INDEX_BIT BIT(1) > #define CLK_MUX_HIWORD_MASK BIT(2) > +#define CLK_MUX_READ_ONLY BIT(3) /* mux setting cannot be changed */ Please align BIT(3) with the above BIT() invocations. WBR, Sergei