[PATCH v8 3/3] rust: kunit: allow to know if we are in a test

2025-03-07 Thread David Gow
and then the current thread's running KUnit test. Add a safe wrapper function around this to know whether or not we are in a KUnit test and examples showing how to mock a function and a module. Signed-off-by: José Expósito Co-developed-by: Miguel Ojeda Signed-off-by: Miguel Ojeda Co-deve

Re: [PATCH v6 3/3] rust: kunit: allow to know if we are in a test

2025-02-18 Thread David Gow
ion kernels, so checking at > > > > runtime > > > > that `current->kunit_test != NULL` is required. > > > > > > > > Forturately, KUnit provides an optimised check in > > > > `kunit_get_current_test()`, which checks CONFIG_KUNIT, a global stati

Re: [PATCH v6 3/3] rust: kunit: allow to know if we are in a test

2025-02-15 Thread Tamir Duberstein
imised check in > > > `kunit_get_current_test()`, which checks CONFIG_KUNIT, a global static > > > key, and then the current thread's running KUnit test. > > > > > > Add a safe wrapper function around this to know whether or not we are in > > > a K

[PATCH v7 3/3] rust: kunit: allow to know if we are in a test

2025-02-15 Thread David Gow
and then the current thread's running KUnit test. Add a safe wrapper function around this to know whether or not we are in a KUnit test and examples showing how to mock a function and a module. Signed-off-by: José Expósito Co-developed-by: Miguel Ojeda Signed-off-by: Miguel Ojeda Co-deve

Re: [PATCH v6 3/3] rust: kunit: allow to know if we are in a test

2025-02-15 Thread David Gow
KUnit in production kernels, so checking at runtime > > that `current->kunit_test != NULL` is required. > > > > Forturately, KUnit provides an optimised check in > > `kunit_get_current_test()`, which checks CONFIG_KUNIT, a global static > > key, and then the current thre

Re: [PATCH v6 3/3] rust: kunit: allow to know if we are in a test

2025-02-14 Thread Tamir Duberstein
urately, KUnit provides an optimised check in > `kunit_get_current_test()`, which checks CONFIG_KUNIT, a global static > key, and then the current thread's running KUnit test. > > Add a safe wrapper function around this to know whether or not we are in > a KUnit test and examples sho

[PATCH v6 3/3] rust: kunit: allow to know if we are in a test

2025-02-13 Thread David Gow
and then the current thread's running KUnit test. Add a safe wrapper function around this to know whether or not we are in a KUnit test and examples showing how to mock a function and a module. Signed-off-by: José Expósito Co-developed-by: David Gow Signed-off-by: David Gow Co-developed-by

Re: [PATCH v5 3/3] rust: kunit: allow to know if we are in a test

2025-01-03 Thread Miguel Ojeda
On Fri, Dec 13, 2024 at 9:10 AM David Gow wrote: > > +/// In some cases, you need to call test-only code from outside the test > case, for example, to > +/// create a function mock. This function can be invoked to know whether we > are currently running a > +/// KUnit

[PATCH v5 3/3] rust: kunit: allow to know if we are in a test

2024-12-13 Thread David Gow
and then the current thread's running KUnit test. Add a safe wrapper function around this to know whether or not we are in a KUnit test and examples showing how to mock a function and a module. Signed-off-by: José Expósito Co-developed-by: David Gow Signed-off-by: David Gow --- Changes

Re: [PATCH v4 3/3] rust: kunit: allow to know if we are in a test

2024-11-01 Thread Boqun Feng
On Fri, Nov 01, 2024 at 02:45:02PM +0800, David Gow wrote: [...] > +/// ``` > +/// // Import our mock naming it as the real module. > +/// #[cfg(CONFIG_KUNIT)] > +/// use bindings_mock_example as bindings; > +/// > +/// // This module mocks `bindings`. > +/// mod bindings_mock_example { > +///

[PATCH v4 3/3] rust: kunit: allow to know if we are in a test

2024-10-31 Thread David Gow
and then the current thread's running KUnit test. Add a safe wrapper function around this to know whether or not we are in a KUnit test and examples showing how to mock a function and a module. Signed-off-by: José Expósito Co-developed-by: David Gow Signed-off-by: David Gow --- Changes

[PATCH v3 3/3] rust: kunit: allow to know if we are in a test

2024-10-29 Thread David Gow
and then the current thread's running KUnit test. Add a safe wrapper function around this to know whether or not we are in a KUnit test and examples showing how to mock a function and a module. Signed-off-by: José Expósito Co-developed-by: David Gow Signed-off-by: David Gow --- No changes

[PATCH v2 3/3] rust: kunit: allow to know if we are in a test

2024-10-29 Thread David Gow
and then the current thread's running KUnit test. Add a safe wrapper function around this to know whether or not we are in a KUnit test and examples showing how to mock a function and a module. Signed-off-by: José Expósito Co-developed-by: David Gow Signed-off-by: David Gow --- Changes

[PATCH v5 03/14] drm/panfrost: don't use pfdevfreq.busy_count to know if hw is idle

