lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081214232128.5c886379@i1501.lan.towertech.it>
Date:	Sun, 14 Dec 2008 23:21:28 +0100
From:	Alessandro Zummo <alessandro.zummo@...ertech.it>
To:	rtc-linux@...glegroups.com
Cc:	balajirrao@...nmoko.org, linux-kernel@...r.kernel.org,
	Andy Green <andy@...nmoko.com>
Subject: Re: [rtc-linux] Re: [PATCH 4/7] rtc: PCF50633 rtc driver

On Mon, 15 Dec 2008 03:34:30 +0530
Balaji Rao <balajirrao@...nmoko.org> wrote:

> Hmm. This patch is included in [PATCH 1/7] of the series - which
> implements the core driver. This core driver needs this file to compile
> and not including there is going to break the bisectability of the
> series. Isn't this what I'm supposed to do ? Please correct me if I'm
> wrong.

 ok, then don't break.
 
> > > +	pcf = platform_get_drvdata(pdev);
> > 
> >  uh? where did you set up the pointer?
> > 
> > 
> > > +	/* Set up IRQ handlers */
> > > +	pcf->irq_handler[PCF50633_IRQ_ALARM].handler = pcf50633_rtc_irq;
> > > +	pcf->irq_handler[PCF50633_IRQ_SECOND].handler = pcf50633_rtc_irq;
> > > +
> > > +	pcf->rtc.rtc_dev = rtc;
> > 
> >  ??
> > 
> 
> It's done in the core driver - [PATCH 1/7] of this series.

 mm. that's strange. a platform driver is supposed to receive informational
 structures (regions, irqs, ...) and init driver data by itself. you shouldn't need
 to mess with the drvdata pointer.

 I do not also feel fine with the irq handlers setup. Your core should export
 a function for irq registration.

> Thank you for the review. Will send again after resolving the issues.

 thanks for your contribution. you are doing great things at openmoko.

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