2020-07-10 Thread Clément Péron
This use devfreq variable that will be lock with spinlock in future patches. We should either introduce a function to access this one but as devfreq is optional let's just remove it. Reviewed-by: Steven Price Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron --- drivers/gpu/drm/panfr

[PATCH v4 03/14] drm/panfrost: don't use pfdevfreq.busy_count to know if hw is idle

2020-07-10 Thread Clément Péron
This use devfreq variable that will be lock with spinlock in future patches. We should either introduce a function to access this one but as devfreq is optional let's just remove it. Reviewed-by: Steven Price Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron --- drivers/gpu/drm/panfr

[PATCH v3 03/14] drm/panfrost: don't use pfdevfreq.busy_count to know if hw is idle

2020-07-09 Thread Clément Péron
This use devfreq variable that will be lock with spinlock in future patches. We should either introduce a function to access this one but as devfreq is optional let's just remove it. Reviewed-by: Steven Price Reviewed-by: Alyssa Rosenzweig Signed-off-by: Clément Péron --- drivers/gpu/drm/panfr

[PATCH v2 03/14] drm/panfrost: don't use pfdevfreq.busy_count to know if hw is idle

2020-07-04 Thread Clément Péron
This use devfreq variable that will be lock with spinlock in future patches. We should either introduce a function to access this one but as devfreq is optional let's just remove it. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_job.c | 4 1 f

Re: [PATCH 03/15] drm/panfrost: don't use pfdevfreq.busy_count to know if hw is idle

2020-05-28 Thread Steven Price
On 10/05/2020 17:55, Clément Péron wrote: This use devfreq variable that will be lock with spinlock in future patches. We should either introduce a function to access this one but as devfreq is optional let's just remove it. Signed-off-by: Clément Péron As far as I can tell this should be saf

[PATCH 03/15] drm/panfrost: don't use pfdevfreq.busy_count to know if hw is idle

2020-05-10 Thread Clément Péron
This use devfreq variable that will be lock with spinlock in future patches. We should either introduce a function to access this one but as devfreq is optional let's just remove it. Signed-off-by: Clément Péron --- drivers/gpu/drm/panfrost/panfrost_job.c | 4 1 file changed, 4 deletions(-)

[PATCH 5.4 088/168] iio: st_sensors: rely on odr mask to know if odr can be set

2020-04-28 Thread Greg Kroah-Hartman
From: Lary Gibaud commit e450e07c14abae563ad13b064cbce9fdccc6bc8d upstream. Indeed, relying on addr being not 0 cannot work because some device have their register to set odr at address 0. As a matter of fact, if the odr can be set, then there is a mask. Sensors with ODR register at address 0 a

[PATCH 4.19 078/131] iio: st_sensors: rely on odr mask to know if odr can be set

2020-04-28 Thread Greg Kroah-Hartman
From: Lary Gibaud commit e450e07c14abae563ad13b064cbce9fdccc6bc8d upstream. Indeed, relying on addr being not 0 cannot work because some device have their register to set odr at address 0. As a matter of fact, if the odr can be set, then there is a mask. Sensors with ODR register at address 0 a

[PATCH 5.6 083/167] iio: st_sensors: rely on odr mask to know if odr can be set

2020-04-28 Thread Greg Kroah-Hartman
From: Lary Gibaud commit e450e07c14abae563ad13b064cbce9fdccc6bc8d upstream. Indeed, relying on addr being not 0 cannot work because some device have their register to set odr at address 0. As a matter of fact, if the odr can be set, then there is a mask. Sensors with ODR register at address 0 a

To know

2019-08-29 Thread Abdelkader Alsamman
Greetings, I am Mr.Abdelkader Alsamman from Syria,It's possible for a foreigner to invest in education in your country?let me know the feasibility studies as I want to relocate my investment to your country and I need a local partner because I want to relocate my family out from Syria due to t

[PATCH v3 03/31] docs/zh_CN: change Chinese index to know process dir

2019-03-07 Thread Alex Shi
And add some description translation in index file. Signed-off-by: Alex Shi Cc: Harry Wei Cc: Jonathan Corbet Cc: Li Zefan Cc: Shawn Guo Cc: Fengguang Wu Cc: Coly Li --- Documentation/translations/zh_CN/index.rst | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) dif

[PATCH v2 03/27] docs/zh_CN: change Chinese index to know process dir

2019-03-04 Thread Alex Shi
And add some description translation in index file. Signed-off-by: Alex Shi Cc: Harry Wei Cc: Jonathan Corbet Cc: Li Zefan Cc: Shawn Guo Cc: Fengguang Wu Cc: Coly Li --- Documentation/translations/zh_CN/index.rst | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) dif

[PATCH 03/20] docs/zh_CN: change Chinese index to know process dir

2019-03-03 Thread Alex Shi
And add some description translation in index file. Signed-off-by: Alex Shi Cc: Harry Wei Cc: Jonathan Corbet Cc: Li Zefan Cc: Shawn Guo Cc: Fengguang Wu Cc: Coly Li --- Documentation/translations/zh_CN/index.rst | 17 + 1 file changed, 13 insertions(+), 4 deletions(-) dif

Re: How to know if there is a pending interrupt when they are masked?

2019-02-14 Thread Daniel Lezcano
;> calling the shutdown function after costly operations. It could be >>> interesting to check if there is a pending interrupt before initiating >>> the power down sequence. >>> >>> Is there a way to know if there is a pending interrupt on the current >>> CPU

Re: How to know if there is a pending interrupt when they are masked?

2019-02-14 Thread Daniel Lezcano
ere is a pending interrupt before initiating >> the power down sequence. >> >> Is there a way to know if there is a pending interrupt on the current >> CPU when the local interrupt are disabled? Something like, >> local_irq_pending() function ? > > We have nothing l

Re: How to know if there is a pending interrupt when they are masked?

2019-02-14 Thread Marc Zyngier
nding interrupt before initiating >> the power down sequence. >> >> Is there a way to know if there is a pending interrupt on the current >> CPU when the local interrupt are disabled? Something like, >> local_irq_pending() function ? > > We have nothing like that today,

Re: How to know if there is a pending interrupt when they are masked?

2019-02-14 Thread Thomas Gleixner
nding interrupt this one > will make the power down function to abort, thus exiting right after > calling the shutdown function after costly operations. It could be > interesting to check if there is a pending interrupt before initiating > the power down sequence. > > Is there a

How to know if there is a pending interrupt when they are masked?

2019-02-14 Thread Daniel Lezcano
abort, thus exiting right after calling the shutdown function after costly operations. It could be interesting to check if there is a pending interrupt before initiating the power down sequence. Is there a way to know if there is a pending interrupt on the current CPU when the local interrupt are

I want to know your opinion in doing this project.

2018-06-05 Thread sunie wendy
My Dear, Good day to you I got my contact via the internet database of your country, My name is Mr. Rungsun Klinkaeo, from Thailand and lawyer, to Late Engineer Vladimir D. Soloviev, a citizen of your country who was lived in Petrograd, Russia. I am writing to present you as a relative to a La

Re: [GIT PULL de-alpha] Make core code not need to know about Alpha for v4.15

2017-10-25 Thread Paul E. McKenney
On Wed, Oct 25, 2017 at 11:04:43AM +0200, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > On Wed, Oct 25, 2017 at 10:45:48AM +0200, Ingo Molnar wrote: > > > > > > * Paul E. McKenney wrote: > > > > > > > Hello, Ingo, > > > > > > > > This series is a first step towards making the core k

Re: [GIT PULL de-alpha] Make core code not need to know about Alpha for v4.15

2017-10-25 Thread Ingo Molnar
* Paul E. McKenney wrote: > On Wed, Oct 25, 2017 at 10:45:48AM +0200, Ingo Molnar wrote: > > > > * Paul E. McKenney wrote: > > > > > Hello, Ingo, > > > > > > This series is a first step towards making the core kernel no longer > > > need to consider DEC Alpha as a special case. This is acco

Re: [GIT PULL de-alpha] Make core code not need to know about Alpha for v4.15

2017-10-25 Thread Paul E. McKenney
On Wed, Oct 25, 2017 at 10:45:48AM +0200, Ingo Molnar wrote: > > * Paul E. McKenney wrote: > > > Hello, Ingo, > > > > This series is a first step towards making the core kernel no longer > > need to consider DEC Alpha as a special case. This is accomplished > > by two sets of patches, followed

Re: [GIT PULL de-alpha] Make core code not need to know about Alpha for v4.15

2017-10-25 Thread Ingo Molnar
* Paul E. McKenney wrote: > Hello, Ingo, > > This series is a first step towards making the core kernel no longer > need to consider DEC Alpha as a special case. This is accomplished > by two sets of patches, followed by a Coccinelle script: > > 1.Patches 1/19 through 15/19 in the followi

Re: [GIT PULL de-alpha] Make core code not need to know about Alpha for v4.15

2017-10-24 Thread Ingo Molnar
* Paul E. McKenney wrote: > Mark Rutland (14): > dm integrity: Kill off ACCESS_ONCE() > EDAC, altera: Kill off ACCESS_ONCE() > firmware/ivc: Kill off ACCESS_ONCE() > fs: dcache: Kill off ACCESS_ONCE() > fs: ncpfs: Kill off ACCESS_ONCE() > media: dvb_ringbuffer

[GIT PULL de-alpha] Make core code not need to know about Alpha for v4.15

2017-10-23 Thread Paul E. McKenney
Hello, Ingo, This series is a first step towards making the core kernel no longer need to consider DEC Alpha as a special case. This is accomplished by two sets of patches, followed by a Coccinelle script: 1. Patches 1/19 through 15/19 in the following patches, which change non-Cocc

I Want To Know Your Opinion In Doing This Project.

2017-09-19 Thread MRS.LOVETH KONNIA
My Dear, >From Mrs. Loveth Konnia. I belief that you can help in setting up a charity foundation for the benefit of mankind, I wish to establish a charity foundation to help the poor in your country under your care, Can you help to build this project in your country? Together We can make the wor

[PATCH 1/3] x86/intel_rdt: Fix kernfs_to_rdtgroup to know about "info/*" directories

2016-11-11 Thread Fenghua Yu
From: Fenghua Yu We saw a kernel oops on NULL pointer when we ran "rmdir info". This is because the "info" directory and per-resource subdirectories of "info" do not use "kn->priv" to point to a "struct rdtgroup". Also change error code from -ENOENT to the more appropriate -EPERM so the user see

Hi Dear, I.m Col Steven Waren, I am USA Army , but current in Ramadi Irag, although We don’t know each other but it would be great to get to know you, do not be afraid in replying my mail for i have a

2016-05-02 Thread Steven Waren Waren

Re: Regulator: drivers that need to know their supply

2016-04-10 Thread Mark Brown
On Thu, Apr 07, 2016 at 08:17:25PM +0200, Martin Fuzzey wrote: > On 07/04/16 19:02, Mark Brown wrote: > >No, this is not sensible. You should be telling the framework about the > >slew rate and letting the framework work out how long it's going to take > >to transition. Your driver shouldn't be

Re: Regulator: drivers that need to know their supply

2016-04-07 Thread Martin Fuzzey
Thanks for your reply. On 07/04/16 19:02, Mark Brown wrote: On Thu, Apr 07, 2016 at 03:25:09PM +0200, Martin Fuzzey wrote: To implement the .enable_time() method I need the voltage (which is the supply's voltage). No, this is not sensible. You should be telling the framework about the slew r

Re: Regulator: drivers that need to know their supply

2016-04-07 Thread Mark Brown
On Thu, Apr 07, 2016 at 03:25:09PM +0200, Martin Fuzzey wrote: > To implement the .enable_time() method I need the voltage (which is > the supply's voltage). No, this is not sensible. You should be telling the framework about the slew rate and letting the framework work out how long it's going t

Regulator: drivers that need to know their supply

2016-04-07 Thread Martin Fuzzey
Hi, I am working on a driver for the tps22993 load switch. This chip has configurable slew rates but no voltage setting (as it's just a switch). To implement the .enable_time() method I need the voltage (which is the supply's voltage). The problem is that, when my regulator is configured as al

Re: [PATCH 1/3] mm/compaction: enhance trace output to know more about compaction internals

2015-01-12 Thread Joonsoo Kim
14 08:52 AM, Joonsoo Kim wrote: > > >> > It'd be useful to know where the both scanner is start. And, it also be > > >> > useful to know current range where compaction work. It will help to > > >> > find > > >> > odd behaviour or proble

Re: [PATCH 1/3] mm/compaction: enhance trace output to know more about compaction internals

2015-01-09 Thread Mel Gorman
On Thu, Jan 08, 2015 at 09:46:27AM +0100, Vlastimil Babka wrote: > On 01/08/2015 09:18 AM, Joonsoo Kim wrote: > > On Tue, Jan 06, 2015 at 10:05:39AM +0100, Vlastimil Babka wrote: > >> On 12/03/2014 08:52 AM, Joonsoo Kim wrote: > >> > It'd be useful to know where

Re: [PATCH 1/3] mm/compaction: enhance trace output to know more about compaction internals

2015-01-08 Thread Joonsoo Kim
On Thu, Jan 08, 2015 at 09:46:27AM +0100, Vlastimil Babka wrote: > On 01/08/2015 09:18 AM, Joonsoo Kim wrote: > > On Tue, Jan 06, 2015 at 10:05:39AM +0100, Vlastimil Babka wrote: > >> On 12/03/2014 08:52 AM, Joonsoo Kim wrote: > >> > It'd be useful to know where

Re: [PATCH 1/3] mm/compaction: enhance trace output to know more about compaction internals

2015-01-08 Thread Vlastimil Babka
On 01/08/2015 09:18 AM, Joonsoo Kim wrote: > On Tue, Jan 06, 2015 at 10:05:39AM +0100, Vlastimil Babka wrote: >> On 12/03/2014 08:52 AM, Joonsoo Kim wrote: >> > It'd be useful to know where the both scanner is start. And, it also be >> > useful to know current rang

Re: [PATCH 1/3] mm/compaction: enhance trace output to know more about compaction internals

2015-01-08 Thread Joonsoo Kim
On Tue, Jan 06, 2015 at 10:05:39AM +0100, Vlastimil Babka wrote: > On 12/03/2014 08:52 AM, Joonsoo Kim wrote: > > It'd be useful to know where the both scanner is start. And, it also be > > useful to know current range where compaction work. It will help to find > > o

Re: [PATCH 1/3] mm/compaction: enhance trace output to know more about compaction internals

2015-01-06 Thread Vlastimil Babka
On 12/03/2014 08:52 AM, Joonsoo Kim wrote: > It'd be useful to know where the both scanner is start. And, it also be > useful to know current range where compaction work. It will help to find > odd behaviour or problem on compaction. Overall it looks good, just two questions: 1)

Re: [PATCH 1/3] mm/compaction: enhance trace output to know more about compaction internals

2015-01-05 Thread Vlastimil Babka
On 01/05/2015 03:33 AM, Joonsoo Kim wrote: > On Wed, Dec 03, 2014 at 04:52:05PM +0900, Joonsoo Kim wrote: >> It'd be useful to know where the both scanner is start. And, it also be >> useful to know current range where compaction work. It will help to find >> odd behaviou

Re: [PATCH 1/3] mm/compaction: enhance trace output to know more about compaction internals

2015-01-04 Thread Joonsoo Kim
On Wed, Dec 03, 2014 at 04:52:05PM +0900, Joonsoo Kim wrote: > It'd be useful to know where the both scanner is start. And, it also be > useful to know current range where compaction work. It will help to find > odd behaviour or problem on compaction. > > Signed-off-by:

[PATCH 1/3] mm/compaction: enhance trace output to know more about compaction internals

2014-12-02 Thread Joonsoo Kim
It'd be useful to know where the both scanner is start. And, it also be useful to know current range where compaction work. It will help to find odd behaviour or problem on compaction. Signed-off-by: Joonsoo Kim --- include/linux/compaction.h|2 + include/trace/events/compact

Hello dear, Please permit me to introduce myself to you, My name is Laila, i saw your profile today and i became interested in you,I will also like to know you better, so I want you to send an email t

2014-10-10 Thread Laila
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Nice to Know You

2014-02-07 Thread lincotrade....@gmail.com
Dear Sirs, Pleased to get your contact information... we are established in 2004, Manufacturer of plastic prescription vial, bottle. includes: Child Resistant cap, Reversible Cap, Snap Cap, Oval bottle...FDA approved. We are capable to provide you good quality products, Our main market is Us

Re: [PATCH v3 04/10] usb: dwc3: use quirks to know if a particualr platform doesn't have PHY

2013-12-11 Thread Kishon Vijay Abraham I
On Wednesday 11 December 2013 02:23 PM, Heikki Krogerus wrote: > Hi, > > On Mon, Dec 09, 2013 at 11:26:04AM +0200, Heikki Krogerus wrote: >> Can you guys explain why is something like this needed? Like with >> clocks and gpios, the device drivers shouldn't need to care any more >> if t

Re: [PATCH v3 04/10] usb: dwc3: use quirks to know if a particualr platform doesn't have PHY

2013-12-11 Thread Heikki Krogerus
Hi, On Mon, Dec 09, 2013 at 11:26:04AM +0200, Heikki Krogerus wrote: > > >>>Can you guys explain why is something like this needed? Like with > > >>>clocks and gpios, the device drivers shouldn't need to care any more > > >>>if the platform has the phys or not. -ENODEV tells you your platform > >

[PATCH 0/5] phy: remove the need for the phys to know about their users

2013-12-09 Thread Heikki Krogerus
Hi, This replaces the consumer & init_data structures with a lookup table that contains complete associations with the phys and their users, removing the need for the phy drivers themselves to care about their users even when not using DT. The lookup method is copied from the way the gpio descrip

Re: [PATCH v3 04/10] usb: dwc3: use quirks to know if a particualr platform doesn't have PHY

2013-12-09 Thread Heikki Krogerus
Hi, On Mon, Dec 09, 2013 at 12:43:37PM +0530, Kishon Vijay Abraham I wrote: > On Thursday 05 December 2013 01:28 PM, Heikki Krogerus wrote: > >On Thu, Dec 05, 2013 at 12:04:46PM +0530, Kishon Vijay Abraham I wrote: > >>On Wednesday 04 December 2013 08:10 PM, Heikki Krogerus wrote: > >>>On Mon, Nov

Re: [PATCH v3 04/10] usb: dwc3: use quirks to know if a particualr platform doesn't have PHY

2013-12-08 Thread Kishon Vijay Abraham I
Hi, On Thursday 05 December 2013 01:28 PM, Heikki Krogerus wrote: Hi, On Thu, Dec 05, 2013 at 12:04:46PM +0530, Kishon Vijay Abraham I wrote: On Wednesday 04 December 2013 08:10 PM, Heikki Krogerus wrote: On Mon, Nov 25, 2013 at 03:31:24PM +0530, Kishon Vijay Abraham I wrote: There can be sy

Re: [PATCH v3 04/10] usb: dwc3: use quirks to know if a particualr platform doesn't have PHY

2013-12-04 Thread Heikki Krogerus
Hi, On Thu, Dec 05, 2013 at 12:04:46PM +0530, Kishon Vijay Abraham I wrote: > On Wednesday 04 December 2013 08:10 PM, Heikki Krogerus wrote: > > On Mon, Nov 25, 2013 at 03:31:24PM +0530, Kishon Vijay Abraham I wrote: > >> There can be systems which does not have an external phy, so get > >> phy on

Re: [PATCH v3 04/10] usb: dwc3: use quirks to know if a particualr platform doesn't have PHY

2013-12-04 Thread Kishon Vijay Abraham I
Hi, On Wednesday 04 December 2013 08:10 PM, Heikki Krogerus wrote: > Hi guys, > > Kishon, sorry I did not see this v3 set. > > On Mon, Nov 25, 2013 at 03:31:24PM +0530, Kishon Vijay Abraham I wrote: >> There can be systems which does not have an external phy, so get >> phy only if no quirks are

Re: [PATCH v3 04/10] usb: dwc3: use quirks to know if a particualr platform doesn't have PHY

2013-12-04 Thread Heikki Krogerus
Hi guys, Kishon, sorry I did not see this v3 set. On Mon, Nov 25, 2013 at 03:31:24PM +0530, Kishon Vijay Abraham I wrote: > There can be systems which does not have an external phy, so get > phy only if no quirks are added that indicates the PHY is not present. > Introduced two quirk flags to ind

Re: [PATCH v3 04/10] usb: dwc3: use quirks to know if a particualr platform doesn't have PHY

2013-11-25 Thread Felipe Balbi
On Mon, Nov 25, 2013 at 03:31:24PM +0530, Kishon Vijay Abraham I wrote: > There can be systems which does not have an external phy, so get > phy only if no quirks are added that indicates the PHY is not present. > Introduced two quirk flags to indicate the *absence* of usb2 phy and > usb3 phy. Also

[PATCH v3 04/10] usb: dwc3: use quirks to know if a particualr platform doesn't have PHY

2013-11-25 Thread Kishon Vijay Abraham I
There can be systems which does not have an external phy, so get phy only if no quirks are added that indicates the PHY is not present. Introduced two quirk flags to indicate the *absence* of usb2 phy and usb3 phy. Also remove checking if return value is -ENXIO since it's now changed to always enab

I Will Be Glad To Know You,

2013-08-16 Thread Saanasandy Kuku
I Will Be Glad To Know You, I am Sandy. Please, I will like to be your friend only if you don't mind, contact me for my picture and more about me, Thanks in advance and remain blessed! Sandy. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

LETTER FROM GILLIAN...I NEED TO KNOW YOU

2013-07-26 Thread gillian billy
-- Hello, My sincere apology contating you in this manner without getting to know you properly before now,I'm mailling you this letter base on my health condition seeking the attention of Godly minded personto handle humanitarian project in my name. Am Gillian Billy on sick bed in St Bro

[PATCH V7 02/30] thermal: exynos: Use ARCH_HAS_BANDGAP config to know the supported soc's

2013-06-24 Thread Amit Daniel Kachhap
This patch uses the recently added config sybmol ARCH_HAS_BANDGAP to enable the TMU driver. This will allow adding support for new soc easily as now it is the platform responsibility to enable this config symbol for a particular soc. Acked-by: Kukjin Kim Acked-by: Jonghwa Lee Acked-by: Eduardo V

Re: [PATCH V6 02/30] thermal: exynos: Use ARCH_HAS_BANDGAP config to know the supported soc's

2013-06-19 Thread Eduardo Valentin
On 17-06-2013 02:46, Amit Daniel Kachhap wrote: > This patch uses the recently added config sybmol ARCH_HAS_BANDGAP to enable > the TMU driver. This will allow adding support for new soc easily as now it > is the platform responsibility to enable this config symbol for a particular > soc. > > Acke

[PATCH V6 02/30] thermal: exynos: Use ARCH_HAS_BANDGAP config to know the supported soc's

2013-06-16 Thread Amit Daniel Kachhap
This patch uses the recently added config sybmol ARCH_HAS_BANDGAP to enable the TMU driver. This will allow adding support for new soc easily as now it is the platform responsibility to enable this config symbol for a particular soc. Acked-by: Kukjin Kim Acked-by: Jonghwa Lee Signed-off-by: Amit

Re: [PATCH V5 02/30] thermal: exynos: Add ARCH_HAS_TMU config to know the supported soc's

2013-06-16 Thread amit daniel kachhap
Hi Eduardo, On Mon, Jun 17, 2013 at 8:35 AM, Eduardo Valentin wrote: > Hey Amit, > > On 11-06-2013 08:53, Amit Daniel Kachhap wrote: >> This patch adds config sybmol ARCH_HAS_TMU to enable the TMU driver. >> This will allow adding support for new soc easily as now it is the >> platform responsibi

Re: [PATCH V5 02/30] thermal: exynos: Add ARCH_HAS_TMU config to know the supported soc's

2013-06-16 Thread Eduardo Valentin
Hey Amit, On 11-06-2013 08:53, Amit Daniel Kachhap wrote: > This patch adds config sybmol ARCH_HAS_TMU to enable the TMU driver. > This will allow adding support for new soc easily as now it is the > platform responsibility to enable this config symbol. > > Acked-by: Kukjin Kim > Signed-off-by:

[PATCH V5 02/30] thermal: exynos: Add ARCH_HAS_TMU config to know the supported soc's

2013-06-11 Thread Amit Daniel Kachhap
This patch adds config sybmol ARCH_HAS_TMU to enable the TMU driver. This will allow adding support for new soc easily as now it is the platform responsibility to enable this config symbol. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/Kconfig |5 -

[PATCH V4 02/30] thermal: exynos: Add ARCH_HAS_TMU config to know the supported soc's

2013-05-14 Thread Amit Daniel Kachhap
This patch adds config sybmol ARCH_HAS_TMU to enable the TMU driver. This will allow adding support for new soc easily as now it is the platform responsibility to enable this config symbol. Acked-by: Kukjin Kim Signed-off-by: Amit Daniel Kachhap --- drivers/thermal/samsung/Kconfig |5 -

Re: Need to know the size of data send from Kernel to USer Ap

2012-07-24 Thread Ian Abbott
On 2012-07-24 09:08, bforce1729 wrote: Hi, I am new to kernel programming so can anyone point me to the right forum/reply for the question below. I would like to implement a character device and using a node of type character read and write data. However I am not sure of the length of data fro

Need to know the size of data send from Kernel to USer Ap

2012-07-24 Thread bforce1729
Hi, I am new to kernel programming so can anyone point me to the right forum/reply for the question below. I would like to implement a character device and using a node of type character read and write data. However I am not sure of the length of data from kernel which a user app will recei

help me to know when ethernet header added to packet by eth_header function

2005-01-28 Thread linux lover
Hello, Can anybody explain me how ethernet header is added to every packet outgoing? I check eth.c file and found eth_header that is used for adding ethernet header on skbuff packet. But does each packet calls this function? I think not as theres a cache header function used that cache ether

Re: How to know HZ from userspace?

2001-06-06 Thread Linus Torvalds
In article <[EMAIL PROTECTED]>, Harald Welte <[EMAIL PROTECTED]> wrote: > >Is there any way to read out the compile-time HZ value of the kernel? In 2.4.x, you'll get it on the stack as one of the ELF auxilliary entries (AT_CLKTCK). Strictly speaking that's the "frequency at which 'times()' cou

Re: How to know HZ from userspace?

2001-06-06 Thread Harald Welte
On Wed, Jun 06, 2001 at 08:59:51PM +0200, Tomas Telensky wrote: > > On Wed, Jun 06, 2001 at 08:09:33PM +0200, Tomas Telensky wrote: > > > > Hi! > > > > > > > > Is there any way to read out the compile-time HZ value of the kernel? > > > > > > Why simply #include ? > > > > because the include fil

Re: How to know HZ from userspace?

2001-06-06 Thread Tomas Telensky
> On Wed, Jun 06, 2001 at 08:09:33PM +0200, Tomas Telensky wrote: > > > Hi! > > > > > > Is there any way to read out the compile-time HZ value of the kernel? > > > > Why simply #include ? > > because the include file doesn't say anything about the HZ value of > the currently running kernel, bu

Re: How to know HZ from userspace?

2001-06-06 Thread Harald Welte
On Wed, Jun 06, 2001 at 08:09:33PM +0200, Tomas Telensky wrote: > > Hi! > > > > Is there any way to read out the compile-time HZ value of the kernel? > > Why simply #include ? because the include file doesn't say anything about the HZ value of the currently running kernel, but only about some

Re: How to know HZ from userspace?

2001-06-06 Thread Tomas Telensky
> Hi! > > Is there any way to read out the compile-time HZ value of the kernel? Why simply #include ? Tomas > > I had a brief look at /proc/* and didn't find anything. > > The background, why it is needed: > > There are certain settings, for example the icmp rate limiting values, >

Re: How to know HZ from userspace?

2001-06-04 Thread Erik Tews
On Wed, May 30, 2001 at 08:37:25PM -0300, Harald Welte wrote: > Hi! > > Is there any way to read out the compile-time HZ value of the kernel? > > I had a brief look at /proc/* and didn't find anything. > > The background, why it is needed: > > There are certain settings, for example the icmp r

Re: How to know HZ from userspace?

2001-05-31 Thread H. Peter Anvin
Followup to: <[EMAIL PROTECTED]> By author:Ralf Baechle <[EMAIL PROTECTED]> In newsgroup: linux.dev.kernel > > On Wed, May 30, 2001 at 05:07:22PM -0700, H. Peter Anvin wrote: > > > Yes, but that's because the interfaces are broken. The decision has > > been that these values should be expor

Re: How to know HZ from userspace?

2001-05-31 Thread Ralf Baechle
On Wed, May 30, 2001 at 05:07:22PM -0700, H. Peter Anvin wrote: > Yes, but that's because the interfaces are broken. The decision has > been that these values should be exported using the default HZ for the > architecture, and that it is the kernel's responsibility to scale them > when HZ != USE

Re: How to know HZ from userspace?

2001-05-31 Thread H. Peter Anvin
On Fri, 1 Jun 2001, Peter Waltenberg wrote: > Yes, I know we have a chance of being rescheduled simply because "something > else" has also yielded. However thats fairly hit and miss. > > I don't disagree with your statement that thats how the interface should be > designed, but the most of the ap

Re: How to know HZ from userspace?

2001-05-31 Thread Daniel Phillips
On Thursday 31 May 2001 02:44, Jonathan Lundell wrote: > At 1:38 AM +0100 2001-05-31, Joel Becker wrote: > >On Wed, May 30, 2001 at 05:24:37PM -0700, Jonathan Lundell wrote: > >> FWIW (perhaps not much in this context), the POSIX way is > >>sysconf(_SC_CLK_TCK) > >> > >> POSIX sysconf is pretty

Re: How to know HZ from userspace?

2001-05-31 Thread H. Peter Anvin
Followup to: <[EMAIL PROTECTED]> By author:Harald Welte <[EMAIL PROTECTED]> In newsgroup: linux.dev.kernel > > > > Look again, this time with a sick mind. Got your barf bag? > > Kubys made me do it. > > ;) > > First of all thanks for your recommended solution. > It's not *recommended*.

Re: How to know HZ from userspace?

2001-05-31 Thread Harald Welte
On Wed, May 30, 2001 at 11:40:30PM -0400, Albert D. Cahalan wrote: > Harald Welte writes: > > > Is there any way to read out the compile-time HZ value of the kernel? > > > > I had a brief look at /proc/* and didn't find anything. > > Look again, this time with a sick mind. Got your barf bag? >

Re: How to know HZ from userspace?

2001-05-30 Thread Albert D. Cahalan
Harald Welte writes: > Is there any way to read out the compile-time HZ value of the kernel? > > I had a brief look at /proc/* and didn't find anything. Look again, this time with a sick mind. Got your barf bag? Kubys made me do it. /

Re: How to know HZ from userspace?

2001-05-30 Thread Albert D. Cahalan
Jonathan Lundell writes: > At 5:07 PM -0700 2001-05-30, H. Peter Anvin wrote: >>> If you now want to set those values from a userspace program / script in >>> a portable manner, you need to be able to find out of HZ of the currently >>> running kernel. >> >> Yes, but that's because the interfac

Re: How to know HZ from userspace?

2001-05-30 Thread Martin Dalecki
Joel Becker wrote: > > On Wed, May 30, 2001 at 05:24:37PM -0700, Jonathan Lundell wrote: > > FWIW (perhaps not much in this context), the POSIX way is sysconf(_SC_CLK_TCK) > > > > POSIX sysconf is pretty useful for this kind of thing (not just HZ, either). > > Well, how many hundred thin

Re: How to know HZ from userspace?

2001-05-30 Thread Mike Castle
On Wed, May 30, 2001 at 05:44:39PM -0700, Jonathan Lundell wrote: > Lots. Maybe we oughta have /proc/sysconf/... (there's no reason > sysconf() can't be a library reading /proc). You don't mount proc? mrc -- Mike Castle [EMAIL PROTECTED] www.netcom.com/~dalgoda/ We are all o

Re: How to know HZ from userspace?

2001-05-30 Thread Jonathan Lundell
At 1:38 AM +0100 2001-05-31, Joel Becker wrote: >On Wed, May 30, 2001 at 05:24:37PM -0700, Jonathan Lundell wrote: >> FWIW (perhaps not much in this context), the POSIX way is >>sysconf(_SC_CLK_TCK) >> >> POSIX sysconf is pretty useful for this kind of thing (not just HZ, either). > > Wel

Re: How to know HZ from userspace?

2001-05-30 Thread Joel Becker
On Wed, May 30, 2001 at 05:24:37PM -0700, Jonathan Lundell wrote: > FWIW (perhaps not much in this context), the POSIX way is sysconf(_SC_CLK_TCK) > > POSIX sysconf is pretty useful for this kind of thing (not just HZ, either). Well, how many hundred things on Linux are available from /p

Re: How to know HZ from userspace?

2001-05-30 Thread Jonathan Lundell
At 5:07 PM -0700 2001-05-30, H. Peter Anvin wrote: > > If you now want to set those values from a userspace program / script in >> a portable manner, you need to be able to find out of HZ of the currently >> running kernel. >> > >Yes, but that's because the interfaces are broken. The decision

Re: How to know HZ from userspace?

2001-05-30 Thread Joel Becker
one in this > area. Pardon, but that still seems broken to me. USER_HZ shouldn't matter to the architecture either. I would think that if 'echo 10 > /proc/foo/icmp_foo' sets a timeout of 10ms on alpha, it should also do so on x86, sparc, and mips. Why should the usersp

Re: How to know HZ from userspace?

2001-05-30 Thread H. Peter Anvin
Followup to: <[EMAIL PROTECTED]> By author:Harald Welte <[EMAIL PROTECTED]> In newsgroup: linux.dev.kernel > > Is there any way to read out the compile-time HZ value of the kernel? > > I had a brief look at /proc/* and didn't find anything. > > The background, why it is needed: > > There

How to know HZ from userspace?

2001-05-30 Thread Harald Welte
Hi! Is there any way to read out the compile-time HZ value of the kernel? I had a brief look at /proc/* and didn't find anything. The background, why it is needed: There are certain settings, for example the icmp rate limiting values, which can be set using sysctl. Those setting are basically

  1   2   >